I have a powerapp form that submits all the entered fields as a new item in a sharepoint list. It also fires off a flow that sends a confirmation email. I'd like to include a link in the email to the newly created item in the SharePoint list.
I tried just creating a node in the email flow and entering ThisItem.'{link}' as the argument in the Email.Run() method but it says that's an invalid paramter. I then tried Text(ThisItem.'{link}') and it accepted it, but the string was blank.
How can I accomplish this?
Solved! Go to Solution.
Hi,
I would suggest to use the LastSubmit property of your EditForm.
When you submit a new or existing form to a DataSource, you can retrieve it's properties by using the LastSubmit property of the form.
On your flow, use a PowerApps trigger and a 'Ask in PowerApps' variable for the item URL in the mail body.
Then, you flow will expect parameters when it's called from PA :
On your submit button you can do something like :
SubmitForm(EditForm1)
Then on the form OnSucces property :
SendEmailFlow.Run(EditForm1.LastSubmit.{Link to Item})
(I am not sure for the {Link to Item} syntaxe, just have a look on a suggested properties availables.
Theo
From the flow that is sending the email, possibly try a "Get Items" and find the most recent item with the same title you created. Then you can construct the link based on the returned ID, as well as any other fields in that item you want to include in the email.
Thank you for the suggested solution @Brentless! @pearldrumbum can you advise if this helped?
@Anonymous
Hi,
I would suggest to use the LastSubmit property of your EditForm.
When you submit a new or existing form to a DataSource, you can retrieve it's properties by using the LastSubmit property of the form.
On your flow, use a PowerApps trigger and a 'Ask in PowerApps' variable for the item URL in the mail body.
Then, you flow will expect parameters when it's called from PA :
On your submit button you can do something like :
SubmitForm(EditForm1)
Then on the form OnSucces property :
SendEmailFlow.Run(EditForm1.LastSubmit.{Link to Item})
(I am not sure for the {Link to Item} syntaxe, just have a look on a suggested properties availables.
Theo
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
183 | |
46 | |
46 | |
34 | |
33 |
User | Count |
---|---|
260 | |
87 | |
79 | |
68 | |
67 |