web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Formatting SharePoint ...
Power Automate
Answered

Formatting SharePoint list column to be used by power automate flow - bit of JSON syntax help required please

(0) ShareShare
ReportReport
Posted on by 12

Hi all

 

I have some JSON code that was shared by another user to allow you to start power automate flows using a button (hidden or shown based on column value). Works great and just what I need. 

 

however I am no JSON expert and whilst I have it working for one status in the column, I need it to check for one of two status options. 

 

The JSON code looks for anything with a status of "Not Started" and hides the button for all other status options but I need it to check for both "Not Started" and "Need More Information".

 

Any JSON experts out there that can help me with the syntax for some kind of 'or' statement?

 

DarrenScott_0-1700429334938.png

 
Thanks in advance of any help.
Darren.
 
Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    on at

    Hi, @DarrenScott 

    Based on your description, you want to get a value in Json and you want to judge it based on other values?
    First of all, for Json, we can only get the value you want according to the Json schema.

    For your Not Started, we can use this to take the value in Power Automate:

    vyueyunmsft_0-1700443855561.png

    If you need other values to determine the Or condition, you need to use the same way to take the value in Json, and then use the Or function in Power Automate to make the logical judgment.

    Reference guide for expression functions - Azure Logic Apps | Microsoft Learn

     

     

     

     

    If I misunderstand what you mean, you can describe your needs and your expected outcomes in detail so that we can better help you.


    Best Regards,

    Yueyun Zhang

     

     

     

  • DarrenScott Profile Picture
    12 on at

    Hi and thank you for the response. So to explain a bit further

     

    I have a button in a SharePoint list column called "Send for Approval"  (the orange button) that allows a user to start a power automate flow. But I only want that button visible if the item condition for the adjacent column called "Review Outcome" has a status of "Not Started" OR "More Information Required"

     

    DarrenScott_0-1700464342802.png

     

    At present the button is visible to items where the "Review Outcome" status is "Not Started" but I am trying to work out how I put some kind of OR statement to also look for "More Information Required" in order to display the orange button. 

     

    I believe it would need to go into this section below

     

    DarrenScott_1-1700464662665.png

     

     

    Does that make sense?

    thanks

     

     

     

     

  • Verified answer
    v-yueyun-msft Profile Picture
    on at

    Hi , @DarrenScott 

    Oh , sorry for i misunderstand your need! I test it in my side , you can try to use this:

     "visibility":"=if([$ReviewOutcome] =='Not Started' ||[$ReviewOutcome] =='More Information Required' , '', 'hidden')"

    And this is my test list :

    vyueyunmsft_0-1700468539496.png

    And for more information, you can refer to :
    Use column formatting to customize SharePoint | Microsoft Learn

     

    Best Regards,

    Yueyun Zhang

  • DarrenScott Profile Picture
    12 on at

    Thank you so much @v-yueyun-msft I am out at the moment but will test this out this evening when I get home it looks just like what I need. Thanks again.

  • DarrenScott Profile Picture
    12 on at

    That worked perfectly @v-yueyun-msft . I really do appreciate your swift help. Thank you so much. Darren.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#3
David_MA Profile Picture

David_MA 270 Super User 2025 Season 2

Last 30 days Overall leaderboard