I am attempting to utilize an RPC call to populate a parameter in a module without much success.
Using the debug tool I can see that the RPC itself is functioning correctly, but either due to being blind or dumb, I cannot seem to get the desired field in the response to populate in the module.
I am using the below in the RPC communication section for the response:
"iterate": "{{body.Items}}",
"value": "{{item.UID}}",
"type": "uuid",
"required": "{{item.isRequired == 1}}",
"label": "customerUID"
What I am intending to achieve is to use the “UID” field in the response.
For the module parameters that this is being used in, the relevant section of JSON is as below:
"name": "customerUID",
"type": "uuid",
"rpc": {
"label": "Search Customers",
"url": "rpc://rpcCustomerUID",
"parameters": [
{
"name": "select",
"label": "Type",
"type": "select",
"options": [
{
"label": "Company",
"value": "CompanyName"
},
{
"label": "Individual",
"value": "concat(concat(FirstName, ' '), LastName)"
}
]
},
{
"name": "filter",
"label": "Name",
"type": "text"
}
I am guessing I am missing something super obvious, so any help to push me in the right direction would be greatly appreciated.