cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ray2020
New Member

Mail.SendEmailV3 syntax {files:Blob}

I am using the Mail connector  -  Mail.SendEmailV3(To, Subject, Body,html, { files:blob});

I can not figure out the blob syntax/format for the argument {files: blob}

 

Please help!

Ray2020

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi@ray2020,

Could you please tell me that you have stored the files using the Azure Blob Storage connector?

Do you want to send the files once you send a email using the Mail connector?

If my understanding is correct, I want to explain to you that you could not add the Mail connector and the Azure Blob Storage connector at the same time for that using these two connections together conflicts with the company data loss prevention policies.

For more details about the DLP, you could check the following article:

https://docs.microsoft.com/en-us/power-automate/prevent-data-loss 

Here are some known Issues and limitations, please click the underlined content to check for reference.

For stability, I recommend you to use the Office 365 Outlook connector.

You need to add Office 365 Outlook connection and Azure Blob Storage connection within your app firstly.

You could set the OnSelect property of the Button as below:

Office365Outlook.SendEmailV3(
    "User1@email.com",
    "Subject Text Here",
    "Email Body Message Here",
    {
        Attachments: ForAll(
            AzureBlobStorage.ListFolderV2("Type your Specific Folder Id here").value,
            {
                Name: DisplayName,
                ContentBytes: AzureBlobStorage.GetFileContent(Id),
                '@odata.type': ""
            }
        )
    }
);

More details about sending an email with attachments in canvas app, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-outloo...

Hope it helps.

Best Regards,

Qi

Best Regards,
Qi

View solution in original post

1 REPLY 1
v-qiaqi-msft
Community Support
Community Support

Hi@ray2020,

Could you please tell me that you have stored the files using the Azure Blob Storage connector?

Do you want to send the files once you send a email using the Mail connector?

If my understanding is correct, I want to explain to you that you could not add the Mail connector and the Azure Blob Storage connector at the same time for that using these two connections together conflicts with the company data loss prevention policies.

For more details about the DLP, you could check the following article:

https://docs.microsoft.com/en-us/power-automate/prevent-data-loss 

Here are some known Issues and limitations, please click the underlined content to check for reference.

For stability, I recommend you to use the Office 365 Outlook connector.

You need to add Office 365 Outlook connection and Azure Blob Storage connection within your app firstly.

You could set the OnSelect property of the Button as below:

Office365Outlook.SendEmailV3(
    "User1@email.com",
    "Subject Text Here",
    "Email Body Message Here",
    {
        Attachments: ForAll(
            AzureBlobStorage.ListFolderV2("Type your Specific Folder Id here").value,
            {
                Name: DisplayName,
                ContentBytes: AzureBlobStorage.GetFileContent(Id),
                '@odata.type': ""
            }
        )
    }
);

More details about sending an email with attachments in canvas app, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-outloo...

Hope it helps.

Best Regards,

Qi

Best Regards,
Qi

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,582)