Unfortunately workflow properties set in a sub workflow are not available to other workflows. Neither the parent that called it or other ones downstream. So you will have to do a workaround for this. One way to do this is to:
1) Create a custom incident property that will hold the data you need for sending the email. Most likely the easiest thing to do is create a text field as you can put a JSON string in there.
2) In the workflows, read the incident property, convert the text to a json format, or a python dictionary. Then update the property with the new information.
3) In the parent, get the incident property and parse it to pass to the function input appropriately.
We are actively designing ways to significantly improve this type of developer experience. This will help us in this process.
Ben
------------------------------
Ben Lurie
------------------------------
Original Message:
Sent: Mon November 16, 2020 08:42 PM
From: Juan Cruz Del Col
Subject: Workflow calls another workflow
I have a workflow that has 3 workflows inside and at the end one works to send mail.
Each of the workflows, performs a task and at the end write a note, but each of those outputs I need to send by mail in the final function.
How can I achieve this?
Try to use "workflow.addProperty (String <property_name>, Dict <property_value>)" but I always get error "'NoneType' object has no attribute 'email1'"
------------------------------
Juan Cruz Del Col
------------------------------