<?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 Sending automatic email with an attachment/link to a file in OneLake in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Sending-automatic-email-with-an-attachment-link-to-a-file-in/m-p/4243001#M5909</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am relatively new to pipelines and using them. I have constructed a pipeline, that screenshots a table from power bi report (via notebook using semantic link) and saves it in Onelake table and Onelake file (in .xlsx format). So far so good.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Now I was hoping that I could create a pipeline, which would take the lastest file (or a link to the file, which would allow to download it) and email it to the responsible person.&amp;nbsp;&lt;BR /&gt;The use case is that I snapshot calculated commissions, save it, and send it to HR.&lt;BR /&gt;&lt;BR /&gt;However, I have learned, that a) I cannot attach a file and b) I cannot simply download a file from Onelake (unless using onelake explorer). Now I am not sure what to do. As I want to make it as simple as it can be for the person to get the file or a link to download it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any advice? I was also looking into an option of getting the file from Onelake to OneDrive but that also seems not very straightforward. Most options require Power Automate, which I am not interested in using.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2024 11:43:00 GMT</pubDate>
    <dc:creator>zenisekd</dc:creator>
    <dc:date>2024-10-15T11:43:00Z</dc:date>
    <item>
      <title>Sending automatic email with an attachment/link to a file in OneLake</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Sending-automatic-email-with-an-attachment-link-to-a-file-in/m-p/4243001#M5909</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am relatively new to pipelines and using them. I have constructed a pipeline, that screenshots a table from power bi report (via notebook using semantic link) and saves it in Onelake table and Onelake file (in .xlsx format). So far so good.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Now I was hoping that I could create a pipeline, which would take the lastest file (or a link to the file, which would allow to download it) and email it to the responsible person.&amp;nbsp;&lt;BR /&gt;The use case is that I snapshot calculated commissions, save it, and send it to HR.&lt;BR /&gt;&lt;BR /&gt;However, I have learned, that a) I cannot attach a file and b) I cannot simply download a file from Onelake (unless using onelake explorer). Now I am not sure what to do. As I want to make it as simple as it can be for the person to get the file or a link to download it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any advice? I was also looking into an option of getting the file from Onelake to OneDrive but that also seems not very straightforward. Most options require Power Automate, which I am not interested in using.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 11:43:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Sending-automatic-email-with-an-attachment-link-to-a-file-in/m-p/4243001#M5909</guid>
      <dc:creator>zenisekd</dc:creator>
      <dc:date>2024-10-15T11:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sending automatic email with an attachment/link to a file in OneLake</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Sending-automatic-email-with-an-attachment-link-to-a-file-in/m-p/4243378#M5911</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="187376" data-lia-user-login="zenisekd" class="lia-mention lia-mention-user"&gt;zenisekd&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft announced the public preview of the&amp;nbsp;OneLake shared access signatures (SAS) for Fabric items: &lt;A href="https://support.fabric.microsoft.com/nl-be/blog/onelake-shared-access-signatures-sas-now-available-in-public-preview" target="_blank"&gt;https://support.fabric.microsoft.com/nl-be/blog/onelake-shared-access-signatures-sas-now-available-in-public-preview&lt;/A&gt;.&lt;BR /&gt;Would it be possible for you to create this url and send it in the mail? I did not test this myself, but it may be a solution for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An alternative is to write a custom python script in a notebook that uploads your file to Sharepoint/OneDrive. It is possible to achieve that without Power Automate. Here is such an example: &lt;A href="https://stackoverflow.com/questions/23696705/how-to-upload-a-file-to-sharepoint-site-using-python-script" target="_blank"&gt;https://stackoverflow.com/questions/23696705/how-to-upload-a-file-to-sharepoint-site-using-python-script&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 15:43:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Sending-automatic-email-with-an-attachment-link-to-a-file-in/m-p/4243378#M5911</guid>
      <dc:creator>FabianSchut</dc:creator>
      <dc:date>2024-10-15T15:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sending automatic email with an attachment/link to a file in OneLake</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Sending-automatic-email-with-an-attachment-link-to-a-file-in/m-p/4243998#M5925</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="187376" data-lia-user-login="zenisekd" class="lia-mention lia-mention-user"&gt;zenisekd&lt;/a&gt;&amp;nbsp;- Is there a reason why you are unable to use the Dynamic Report Subscriptions in this case?&amp;nbsp; I'm assuming it is because the recipient doesn't have access to the environment?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Onelake supports the same API's as ADLS Gen2 so you can use the API's to get the content of a Blob (File) and then turn around and attach that to an email.&amp;nbsp; I did this with Logic Apps and here is an article pointing the general steps in Logic Apps that you can basically code in Pipelines/Python to follow the steps. (&lt;A href="https://medium.com/@jakubrzepka/azure-logic-app-send-files-from-blob-storage-using-email-edff69e7c1bf" target="_blank"&gt;https://medium.com/@jakubrzepka/azure-logic-app-send-files-from-blob-storage-using-email-edff69e7c1bf&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if you can use the Outlook Activity in the Pipeline to do the attaching or if you have to call the Outlook API's directly.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 03:41:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Sending-automatic-email-with-an-attachment-link-to-a-file-in/m-p/4243998#M5925</guid>
      <dc:creator>jwinchell40</dc:creator>
      <dc:date>2024-10-16T03:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sending automatic email with an attachment/link to a file in OneLake</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Sending-automatic-email-with-an-attachment-link-to-a-file-in/m-p/4244652#M5934</link>
      <description>&lt;P&gt;Hello,&amp;nbsp; thank you for your suggestions.&lt;BR /&gt;&lt;BR /&gt;The first suggestion is not suitable, as it share the OneLake, which doesn't support simple download of your files, which is what I seek.&lt;BR /&gt;&lt;BR /&gt;The second suggestion is discussing local file (on a computer) uploading to sharepoint. I mean it could be modified, but I don't have the skill for it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will be less hassle to try to ask chatGPT to come up with a code for Notebook to send the file from Onelake to Onedrive and modify it... Watching the code suggestion, I dislike the fact, that I need to insert into the code the credentials. If I change them in time, it will fail. I was hoping that since it is a onedrive/sharepoint on the same account as the onelake, it will be smooth without adding the credentials.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 10:54:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Sending-automatic-email-with-an-attachment-link-to-a-file-in/m-p/4244652#M5934</guid>
      <dc:creator>zenisekd</dc:creator>
      <dc:date>2024-10-16T10:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Sending automatic email with an attachment/link to a file in OneLake</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Sending-automatic-email-with-an-attachment-link-to-a-file-in/m-p/4245222#M5937</link>
      <description>&lt;P&gt;You could also use a service principal for that, so you don't need your credentials. An example of the authorization with service principal can be found here:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/75836585/how-do-i-authorize-a-python-script-to-upload-to-sharepoint-online#answer-75839998" target="_blank"&gt;https://stackoverflow.com/questions/75836585/how-do-i-authorize-a-python-script-to-upload-to-sharepoint-online#answer-75839998&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 17:24:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Sending-automatic-email-with-an-attachment-link-to-a-file-in/m-p/4245222#M5937</guid>
      <dc:creator>FabianSchut</dc:creator>
      <dc:date>2024-10-16T17:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sending automatic email with an attachment/link to a file in OneLake</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Sending-automatic-email-with-an-attachment-link-to-a-file-in/m-p/4267818#M6187</link>
      <description>&lt;P&gt;MSFT Graph API has fine-grain actions over emails, including attachment, CID specs, etc.&lt;BR /&gt;Run it through the Web Activity.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/graph/api/resources/message?view=graph-rest-1.0" target="_blank"&gt;message resource type - Microsoft Graph v1.0 | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 22:34:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Sending-automatic-email-with-an-attachment-link-to-a-file-in/m-p/4267818#M6187</guid>
      <dc:creator>AndreyBear</dc:creator>
      <dc:date>2024-11-02T22:34:17Z</dc:date>
    </item>
  </channel>
</rss>

