Use Set Variable to assign values to workflow variables that later actions will read. In a purchase approval, you can set a text variable to Awaiting review and fill a user variable with the request’s submitter.
Choose the workflow
In the workflow designer, drag Set Variable from Actions onto the canvas. Place it after the input values are available and before the actions that use them. Select the node and open its settings. Overview of the workflow designer
Current workflow updates variables in the running workflow. Use this option for the purchase approval example.
Another workflow targets an approval form in the organization. Select the application and data source for the form you intend to update. The available source types include a data list, document library, form report, and data report. Use the target form ID when prompted.
Map variables and values
Click Setting next to Set variables, then click Add for each assignment.
Select the destination variable on the left. On the right, enter a fixed value or open the expression editor to read a workflow variable or calculate a value. Check that the result matches the destination type. Understand Expression Editor
Select OK to save the mappings, then save the workflow.
Verify the result
In a test application, submit requests as two different test users. In the next task or under Variables in the workflow instance, check that the fixed value matches in both requests and the user value follows each submitter. When targeting another workflow, check both the intended instance and a second instance that should retain its existing values. View and manage workflow instances

