Solution:
The workflow action script will return a value to the workflow state. Then we can either set this value to a field with the help of script. Or we can return this value to the workflow. So please do the following steps.
1. The workflow action will return a value.
2. Then we have to select a new action “Set Field Value “.
3. Select the field value that we want to store this returned value.

4. Then select formula field and select the workflow action stored parameter value.


5. Set this value
6.. Save the workflow.