SOLVED

Trigger a flow to send custom message email

%3CLINGO-SUB%20id%3D%22lingo-sub-831743%22%20slang%3D%22en-US%22%3ETrigger%20a%20flow%20to%20send%20custom%20message%20email%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-831743%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20thought%20this%20would%20be%20very%20easy%2C%20but%20I'm%20stuck%20while%20implementing.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ERequirement%3A%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EOn%20click%20(%3CFONT%20size%3D%221%202%203%204%205%206%207%22%3E%3CSPAN%3EJSON%26nbsp%3B%3C%2FSPAN%3Eformat%20flow%20trigger%2C%20image%20below%3C%2FFONT%3E)%20trigger%20a%20flow%20to%20send%20email%20with%20custom%20message.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20could%20trigger%20a%20flow%2C%20but%20couldn't%20figure%20out%20how%20to%20get%20the%20document%20link%20and%20a%20custom%20user%20message%20to%20the%20flow.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EBottom%20line%3C%2FSTRONG%3E%3A%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20send%20parameters%20to%20flow%20which%20is%20button%20triggered.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F129415iFE0EFDE43FA18669%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-831743%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharepointOnline%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-832633%22%20slang%3D%22en-US%22%3ERe%3A%20Trigger%20a%20flow%20to%20send%20custom%20message%20email%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-832633%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F383756%22%20target%3D%22_blank%22%3E%40amalwayscharan%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20possible%20using%20the%20%22For%20selected%20file%22%20SharePoint%20trigger.%20Initialize%20a%20string%20variable%20to%20store%20the%20%22FileId%22%20value%20and%20then%20%22Get%20files%20(properties%20only)%22%20on%20the%20document%20library%20filtering%20using%20%22ID'%20equal%20variable%20name.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESample%20Flow%20below%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20644px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F129570i914E2A35ADB0A266%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Untitled.png%22%20title%3D%22Untitled.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENorm%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-834536%22%20slang%3D%22en-US%22%3ERe%3A%20Trigger%20a%20flow%20to%20send%20custom%20message%20email%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-834536%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F111382%22%20target%3D%22_blank%22%3E%40Norman%20Young%3C%2FA%3E%26nbsp%3B%2C%20I%20couldn't%20find%20the%20trigger%20you%20mentioned.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAm%20I%20missing%20something%3F%20Please%20help.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F129789iAF3AF8354EFBB4EA%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-834547%22%20slang%3D%22en-US%22%3ERe%3A%20Trigger%20a%20flow%20to%20send%20custom%20message%20email%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-834547%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F111382%22%20target%3D%22_blank%22%3E%40Norman%20Young%3C%2FA%3E%26nbsp%3B%26nbsp%3BI%20found%20it.%20Thank%20you%20for%20your%20help.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F129797i8805518C3D3EE4BC%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22clipboard_image_0.png%22%20title%3D%22clipboard_image_0.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello,

 

I thought this would be very easy, but I'm stuck while implementing. 

 

Requirement: 

On click (JSON format flow trigger, image below) trigger a flow to send email with custom message. 

I could trigger a flow, but couldn't figure out how to get the document link and a custom user message to the flow.  

 

Bottom line

Is there a way to send parameters to flow which is button triggered. 

 

clipboard_image_0.png

3 Replies
best response confirmed by amalwayscharan (Occasional Contributor)
Solution

Hi @amalwayscharan,

 

This is possible using the "For selected file" SharePoint trigger. Initialize a string variable to store the "FileId" value and then "Get files (properties only)" on the document library filtering using "ID' equal variable name. 

 

Sample Flow below:

Untitled.png

 

I hope this helps.

 

Norm

 

 

Thank you @Norman Young , I couldn't find the trigger you mentioned. 

 

Am I missing something? Please help. 

 

clipboard_image_0.png

@Norman Young  I found it. Thank you for your help. 

 

clipboard_image_0.png