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 / Use formula to decide ...
Power Automate
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.

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @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

  • uggliMuggli Profile Picture
    22 on at

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

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard