Hi @Anshal ,
In addition to what @Nandan Hegde mentioned, some of the use cases that I know are below.
- Declare and Initialise a string or Boolean variable with true and use it in an until loop and based on some condition, update it to false and terminate the loop based on that variable value. Reference
- Assigning an activity output or activity error message and writing it to a file or database table.
- Write an expression like formatdatetime(utcnow(),'yyyy-MM-dd') and assign it to a variable and use it in any number of activities to avoid repeating same expression.
Will add more use cases as and when I recollect.
Thanks.