Hello Make Community,
I am working on a custom app integration and facing a couple of issues that I hope to get some guidance on:
- RPC List Data Extraction:
I am trying to extract data from an RPC list, specifically the labels or types. Below is the response I’ve written in the RPC:
"response": {
"iterate": "{{extractPropertyNames(body, 'Priority.OData')}}",
"output": {
"label": "{{item}}LABEL",
"name": "{{item}}NAME",
"value": "{{item}}VALUE",
"type": "{{item.type}}"
}
}
However, I’m unsure if this is the correct way to retrieve the LABEL
or TYPE
. How can I accurately get data from an RPC list?
- Dynamic Array for Creating a New Customer in ERP:
I’m using an array to create a new customer in my ERP system. I retrieve the labels from the ERP form using RPC and want to dynamically add more columns (from the RPC List) to be added/updated. Here is an example of a non-dynamic body request:
"body": {
"EMAIL": "{{parameters.customer.email}}",
"CUSTDES": "{{parameters.customer.name}}",
"STATEA": "{{parameters.customer.address.statea}}",
"ZIP": "{{parameters.customer.address.zipcode}}",
"PHONE": "{{parameters.customer.phone}}",
"ADDRESS": "{{parameters.customer.address.street}}"
},
"response": {
"iterate": "{{parameters.contacts}}",
"output": "{{item}} + {{item.value}} + {{item.name}}"
}
How can I make this request dynamic so it automatically includes all the data fields from the module, considering the data is in an array?
I would appreciate any insights or examples of how to handle these scenarios.
Thank you!