cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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

View solution in original post

1 REPLY 1
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

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (30,625)