cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
oappdev
Super User
Super User

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
Resident Rockstar
Resident Rockstar

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

8 REPLIES 8
DeepakS
Resident Rockstar
Resident Rockstar

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?

 

 

KPL
Frequent Visitor

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. 

Hello, to use in outlook or in approvals use Markdown 

 

 

 

manu3lgarc_0-1664814062086.png

 

Link reference: Markdown redirect page 

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (4,518)