Hello,
Is there any reason that Appian would only execute the first a!save inside a bracket, and not the rest of it? The code goes into the second part of the if statement, and only runs whichever is the first function in the braces. If I switch the order of the 2, it still only runs the first one.
Attached is my code. Thank you for your help.
if( index( local!existingEvaluationPlanSnapshot, "evaluation_id_fk", null ) = local!relevantEvaluation.id_pk, a!save( ri!evaluationAction, local!existingEvaluationPlanSnapshot ), { a!save( ri!evaluationActionToDelete, local!existingEvaluationPlanSnapshot ), a!save( ri!evaluationAction, 'type!{urn:com:appian:types}evaluationActions'( evaluation_id_fk: local!relevantEvaluation.id_pk, action_plan_id_fk: ri!actionPlan.id_pk, created_by: loggedInUser(), created_on: now() ) ) } ),
Discussion posts and replies are publicly visible