cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
oappdev
Post Prodigy
Post Prodigy

Shorten SharePoint URL link?

Is there a way to shorten the link to SharePoint List item in Power Automate?

When using Link to item

 

Capture1.PNG

 

It create the following URL

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
DeepakS
Super User
Super User

Hi @oappdev 

 

You can use either of following option to short or make it more user friendly URL :

 

Option 1) Hard code the list path and dynamically ad Id

concat('https://<sharepoint>.sharepoint.com/Lists/DateList/DispForm.aspx?ID=',items('Apply_to_each_2')['Id'])
 
Option 2) If you are sending this in email you can use Html to create an link tag :
<a href="items('Apply_to_each_2')?['{Link}']">Click Here to View Item</a>
 

-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

 

 

View solution in original post

7 REPLIES 7
DeepakS
Super User
Super User

Hi @oappdev 

 

You can use either of following option to short or make it more user friendly URL :

 

Option 1) Hard code the list path and dynamically ad Id

concat('https://<sharepoint>.sharepoint.com/Lists/DateList/DispForm.aspx?ID=',items('Apply_to_each_2')['Id'])
 
Option 2) If you are sending this in email you can use Html to create an link tag :
<a href="items('Apply_to_each_2')?['{Link}']">Click Here to View Item</a>
 

-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

 

 

Thank you @DeepakS  Will give it a try and circle back 

Sorry for delay @DeepakS Finally got it to work. Thank you again

 

Capture.PNG

Hi @DeepakS 

 

What should I change in the html code to make it work?

Anomadeus
Frequent Visitor

 why isn't this made so anyone can do it? You didn't drop the ball, you lost it completely.

Mohamed007
New Member

Hi ,

 

   I have tried the below scenario but i am getting the error as below

 

Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The repetition action(s) 'Apply_to_each_2' referenced by 'inputs' in action 'Start_and_wait_for_an_approval' are not defined in the template.'.'.

 

Mohamed007_1-1626249923741.png

 

 

 

I have clicked the expression and add the contact :

concat('https://<sharepoint>.sharepoint.com/Lists/DateList/DispForm.aspx?ID=',items('Apply_to_each_2')['Id']) changed according to my url.

 

Please can you help me . It is urgent?

 

 

hi Oapdev, DeepakS

Did you use it in a variable?  I tried to use the html tag in the Send email body, and it didn't work.  I tried to put it in a variable and reuse the variable in the Send Email, still didn't work. Thank you. 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,378)