<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Use Notebook Variable in Email Activity in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Use-Notebook-Variable-in-Email-Activity/m-p/3966008#M3702</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408286" data-lia-user-login="kewaynes333" class="lia-mention lia-mention-user"&gt;kewaynes333&lt;/a&gt;&amp;nbsp; - I'm not sure what kind of object "messages" is but you can pass data back from the Notebook via the Exit Variable.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;mssparkutils.notebook.exit(&amp;lt;value&amp;gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;@activity(&amp;lt;activity_name&amp;gt;).output.result.exitValue&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you send back a JSON object you can convert the string in the pipeline use&amp;nbsp;@Json() and then reference values within the JSON object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;@Json(activity(&amp;lt;activity_name&amp;gt;).output.result.existValue).&amp;lt;property&amp;gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Sat, 01 Jun 2024 14:33:34 GMT</pubDate>
    <dc:creator>jwinchell40</dc:creator>
    <dc:date>2024-06-01T14:33:34Z</dc:date>
    <item>
      <title>Use Notebook Variable in Email Activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Use-Notebook-Variable-in-Email-Activity/m-p/3965197#M3695</link>
      <description>&lt;P&gt;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 the email?&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 21:23:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Use-Notebook-Variable-in-Email-Activity/m-p/3965197#M3695</guid>
      <dc:creator>kewaynes333</dc:creator>
      <dc:date>2024-05-31T21:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Use Notebook Variable in Email Activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Use-Notebook-Variable-in-Email-Activity/m-p/3966008#M3702</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408286" data-lia-user-login="kewaynes333" class="lia-mention lia-mention-user"&gt;kewaynes333&lt;/a&gt;&amp;nbsp; - I'm not sure what kind of object "messages" is but you can pass data back from the Notebook via the Exit Variable.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;mssparkutils.notebook.exit(&amp;lt;value&amp;gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;@activity(&amp;lt;activity_name&amp;gt;).output.result.exitValue&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you send back a JSON object you can convert the string in the pipeline use&amp;nbsp;@Json() and then reference values within the JSON object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;@Json(activity(&amp;lt;activity_name&amp;gt;).output.result.existValue).&amp;lt;property&amp;gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sat, 01 Jun 2024 14:33:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Use-Notebook-Variable-in-Email-Activity/m-p/3966008#M3702</guid>
      <dc:creator>jwinchell40</dc:creator>
      <dc:date>2024-06-01T14:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use Notebook Variable in Email Activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Use-Notebook-Variable-in-Email-Activity/m-p/3967742#M3722</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408286" data-lia-user-login="kewaynes333" class="lia-mention lia-mention-user"&gt;kewaynes333&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;&lt;BR /&gt;As&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="599628" data-lia-user-login="jwinchell40" class="lia-mention lia-mention-user"&gt;jwinchell40&lt;/a&gt;&amp;nbsp;said, please follow the below steps to get data from Notebook to Pipeline.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this is helpful. Please do let me know incase of further queries.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 06:45:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Use-Notebook-Variable-in-Email-Activity/m-p/3967742#M3722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-03T06:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Use Notebook Variable in Email Activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Use-Notebook-Variable-in-Email-Activity/m-p/3971123#M3751</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408286" data-lia-user-login="kewaynes333" class="lia-mention lia-mention-user"&gt;kewaynes333&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if your query was answered.&lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help .&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 11:30:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Use-Notebook-Variable-in-Email-Activity/m-p/3971123#M3751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-04T11:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use Notebook Variable in Email Activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Use-Notebook-Variable-in-Email-Activity/m-p/3973679#M3786</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408286" data-lia-user-login="kewaynes333" class="lia-mention lia-mention-user"&gt;kewaynes333&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We haven’t heard from you on the last response and was just checking back to see if your query was answered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, will respond back with the more details and we will try to help .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 09:16:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Use-Notebook-Variable-in-Email-Activity/m-p/3973679#M3786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-05T09:16:58Z</dc:date>
    </item>
  </channel>
</rss>

