How to access the value of a return value activity?

Michael Butak1
Tera Contributor

I'm using these docs about the Return Value Activity.  

Those docs say "Use this activity within a subflow to store data that the parent flow can access. The Return Value activity adds the data from the subflow's value variable to the parent workflow's scratchpad."

However, when I use the return value activity, and then access the scratchpad from a subsequent run script activity (in the parent workflow), I don't see the return value in the parent's workflow scratcpad.  

Here is the overall workflow.  Note the "Workflow" is a subflow that runs on success of the previous run script:
(see attached screenshot_6)

In that subflow, I have a return value activity that returned "Approved":
(see attached screenshot_7)

 

After that subflow runs, I have a "request_was_approved_or_rejected" script, that logs the scratchpad.  In that log there is nothing for the return value from the subflow. 

I've also tried writing to the parent scratchpad from the subflow, without luck.  Is there a way to do that?  

What am I missing?  

Thank you!

4 REPLIES 4

Aman Kumar S
Kilo Patron

Your attachments are broken

Best Regards
Aman Kumar

Thank you Aman!  I have fixed the attachments.  

Hi @Michael Butak 

Is your issue resolved?

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

 

Best Regards
Aman Kumar