how do i pass a variable to a sub microflow, and pass it back

currently i pass the variable as a string in the sub microflow do some magic. pass the string back and then I have to remember to update the original variable.   am I missing something, or can I not pass the variable to the sub microflow and have the value update?  
1 answers

Dear Jason Teunissen,


The only way to do this is to create a NP entity with string attribute and pass it to sub microflow and do changes and pass back and you don't need to change again in main microflow. Except object we can't change primitive data types as the parameter is read only. And the created variable inside a microflow is like a private variable and can't be accessed or modified inside another microflow.


Hope my answer helps, reach me out for any quries.