SOLVED

Track Who sent the form

Brass Contributor

Hello,

 

We have a post demo survey we would like to send out to prospects after a product demo. How can we track who the sender is? Our sender is an individual on our sales team.

 

We've thought of 1 option and that is to ask the responder for their presenter's name. 

 

Thank You!

2 Replies

@kaz01 asking for the presenter's name is one option and probably the simplest. Forms doesn't have a method for doing what you want. But you can basically automate the process using a SharePoint list (with JSON-formatted button) and a flow in Power Automate.

 

For the list you need a column for the email address of the recipient (I usually use the Title column for this), a column for the client, a single line of text column for the button, a single line of text column for the SentBy and a date/time column for the sent date & time.

0-SP-List.png

 

In Power Automate the trigger is the SharePoint "for a selected item" but add an text input where the person triggering the flow will enter their name.

1-Flow.png

 

You then need a get item action to det the details of the selected item.

2-Flow.png

 

You might not need this next action but I always use it to get a logo png image file from SharePoint to use in the email.

3-Flow.png

 

Next, add a Send an email (v2) action. This will be sent from your email account which is why we've asked the sender to enter their name in the trigger.

4-Flow.png

 

 Finally for the flow, add an "update item action" which will add the name of the send and the current date and time into the list item. The expression for the Sent column is 

formatDateTime(utcNow(),'yyyy-MM-dd HH:mm')

5-Flow.png

 

For the button you will need the ID of your flow. Save the flow and copy the flow ID from the address bar. Then format the SendButton in advanced mode with the following JSON, replacing the flow ID with your flow ID, and you can change the button text in the txtContent line,  the panel header text and the run flow button text, all in the actionParams line:

Spoiler
{
"elmType": "button",
"txtContent": "Send Email and Form",
"customRowAction": {
"action": "executeFlow",
"actionParams": "='{\"id\":\"8e02c945-b98d-4c7e-8ed9-39210cfaa205\", \"headerText\":\" ' + [$Client] + '\",\"runFlowButtonText\":\"Send\"}'"
},
"style": {
"background-color": "#cf000f",
"color": "white",
"border-radius": "10px",
"border": "1px solid"
}
}

 

9-Flow-ID.png

 

When the button is clicked in the list the flow panel will open, the sender will enter their name and click Send. The flow will run.

 

 

6-Flow-Panel.png

 

The email will be received:

7-Email.png

 

And the SharePoint list will be updated with the name of the sale person sending it and the date it was sent.

8-SP-Result.png

 

Hope that helps.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

best response confirmed by kaz01 (Brass Contributor)
Solution

@RobElliott 

 

Thank you for this "out of the box" solution. Managed to follow your steps and set it up successfully. Team members are thrilled with this solution. Appreciate you sharing your knowledge. 

 

 

1 best response

Accepted Solutions
best response confirmed by kaz01 (Brass Contributor)
Solution

@RobElliott 

 

Thank you for this "out of the box" solution. Managed to follow your steps and set it up successfully. Team members are thrilled with this solution. Appreciate you sharing your knowledge. 

 

 

View solution in original post