cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
anicholls
Helper I
Helper I

SharePoint JSON Query on Power Apps/Flow Updated Data

Hello-

 

I am trying to JSON format my SharePoint list updated by Power apps, my issues is while two columns appear exact that are not due to differing column types and the way the data is created. I would like to say if column contains value in other column then do not highlight. I also want to add into my formula if other column is blank do not highlight. The main column is the column without PV in the name, the PV first columns are created through a Power Apps flow to get previous value of a sharepoint column here is an example, these shouldn't be highlighted as visually they are the same. The export has a return or extra spaces after the PV value making them not equal hence the color coding activated.

 

Sharepoint List

anicholls_0-1652108643157.png

 

Control #:

{

  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",

  "elmType": "div",

  "txtContent": "@currentField",

  "attributes": {

    "class": "=if(@currentField != [$PV_Control_x0023_],'sp-css-backgroundColor-blueBackground37', '')"

  }

}

 

 

PV_Control#

{

  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",

  "elmType": "div",

  "txtContent": "@currentField",

  "attributes": {

    "class": "=if(@currentField != [$Control_x0020__x0023_],'sp-css-backgroundColor-blueBackground37', '')"

  }

}

 

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (3,491)