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

3 REPLIES 3
Highlighted
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.

Administrator
Administrator

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

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 45 members 3,971 guests
Please welcome our newest community members: