web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get field from a Cogni...
Power Automate
Unanswered

Get field from a Cognito form and use it another flow for email

(0) ShareShare
ReportReport
Posted on by 10

Hello,

 

I have 2 flows for a document approval process that I am working on.

The first one triggers when a new entry is created in Cognito forms.

Then it saves the attachment from the file upload field on the form to a folder in SharePoint.

Then the second one triggers when a file is created in SharePoint, runs the document approval step, and then sends an email notifying if the document was approved or rejected.

Currently the email address is hard coded, but the Cognito form has an email address field on it.

How can I send that email address to use in the To: field of the "Send an Email (V2)" step in the second flow?

One thing that may help, I am keeping records of the approvals in a SharePoint list, maybe I can store the email in there and retrieve it?

I am doing this in my second flow.

Not sure how I would retrieve it and make sure it is linked to the correct document that was uploaded.

Thanks!

 

1st flow (copies the attachment from Cognito to SharePoint):

cchung_1-1695603920717.png

 

2nd flow (creates an initial pending item in a SP list, sets off the approval process, then emails of approval/rejection moves the file to approved or rejected folder, then updates the status of the item in the SP list): 

cchung_2-1695603957659.png

cchung_3-1695604048734.png

cchung_4-1695604223908.png

 

 

 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,369 Super User 2025 Season 2 on at

    Hello,

     

    Can you see if it shows up as a Dynamic Property from the trigger? To the best of my knowledge that is the only way you can get that property.

     

    So if it does, just plop it in the Email To (whats the format of the email?)


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • cchung Profile Picture
    10 on at

    My question is how can I get that email address to show up in the second flow from the 1st flow while keeping a link to the correct record and document that was uploaded? Right now, it is only dynamic in the 1st flow.

  • Michael E. Gernaey Profile Picture
    53,369 Super User 2025 Season 2 on at

    Good Morning,

     

    Ok, so here is what you do. Please note I do not have a Cognito license, so I am pretending its Cognito but it works EXACTLY the same.

     

    In Flow 2, use a Manual Trigger and add an Input. You have 2 choices

    a) Use an Email Address Input

    b) Use a TextInput Input

     

    --It depends on how your email property looks like from Cognito or if its many email addresses. Either Input type will work for Send Email

     

    In my example I have 2 flows. My example Says write a file in the title, but I also send an email

    FLMike_0-1695648338446.png

    Send file content to a child flow will send content AND an email address to the child flow, Write File Content

     

    Here is my Flow 2 Trigger

    FLMike_1-1695648461651.png

    In Flow 2, Here is my send email using the Dynamic Property EmailAddress from the Trigger

    FLMike_3-1695648550357.png

    In Flow 2, here is a second example of my using the EmailString instead of EmailAddress. Note these are just 2 different inputs, one of Email and one of String

    FLMike_4-1695648602779.png

     

    Then from Flow 1 

    My Manual trigger has 2 email Inputs just like Flow 2, String and EmailAddress

    FLMike_5-1695648673376.png

     

    Flow 1

    Then in my Run a Child Flow I put both properties in. Again you do not need both this is an example so you can choose which one you prefer

    FLMike_6-1695648760951.png

    And that is how you would pass the Email Address, either by a String or by an actual Email Address Input.

    Instead of using the 2 properties I have you would pass your Congito Trigger email address property. I would suggest passing it as a String to be safe.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

     

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard