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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Quick Subscribe Button...
Power Automate
Unanswered

Quick Subscribe Button using Flow to add emails to a SP list

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I'm stuck on this flow. I need to create a flow that does the following:

1. User clicks a button on a SharePoint site page. - done

2. Button triggers Microsoft Flow. - done

3. Microsoft Flow gets user's email address. - I was able to get email address back by using https://<companysitename>.sharepoint.com/_api/Web/CurrentUser/Email

4. Microsoft Flow uses Create Item to put the retrieved email address in a SP list.

 

My problem is that I have all the bits and pieces working, but I can't get them all to work together. The button works, the flow triggers, the URL makes sense when I use it in a browser, and MS Flow is creating a list item, but the list item is missing the email address.

 

Here's my Flow:

 

===Trigger: "When a HTTP request is received"===

 

JSON:

{
"content-type": "application/json;odata=verbose",
"function": "getCurrentUser",
"type": "object",
"properties": {
"email": {
"type": "string"
}
}
}
 
Method: GET
relativePath: Web/CurrentUser/Email
 
===Action: "Sharepoint Create Item"===
 
Site Address: URL for list
List Name: name of list
Email: required field that I'm trying to fill, passing the "email" parameter from the trigger
 
 
Any help would be appreciated!
Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at
    Re: Quick Subscribe Button using Flow to add emails to a SP list

    Hi @Anonymous,

     

    When working with the Request trigger or the HTTP actions, you may need to parse out JSON data. Please add an action Parses JSON in your flow to see if it will work.

     

    More details about Parse JSON action, please check it at here:

    https://flow.microsoft.com/en-us/blog/five-services-json-http/

     

    There is a blog about Parse JSON action, please take it for a reference:

    http://johnliu.net/blog/2018/6/a-thesis-on-the-parse-json-action-in-microsoft-flow

     

     

    Best regards,

    Mabel Mao

  • GabrielStJohn Profile Picture
    on at
    Re: Quick Subscribe Button using Flow to add emails to a SP list

    Hello,  @Anonymous!

    Have you had an opportunity to apply @v-yamao-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!


    Thank you for being an active member of the Flow Community!

    -Gabriel
    Flow Community Manager

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard