Forum Discussion
kewaynes333
2 years agoHelper I
Use Notebook Variable in Email Activity
I have a varibale in a notebook called 'messages'. I have an Outlook activity connected to the Notebook activity. How can I reference this varibable in the Outlook activity to use it in the body of t...
jwinchell40
2 years agoResolver III
kewaynes333 - I'm not sure what kind of object "messages" is but you can pass data back from the Notebook via the Exit Variable.
- mssparkutils.notebook.exit(<value>)
It can be a simple string or a json/array value among other things. You should then be able to reference it in the set variable by doing:
- @activity(<activity_name>).output.result.exitValue
If you send back a JSON object you can convert the string in the pipeline use @Json() and then reference values within the JSON object.
- @Json(activity(<activity_name>).output.result.existValue).<property>