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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Change part of URL

(0) ShareShare
ReportReport
Posted on by 26

Hi all,

I have a list of item, whith corresponding ID. I would like put this ID(1234) in URL to go directly to item page.

.../master/suppliers/6/products/1234/edit

I don't know the correct comand but I think that should be something like 

.../master/suppliers/6/products/[ExcelData][LoopIIndex][1]/edit

where [ExcelData][LoopIIndex][1] is the reference to my item's list.

Could someone teach me how to resolve?

Thank you

I have the same question (0)
  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Hi @Pow3rAutomat3 

    Your thinking is correct.

    To learn:

    1. Search forum - there are many identical questions to this one

    2. Read documentation, start here:

    https://learn.microsoft.com/en-us/power-automate/desktop-flows/use-loops

     

     

     

     

  • Verified answer
    werkbook Profile Picture
    36 on at

    @Pow3rAutomat3 

     

    The following flow provides a high level overview of the solution:

    Untitled.png

     

    We will need to read the Excel data as a datatable using the action “Read from Excel worksheet”. Remember to specify that the first line of range contains column names under the advanced properties.

    Untitled (1).png

     

    Then, using the action “For each”, we will loop through each of the datarow “CurrentItem“ ****in the datatable. For each iteration of the loop, we use the action “Go to web page” to navigate to the URL “%Url%/%CurrentItem[0]%/%CurrentItem[1]%” which consists of 3 parts:

    1. %Url% which is fixed and is “https://links.sgx.com/1.0.0/corporate-announcements/” in this example
    2. %CurrentItem[0]% refer to the first column of the current datarow, i.e. “CurrentItem“, which is read from the Excel
    3. %CurrentItem[1]% refer to the second column of the current datarow, i.e. “CurrentItem“, which is read from the Excel

    Untitled (2).png

     

    Attached is the Excel file used for your reference. Hope this helps!

     

    PS: To read more about this topic, please visit How to navigate to different URLs based on an Excel spreadsheet (werkbook.co)

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    it would be something similar to like this:

    .../master/suppliers/6/products/%ExcelData%/edit

     

    %ExcelData% - Variable produced in Read from Excel worksheet.

  • Pow3rAutomat3 Profile Picture
    26 on at

    Hi all.

    Thank you for your advices.

    I solved using a flow similar to that one @werkbook proposed.

    Since I made a list of items ID, instead to make a new variable, I used the follow URL

    .../suppliers/6/products/%ExcelData2[LoopIndex][0]%/edit

    where %ExcelData2[LoopIndex][0]% is the reference to my list in loop.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard