Hi everyone, I have a search module which searches for an audience member based on their email. The search module itself is working great and I am able to use the returned data in other actions.
But a use case I have is that once the search module runs and I get back the data, I need to use the hash returned in the data in another action where I need to run a RPC which will take that hash and return me the data for that particular hash. But this doesnt seem to work. For some reason the RPC is not getting that hash value in {{parameters.hash}}.
Here’s a video to better understand the issue
Also this is how my RPC and mappable parameters look like for the second action
RPC:
{
"url": "/audience/{{parameters.hash}}/achievements",
"method": "GET",
"qs": {
"limit": 10000
},
"response": {
"iterate": "{{body.data}}",
"output": {
"label": "{{item.title}}",
"value": "{{item.id}}"
}
}
}
Mappable parameters:
[
{
"name": "hash", // Makes value accesible via "{{parameters.id}}".
"type": "text", // Set the type to unsigned integer.
"label": "Audience Hash", // Sets the uuser friendly label visible in the module.
"required": true, // Sets the parameter as mandatory.
"rpc":{
"label": "Search",
"url": "rpc://getAudience",
"parameters": [
{
"name": "email",
"type": "text",
"label": "Audience Email",
"required": true
}
]
},
"nested": [
{
"name": "achievements",
"type": "select",
"required": true,
"label": "Achievements",
"help": "Select the achievements you want to delete",
"multiple": true,
"options": "rpc://getAudienceAchievements"
}
]
}
]