web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

link to item

(0) ShareShare
ReportReport
Posted on by 18

I've created a workflow in Flow and am using the Link to Item in Dynamic Content.

Is it possible to utiilize this function, but modify it so that the link goes to a specific/custom form I've built in Designer? Or, not to go to the default list view.

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    A link is a link - you can supply any valid link.  Obliviously, you'll need to append the list item ID to the URL in a manner similar to what you do in a Designer workflow.

    I ran a test and captured the what is stored in Link to Item - my test was on a custom list.

    Here is what the link looked like:

  • pabbott Profile Picture
    18 on at

    Scott -- Thanks for the reply. So what you're showing as code, as you say, is what the Link to Item generates behind the scenes. What I'm trying to figure out is if it's possible to have the part that has listform.aspx be modified to go to a custom form that's been created. So, it would be customform.aspx.

     

    Or, to put it another way: is it possible to edit the Link to Item or append it?

  • pabbott Profile Picture
    18 on at

    Or (after re-reading your response): if I was to go the URL route, as opposed to the Link to Item route, how would I append the list item ID to the URL so that it's dynamic for all new items submitted, not a static ID?

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @pabbott,

     

    Could you please share a screenshot of your flow's configuration?

    Do you want to change the listform.aspx into customform.aspx within the Link to item dynamic content?

     

    If you want to change the listform.aspx into customform.aspx within the Link to item dynamic content, I have made a test on my side, please take a try with the following workaround:6.JPG

    Within Compose 2 action, Inputs field set to following formula:

    replace(outputs('Compose'),last(split(split(outputs('Compose'),'?')[0],'/')),'CustomForm1.aspx')

    or

    replace(outputs('Compose'),'listform.aspx','CustomForm1.aspx')

    Note: The CustomForm1.aspx represents the custom form on your side. On your side, type the following formula:

    replace(outputs('Compose'),last(split(split(outputs('Compose'),'?')[0],'/')),'customform.aspx')

    or

    replace(outputs('Compose'),'listform.aspx','customform.aspx')

     

    The flow works successfully as below:7.JPG

     

    But if you change listform.aspx into customform.aspx within the Link to item dynamic content, the modified link could not be open well, so you could not go to your specific/custom form via the modified link.

     

    If you want to go to your specific/custom form via editing the Link to item dynamic content, I afraid that there is no way to achieve your needs in Microsoft Flow currently. If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas 

     

     

    Best regards,

    Kris

     

     

  • pabbott Profile Picture
    18 on at

    Kris -- Thanks. This makes sense, but I haven't been able to successfully implement it yet.

     

    My Flow is...

     

    1. When an item is created
    2. Send an email

    Should Compose and Compose 2 go between those steps, or after Send an email?

     

    flow-steps.jpg

  • pabbott Profile Picture
    18 on at

    Oh, I figured out what I was doing wrong! It does work...very nice!

    However...

    Now it redirects to the correct custom form I've built, but in the process the ContentTypeId gets a ListId stuck in between it and the form, and breaks the link.

    Hmmm...

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 484

#2
11manish Profile Picture

11manish 282

#3
David_MA Profile Picture

David_MA 280 Super User 2026 Season 1

Last 30 days Overall leaderboard