Closed nicholsk18 closed 1 year ago
For reference, the way you'd normally use this from something like an automation is:
start:
record.create:
inputs:
record_type: group
fields:
name: Example Group
members:
manager: 1
member: 2,3,4
So all this patch does is allow something like this from the API:
start:
record.create:
inputs:
record_type: group
fields:
name: Junk
members@text: {"manager": "1", "member": "2,3,4"}
The code that processes the members
field still expects a comma-separated list of IDs, since the field originated in the API before automations/KATA allowed richer data types.
Okay, thanks for the explanation. I was having an issue adding people to groups via API, but I forgot about the automation stuff. Thanks for the correct fix!
based on documentation https://cerb.ai/docs/records/types/group/#records-api members are supposed to be JSON-encoded array. this fix removed the line that was encoding the already encoded array.