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 Platform Community / Forums / Power Automate / "Insert At" while usin...
Power Automate
Answered

"Insert At" while using lists.

(0) ShareShare
ReportReport
Posted on by 16

Hello!

 

Just want to know if there's any way to insert elements into a list as if it was "Insert At" instead of appending them at the end.

Right now I'm just rebuilding the list, which is too inefficient I'd say.

 

Thanks!

I have the same question (0)
  • miketran13 Profile Picture
    720 on at

    Hello,

     

    As I see, there is no way for you to do that with List in PAD. In my opinion, there is a workaround solution that is to create an Excel worksheet then you can insert row with index and then you can write your data to cell. After all, you need to Read excell to get a data table. I have not tried it yet, that is just my idea. 

     

    Thanks and hope it can help you. 

    Mike

    ---------------------------------

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @TPDBS ,

     

    Unfortunately, there is no action similar to insert at.

    You might have to write the logic manually. Using loop and condition.

    If you can explain the scenario, I might even write the code for you.

     

    Hope this helps 🙂

    -Sachin

  • Verified answer
    ZS440 Profile Picture
    262 on at

    @TPDBS How about using a slice?

    How about using a slice
    Insert a pair of value and position.
    However, for the position at index 0 (first), this method will not work. Try it.

    ZS440_0-1615581488701.png

    ZS440_1-1615581513022.png

     

    ZS440_2-1615581539171.png

    ZS440_3-1615581593355.png

    SET List TO [1, 2, 3, 4, 5, 6, 7, 8, 9]
    SET Insert TO [999, 2]
    SET Insertvalue TO Insert[0]
    SET InsertPosition TO Insert[1]
    SET sublist TO List[:InsertPosition] + Insertvalue
    Variables.MergeLists FirstList: sublist SecondList: List[InsertPosition:] OutputList=> List

     

     

     

  • TPDBS Profile Picture
    16 on at

    Very interesting, this is sort of what I was looking for. Thank you! Where can I find more info about things like ":". I feel like I'm sometimes limited by not knowing more about the % notation and the expressions I can use inside.

  • ZS440 Profile Picture
    262 on at

    hi @TPDBS 

    PAD is based on the Robin language, so you should read the Robin documentation. However, please note that PAD is customized and there are some differences.

    https://robin-language.org/

    I wrote a blog post about my research on the variables of PAD and other examples. Here's a link to the article in Japanese.

    https://qiita.com/sys_zero

     

  • burque505 Profile Picture
    398 on at

    @TPDBS, a direct link to the Robin language page on manipulating variables is here. Scroll down to the section on "Indexing and Slicing" for examples of how to use the ":" notation provided in the solution.

    Regards,

    burque505

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 272 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 147 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 146 Super User 2026 Season 2

Last 30 days Overall leaderboard