Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Use formula to decide which SharePoint list to Get Items from

(0) ShareShare
ReportReport
Posted on by 22

I have this really complex flow that I don't want to rewrite. Is it possible to use a formula to decide which SharePoint list to Get Items from?

 

If the answer to a forms question is x then get items from x SharePoint list, else get it from y sharepoint list on the same site. if(equals(formAnswer,'x'),x,y) and if(equals(formAnswer,'x'),'x','y') don't work, neither does referencing the lists using their identifer.

  • uggliMuggli Profile Picture
    uggliMuggli 22 on at
    Re: Use formula to decide which SharePoint list to Get Items from

    It works! I don't know why it didn't when I was trying it before, but thanks!!

  • Verified answer
    ScottShearer Profile Picture
    ScottShearer 25,150 on at
    Re: Use formula to decide which SharePoint list to Get Items from

    @uggliMuggli 

    See my example below.  I ran the Flow and it completes without error if I select List A or List B.  My expression can be seen in the Action notes.

    image.pngimage.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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard

Featured topics