Skip Sync records in PM

how to skip sync record node in process module if no change in the data to previous data 

here there is no change in data so it is showing error

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Lead Developer
    in reply to KM

    To compare two records and check if they've changed, save your old record in existingRecord and the updated record in newRecord.
    Use the symmetricdifference() function to compare fields - it returns empty when values are identical. 

    Added below code just for reference.

    not(
      and(
        a!isNullOrEmpty(
          symmetricdifference(
         existingRecord.field1,
            newRecord.field2
          )
        ),
        a!isNullOrEmpty(
          symmetricdifference(
            existingRecord.field1,
            newRecord.field2
          )
        )
      )



    If this is true proceed to sync, if false skip sync node using an xor.