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.
Solved! Go to Solution.
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:
I have made a test on my side, please take a try with the following workaround:
Flow's configuration as below:
The email sends successfully as below:
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,
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?
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?
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.
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:
I have made a test on my side, please take a try with the following workaround:
Flow's configuration as below:
The email sends successfully as below:
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,
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
User | Count |
---|---|
135 | |
132 | |
79 | |
75 | |
71 |
User | Count |
---|---|
210 | |
197 | |
69 | |
62 | |
53 |