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!