IDEMSInternational / rapidpro-flow-toolkit

Toolkit for using spreadsheets to create and modify RapidPro flows
GNU Lesser General Public License v2.1
3 stars 1 forks source link

Implement Row operation for calling webhooks #98

Closed fagiothree closed 8 months ago

fagiothree commented 9 months ago

{ "actions": [ { "body": "@(json(object(\n\"distinct_id\", contact.id,\n\"flow_name\", run.flow.name,\n\"channel\", input.channel.name,\n\"date_time\", now(),\n\"response_point\", \"submit_loop_entered\",\n\"checkpoint\", \"SubmitLoop_entered\",\n\"flow_type\", \"non_task\",\n\"parent_flow\", parent.flow.name,\n\"parent_flow_uuid\", parent.flow.uuid,\n\"tasks_attempted\", contact.fields.tasks_attempted,\n\"parent_parent_flow\",(default(parent_flow.value,\" \"))\n)))", "headers": { "Accept": "application/json", "Content-Type": "application/json" }, "method": "POST", "result_name": "Result", "type": "call_webhook", "url": "https://us-central1-udhyam-tech.cloudfunctions.net/trackEvent", "uuid": "63416f96-a6ef-4db7-abe7-7bc3ea85f4c1" } ], "exits": [ { "destination_uuid": "c8b4c54e-c71c-453b-8727-5b55285e251a", "uuid": "2163fcd2-f5c3-49d1-a8a8-b588e858409f" }, { "destination_uuid": "c8b4c54e-c71c-453b-8727-5b55285e251a", "uuid": "f733b951-8de1-46f9-b89d-fbdeae592e6d" } ], "router": { "cases": [ { "arguments": [ "Success" ], "category_uuid": "c3689f65-5a2a-4b95-9dad-237de9bfc14c", "type": "has_only_text", "uuid": "974b85fb-efdb-4ec5-9cd7-179402f0b94b" } ], "categories": [ { "exit_uuid": "2163fcd2-f5c3-49d1-a8a8-b588e858409f", "name": "Success", "uuid": "c3689f65-5a2a-4b95-9dad-237de9bfc14c" }, { "exit_uuid": "f733b951-8de1-46f9-b89d-fbdeae592e6d", "name": "Failure", "uuid": "d393b682-ade0-499f-bd28-7ef9441427fe" } ], "default_category_uuid": "d393b682-ade0-499f-bd28-7ef9441427fe", "operand": "@results.result.category", "type": "switch" }, "uuid": "72258054-ab3c-4c02-a99f-49aa27b73a77" }

fagiothree commented 9 months ago

I think we need columns for: