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 / Is it possible to pass...
Power Automate
Answered

Is it possible to pass a variable string for the List Name of the Sharepoint Get Items action?

(0) ShareShare
ReportReport
Posted on by 1,066

Dear Experts,

 

Is it possible to pass a variable string for the List Name of the Sharepoint Get Items action?

PeKi72_0-1651915274685.png

Gr. P

 

Categories:
I have the same question (1)
  • Craig Stewart ABZ Profile Picture
    959 Super User 2024 Season 1 on at

    You should be able to do this, add your output to a compose as below.

    CraigStewart_0-1651921875052.png

    CraigStewart_1-1651921944472.png

     

  • CU16021406-1 Profile Picture
    1,066 on at

    With the Get Lists action i get all the lists from my Sharepoint site. What i would like is for every sp list (loop) to get the Get items. I know i have to declare a variable because its an array of lists. So i initialize a variable and apply Apply to each. But i can not put a variable in the Get Items. Is there a way or a better way to do this?

     

    PeKi72_0-1651938819927.png

    Gr. P

  • Verified answer
    Craig Stewart ABZ Profile Picture
    959 Super User 2024 Season 1 on at

    You just need to set the variable here:

    If you click enter custom value on the list drop down you can apply your variable

    CraigStewart_1-1651941123317.png

     

    CraigStewart_0-1651941033281.png

     

  • Craig Stewart ABZ Profile Picture
    959 Super User 2024 Season 1 on at

    You don't actually need to initialise and set variable

     

    You can just use Compose here with DisplayName and add the Outputs to the List Name in Get items.

     

    CraigStewart_0-1651941488812.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard