Skip to main content

Notifications

Community site session details

Community site session details

Session Id : pQDeHi+b0JMopQkSSXwwRZ
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard