Hi there!
I am getting the list of Contacts of a lease and need to construct a new request to do an update. To do this, I need to extract the contact that is defined as being the Primary, and also create a new array of all the contact IDs on the lease.
The source is a GET which returns multiple collections: Open API, powered by Propertyware
The desired output is a PATCH: Open API, powered by Propertyware
There are two things I need some help with:
- A new variable named primaryContactID which has the value of the “id” of the primary contact
"id": 5205819426
"role": "Primary"
- A new variable named tenantIDs which creates an array containing a list of all the contact ids in the format needed:
"tenantIDs": [
7336525843,
7336525842,
5205819426,
6315868164
],
I can then reference these variables when creating the PATCH module
This is probably basic stuff for many, but I’m still struggling with extracting nested info and outputting it in a desired format. Any help would be much appreciated!
get_contacts.json (3.6 KB)
desired_patch.json (373 Bytes)