cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pearldrumbum
Level: Powered On

Create link to newly created SharePoint item

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?

1 ACCEPTED SOLUTION

Accepted Solutions
tchin-nin
Level 10

Re: Create link to newly created SharePoint item

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

View solution in original post

3 REPLIES 3
Brentless
Level 8

Re: Create link to newly created SharePoint item

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.

TopShelf-MSFT
Level 10

Re: Create link to newly created SharePoint item

Thank you for the suggested solution @Brentless@pearldrumbum can you advise if this helped?

 

@TopShelf-MSFT

tchin-nin
Level 10

Re: Create link to newly created SharePoint item

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

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,282)