cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Send Email with onselect

Hello Everyone,

 

I'm currently trying to make a button send a PDF by email. The PDF is generated by Flow with Htmltext and saved on SharePoint. I'm currently able to generate the PDF, however I cannot get an email to send. Attached you will find my current working flow + onselect code, which is working. 


Please help me add this email function.

 

flow.PNGon select.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

You would just add a Send an email V2 step, and then put the Name from the Create File step (green box) into the Attachments entry of the Send an email V2 step (purple box):SendEmailV2AddAttachment.png

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

5 REPLIES 5
Super User II
Super User II

You would just add a Send an email V2 step, and then put the Name from the Create File step (green box) into the Attachments entry of the Send an email V2 step (purple box):SendEmailV2AddAttachment.png

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Anonymous
Not applicable

Hi Brad,

 

I'm recieving this error. 

 

{
"status": 400,
"message": "Parameter 'Attachment Content' cannot be null or empty.\r\nclientRequestId:",
"source": "office365-wus.azconn-eus-01.p.azurewebsites.net"
}
Anonymous
Not applicable

Actually Resolve that issue by adding OneDrive File Content Variable.

 

The last thing I need is to make the email dynamic. I have an email field called "Company Email" and I'm hoping to have this in the To: field.

 

 

Where is the Company Email field located? You would just call it from whichever action step that is needed, and then input that field into the To box within the Send an email V2 step. If it is a SharePoint List item, then you'd do a Get Item action, or if it is an Excel item, you would use the Get a row action.

You follow the same basic principles througout Flow, every step you add (actions or triggers) gives you access to the parameters from those actions that can be used in subsequent steps within the Flow. 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Anonymous
Not applicable

Hi Brad,

 

The Company Email is a column in my SharePoint list. It is collected when filling out my custom form.

 

I've tried looking for the GetItem under expressions but could not find it. Am I missing something? Do I need to initiate a variable? Or am I supposed to use the item expression?

 

email.png

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (71,024)