Hi guys,
I have two questions.
1. Creating a collection or array of dynamic fields from RPC
This is what I have under mappable parameters in the “Create Document” module. I would like to make the "rpc://listHeaderPlaceholders"
a collection and the "rpc://listLineItemPlaceholders"
an array. I tried doing it, but I am getting “bad request”. How can I create a collection and array with RPC dynamic fields?
[
{
"name": "docId",
"type": "select",
"label": "Automation ID",
"required": true,
"mappable": false,
"options": {
"store": "rpc://rpcListAutomationNames",
"nested": [
{
"name": "documentName",
"type": "text",
"label": "New Document Name",
"required": false
},
"rpc://listHeaderPlaceholders",
{
"name": "line_items_$num",
"type": "array",
"label": "Line Items",
"spec": "rpc://listLineItemPlaceholders"
}
]
}
}
]
2. Passing the values from RPC mappable parameters to the API
This is what my API call needs to look like:
{
"url": "createDocument",
"method": "POST",
"body": {
"docId": "{{parameters.docId}}",
"documentName": "{{parameters.documentName}}",
"data": {
"placeholderOne": "{{parameters}}",
"placeholderTwo": "",
"line_items_$num": [
{
"lineItemPlaceholderOne": "",
"lineItemPlaceholderTwo": ""
}
]
}
},
"response": {
"output": "{{body}}"
}
}
placeholderOne and placeholderTwo are actually dynamic RPC fields. I need the key + value extracted from the RPC. How can I do that?