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 / How to retrieve value ...
Power Automate
Answered

How to retrieve value from SharePoint and compare

(0) ShareShare
ReportReport
Posted on by 6

I'm a newcomer to Power Automate and could use some guidance, so your suggestions would be greatly appreciated. Within a SharePoint list, I've set up a dropdown menu for a column named Department. In my workflow, I'm looking to verify whether the department's value is Arts and, if so, add the user to the Arts security group. Similarly, if the department is "English," I want to add the user to the English security group. I've created a variable named checkingdepartment of type boolean with no default value. However, I'm currently struggling to figure out how to compare or check the value of the column from SharePoint. Any help or advice on this matter would be highly valued.

Categories:
I have the same question (0)
  • new_to_power Profile Picture
    6 on at

    Just to clarify Department column in SharePoint is of type "Choice", if it helps

  • Verified answer
    wskinnermctc Profile Picture
    6,519 Moderator on at

    You can use a Condition or a Switch. I think you should use a Switch since it is easier to see the different actions taken based on the value.

     

    I don't know what the action source you are using like (Get Items, When an Item is Created, etc...) but if you have a choice column, you want the dynamic content for that column that ends with "Value" since that will be the single text output.

     

    Below is an example sharepoint list that has a Choice column for InvoiceStatus.

    wskinnermctc_0-1697230321167.png

     

    I have a Switch control that uses the Value of the InvoiceStatus column. In the first Case if the value is equal to Pending then it will start an approval. If the value is equal to Denied it will send an email. If it is neither one of those values it goes to the default case which I left blank.

    Switch ControlSwitch Control

     

    Here you can see there are multiple dynamic content options for InvoiceStatus, but I'm using the one for Value.

    Choice Column ValueChoice Column Value

     

    Let me know if that works for you,

  • new_to_power Profile Picture
    6 on at

    Thank you for providing guidance. This helped me to get it working.

     

    Can I also clarify another question is there a way to set usage location through power automate workflow for a user creation as part of workflow. I cannot figure this out.

  • wskinnermctc Profile Picture
    6,519 Moderator on at

    I don't understand the question?

    "is there a way to set usage location through power automate workflow for a user creation as part of workflow"

     

    That might be something I am unfamiliar with. You should probably post a new topic with more details about what you need.

  • new_to_power Profile Picture
    6 on at

    I was referring to highlighted parameter to be populated for a new user created in Azure AD,

    new_to_power_0-1697560387573.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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 840

#2
Valantis Profile Picture

Valantis 661

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard