{
"blockType":"then",
"blockOptions":{
"method":{
"name":"cloudAPI",
"args":{
"method":"cloudApiName",
"version": "version",
"params": "params"
}
}
},
"fields":[
{
"name": "cloudApiName",
"type": "string",
"value": "controller_notify_user"
},
{
"name":"version",
"type":"int",
"value": 1
},
{
"name":"params",
"type":"string",
"value": "{\"name\":\"notify-users\",\"parameters\":[{\"name\":\"default\",\"body\":\"hello world!\",\"subject\":\"email subject\"},{\"name\":\"target\",\"targets\":[{\"type\":\"user\",\"uuid\":\"2847422\",\"channels\":[\"email\",\"push\"]}]}]}"
}
],
"saveResult": {
"method": "setVariable",
"args": {
"name": "<existingVariableName>",
"valueType": "string"
}
}
}
Note: Ability to save result of a Cloud API request action in a global variable, using optional block is available since advanced_scenes/1.43.