HI ,I am trying to update a process variable of type datasubset,I am using the following code to update a particular index value,
a!update( data: pv!dataSubset, index: index( index( pv!dataSubset.data, wherecontains( 1, tointeger( index(pv!dataSubset.data, "verse_no", {}) ) ), {} ), "sentOn", {} ), value: now() )
Discussion posts and replies are publicly visible
In this case, I recommend to use a foreach loop to iterate on the items. If the item matches your condition, update it, else, return the unmodified item.
Thanks ,Its working