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

Embedded link to a Sharepoint List item in PowerApp

Good afternoon all,

We're just starting out on our PowerApps journey and with the help of Youtube and resources such as this one, we're making some decent headway on what we can do functionally. I've created a flow that emails a user to say that a new sharepoint list item has been added however I'm stuck on how to embed a link to allow that item to be opened in the app so that we can control what fields are editable, and more importantly limit people editing other documents. I've found a few threads that refer to passing the ListItemID as a variable however none of the instructions I've found seem to work. Is anyone able to share some detailed instructions on how to set this process up? As I say, we're still quite new to this, so any help would be appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Embedded link to a Sharepoint List item in PowerApp

Hi @cowelka1 ,

Could you please share a bit more about your scenario?

Do you want to embed a URL link within an email sent from your flow, and when the user click the URL link, navigate them to open a specific item in the Edit form of your app?

 

The user @orbd has faced same issue with you, please check my response/solution within the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/Editing-a-record-from-a-flow-powerapp/m-p/265...

 

I have made a test on my side, please take a try with the following workaround:

Flow's configuration as below:6.JPG

The email sends successfully as below:7.JPG

 

App's configuration as below:

Set the OnStart property of the App control to following:

Set(ItemID, Param("ID"));
If(
   !IsBlank(ItemID),
   Navigate(EditScreen, ScreenTransition.None)
)

Within your Edit screen, set the Item property of the Edit form to following:

If(
   !IsBlank(ItemID),
   LookUp('YourSPList', ID = Value(ItemID)),
   BrowseGallery1.Selected
)

Please consider take a try with the following solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
myke_deabreu
Level 8

Re: Embedded link to a Sharepoint List item in PowerApp

Hi Cowelka1,

 

If you put your Sharepoint List in a gallery you can launch the file into a new tab on your browser by doing the following:

 

##Notice the First as there could be multiple attachments so you have to specify one.

Launch(First(ThisItem.Attachments).AbsoluteUri) 

 

You could use that same concept to attach the link to the email.

 

Are you running the Flow within your app? 

 

cowelka1
Level: Powered On

Re: Embedded link to a Sharepoint List item in PowerApp

The flow is triggered once the sharepoint list item is created. We've played around with getting the ID of the list item and appending this to the URL of the application itself but without success. I wasn't aware you could trigger an email from the app though. Would this be a better approach to take?

myke_deabreu
Level 8

Re: Embedded link to a Sharepoint List item in PowerApp

It really depnds on you.

 

I have some apps I use Flow to send the email and others I found it easier to just use PowerApps. Where I use Flow is if I am getting varibles/date from multiple sources. If the data is all within your app you could just do it straight from the PowerApp using the Outlook connector.

 

The formula would look something like:

 

Office365.SendEmail(
#Email address(s) if multiple use ; to seperate#,
"#SUBJECT#",
"#BODY OF EMAIL");

 

Let me know if you need help constructing embedding the link.

Highlighted
Community Support Team
Community Support Team

Re: Embedded link to a Sharepoint List item in PowerApp

Hi @cowelka1 ,

Could you please share a bit more about your scenario?

Do you want to embed a URL link within an email sent from your flow, and when the user click the URL link, navigate them to open a specific item in the Edit form of your app?

 

The user @orbd has faced same issue with you, please check my response/solution within the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/Editing-a-record-from-a-flow-powerapp/m-p/265...

 

I have made a test on my side, please take a try with the following workaround:

Flow's configuration as below:6.JPG

The email sends successfully as below:7.JPG

 

App's configuration as below:

Set the OnStart property of the App control to following:

Set(ItemID, Param("ID"));
If(
   !IsBlank(ItemID),
   Navigate(EditScreen, ScreenTransition.None)
)

Within your Edit screen, set the Item property of the Edit form to following:

If(
   !IsBlank(ItemID),
   LookUp('YourSPList', ID = Value(ItemID)),
   BrowseGallery1.Selected
)

Please consider take a try with the following solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

cowelka1
Level: Powered On

Re: Embedded link to a Sharepoint List item in PowerApp

Thankyou for the support and apologies for the delay in responding, It seems posting a question just before a holiday wasn't the best of ideas. I've modified the code slightly to take the user into the browse screen just so I can control whether any users on copy are allowed to place the form into edit mode, but otherwise it works perfectly 

Helpful resources

Announcements
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,908)