cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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 Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,646)