Other - Dynamic Link to list items
Original Post by maryb (Imported from Ardevia Forum)
I am trying to add a behaviour to the save button I can generate an email but woul be grateful if you could provide the line of code to
dynamically link to the list item being being edited
thus allowing users to click link to be bought back to a specific item.
Many thanks,
Mary
-
Original Post by Vitaliy Zadorozhnyy (Imported from Ardevia Forum)
Hi Mary,
Just open edit/display form of some created item and copy url to Send Mail action you have added after Save Form action.
Your url could look like this:?Code:
https://<site collection>/_layouts/15/start.aspx#/Lists/<ListName>/EditForm.aspx?ID=1&Source=...
In this url just replace specific ID query string parameter with placeholder [[ID]] which will be evaluated to Id of newly created item and remove other parameters of not needed. So your url could look like this:
Code:
https://<site collection>/_layouts/15/start.aspx#/Lists/<ListName>/EditForm.aspx?ID=[[ID]
To make like link in email use anchor html tag. The result link could look like this:
Code:
<a href="https://<site collection>/_layouts/15/start.aspx#/Lists/<ListName>/EditForm.aspx?ID= [[ID]]">Created Item</a>
Hope this helps.
0 -
Original Post by maryb (Imported from Ardevia Forum)
Hi Vitaliy,
Many thanks - now able to send email On Save that links to current item.
0
Please sign in to leave a comment.
Comments
2 comments