PSA - if you have not been using the JSONata Fusion module - please check it out! | Community
Skip to main content
Sven-iX
New Participant
August 7, 2025

PSA - if you have not been using the JSONata Fusion module - please check it out!

  • August 7, 2025
  • 2 replies
  • 258 views
Instead of iterating/filtering over items to create a new list of forms, fields or other objects, it literally takes 2 modules: The first to transform the object into JSON, the second JSONata.
In JSONata you can filter / map (transform) and many other things.
https://tryjsonata.org for online learning/testing - just slap the JSON in here and work out the set of functions.My use case: I have a data CSV to import, where each row has a column that is a dropdown in WF. So I want to check:
  • remove any WF option that is not in the new data file
  • add any option that is not yet in WF.
  • The JSONata expression is this: 
    ( $importList := {{31.json}}; /* from a previous transformToJSON module */ $existing := {{30.json}}; /* from a previous transformToJSON module */ $oktokeep := $filter( $existing, function ( $v ) { $v.value in $importList ? true:false }); $toadd:= $map($filter( $importList , function ($v){ ( ($v in $existing.value) ? false :true ) }), function ($v) { { "objCode": "POPT", "value": $v, "label": $v} }); $append($toadd,$oktokeep) )​

 

2 replies

New Participant
August 21, 2025

Since this module was released I've been using it as often as I can. Amazing little library.

Lawson02
New Participant
August 12, 2025

Will be using this from now on, didn't know this was a feature. Sorting before sucked, especially trying to do complex operations to transform data.🙏