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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,225)