SetJsonObjectProperty returns the json object with the added key, so just nest the calls to add multiple key/value pairs. Remember Architect limits you to 60 nested expressions (see https://help.mypurecloud.com/articles/complex-expression-error/)
SetJsonObjectProperty(SetJsonObjectProperty(Task.json, "b", 2), "c", 3)

------------------------------
Melissa Bailey
Genesys - Employees
------------------------------
Original Message:
Sent: 06-20-2023 18:39
From: George Ganahl
Subject: Setting multiple Key/Pair values at once using SetJsonObjectProperty in Architect
@Melissa Bailey Thoughts?
------------------------------
George Ganahl GCP (Genesys Cloud), CCXP
Principal PS Consultant
Genesys
Original Message:
Sent: 06-16-2023 02:29
From: Sriram L
Subject: Setting multiple Key/Pair values at once using SetJsonObjectProperty in Architect
Hi Everyone,
Is there any way to assign multiple Key/Pair values at once using SetJsonObjectProperty in Architect.
Currently, in JSON literal we can be able to do it. But, in expression mode only one SetJsonObjectProperty is being allowed.
Please do share if you've implemented something like this (Looking to add 10-15 Key/Value pairs at once).
Thanks in advance
#Implementation
#Unsure/Other
------------------------------
Sriram L
------------------------------