Updating the dictionary

I have a requirement where I have to remove data from one database suppose abc and update the data of another database abc1 at the same time.

These both CDT  values are in different grid. After removing the values from first cdt then only 2nd cdt should update.

Deleted values are getting stored in one ruleinput. By taking that as reference I have to update second cdt. Both these cdt have common cif. How can i implement this.

My current implementation:

a!save(
ri!crAppGroupRelation_cdt,
a!forEach(
items: ri!crAPPGCDeleteSelection_cdt,
expression: updatedictionary(
cast(
typeof(
'type!{urn:com:appian:types:abc}CR_APP_GroupRelation'()),
ri!crAppGroupRelation_cdt

),
{
isJointUtilized_int: 0,

}
)
)
)

  Discussion posts and replies are publicly visible