Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 7 May 2022 09:21:45 by 1,027

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

 

  • Craig Stewart ABZ Profile Picture
    957 Super User 2024 Season 1 on 07 May 2022 at 16:38:40
    Re: Is it possible to pass a variable string for the List Name of the Sharepoint Get Items action?

    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

     

  • Verified answer
    Craig Stewart ABZ Profile Picture
    957 Super User 2024 Season 1 on 07 May 2022 at 16:32:14
    Re: Is it possible to pass a variable string for the List Name of the Sharepoint Get Items action?

    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

     

  • CU16021406-1 Profile Picture
    1,027 on 07 May 2022 at 15:53:50
    Re: Is it possible to pass a variable string for the List Name of the Sharepoint Get Items action?

    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

  • Craig Stewart ABZ Profile Picture
    957 Super User 2024 Season 1 on 07 May 2022 at 11:12:36
    Re: Is it possible to pass a variable string for the List Name of the Sharepoint Get Items action?

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

    CraigStewart_0-1651921875052.png

    CraigStewart_1-1651921944472.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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 179 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 161 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 143

Overall leaderboard
Loading started