We use the OpenPhone module to capture new customer detail i.e. the module triggers based on either a new contact or updated contact in OpenPhone. Coming out of OpenPhone we are simply trying to isolate essentially 5 to 7 separate fields, including: first name, last name to begin with and then in the nested ‘Fields’ collection: phone, Email, tags (nested array in between ), source, address. Additionally an array for notes as well.
OpenPhone triggered output
[
{
"id": "EV84620e116d524783bea97f782d0135d3",
"object": "event",
"createdAt": "2024-04-28T01:52:33.229Z",
"apiVersion": "v3",
"type": "contact.updated",
"data": {
"object": {
"id": "CT662c17a6b69fdfddd80f0fb4",
"object": "contact",
"firstName": "Jonny",
"lastName": "Appleseed",
"company": "ACME Orchards 44",
"role": "Master Gardener",
"fields": {
"Phone": "+12345678902",
"Email": "[spoiler]chris@bbb.com[/spoiler]",
"Tags": [
"Customer",
"OpenPhone"
],
"Source": "Web",
"Address": "[spoiler]95 N 100 W, W[/spoiler]"
},
"notes": [
{
"text": "Testing",
"enrichment": null,
"createdAt": "2024-04-27T01:27:09.291Z",
"updatedAt": "2024-04-27T06:02:53.556Z",
"userId": "USGGH7a2Td"
},
{
"text": "Test",
"enrichment": null,
"createdAt": "2024-04-27T01:27:33.878Z",
"updatedAt": "2024-04-27T06:02:52.223Z",
"userId": "USGGH7a2Td"
}
],
"sharedWith": [
"USGGH7a2Td",
"ORlpK27be1"
],
"clientId": "09e1ad8c-9d63-4a91-948b-548bab3a37c8",
"createdAt": "2024-04-26T21:08:10.720Z",
"updatedAt": "2024-04-28T01:52:33.211Z",
"userId": "USGGH7a2Td"
}
}
}
]
After using the two array function via the iteration tool… Were able to see that we have as many as five bundles each with an appropriate key name and value etc. but to no avail after using the aggregator tool, we are not able to have just a simple list of the appropriate field name and its value to choose from and send it on elsewhere… I’m missing something very simple and we’ve spent three very long days reading, viewing, testing etc.… we are new to Make. ’ Have used Zappier minimally.
ITERATED Output
[
{
"key": "Phone",
"value": "+12345678902",
"__IMTINDEX__": 1,
"__IMTLENGTH__": 5
},
{
"key": "Email",
"value": "[spoiler]chris@bbb.com[/spoiler]",
"__IMTINDEX__": 2,
"__IMTLENGTH__": 5
},
{
"key": "Tags",
"value": [
"Customer",
"OpenPhone"
],
"__IMTINDEX__": 3,
"__IMTLENGTH__": 5
},
{
"key": "Source",
"value": "Web",
"__IMTINDEX__": 4,
"__IMTLENGTH__": 5
},
{
"key": "Address",
"value": "[spoiler]95 N 100 W, W[/spoiler]",
"__IMTINDEX__": 5,
"__IMTLENGTH__": 5
}
]
Ideally it seems to make sense that I should be able to set multiple variables Perhaps… Or use a get ( map ( function… What also confuses this is that there is a nested array within the fields collection for any tags that are assigned in open phone… We would like to preserve those tags in someway as well and pass them on… Along with the array for the notes.
Perhaps there’s not a better way to approach this and what we are doing however any insight and correction here would be great…!! Thank you in advance