Data table update from Architect flow

Hello there, Does anyone know how can we update Data table records from within the architect flow through a widget or action available inside the flow actions? Can Update Data widget be used if yes then how?

There is not a built in action to update a data table row. However you can use the API to update the row using the endpoint here PUT /api/v2/flows/datatables/{datatableId}/rows/{rowId}.

A couple of things worth noting. You need to include the row ID as a key in the body of the response and anything not added will be nulled out. I have attached a sample action that you can modify. This one updates an emergency flag or delay message flag but also allows setting the message to be played.

You will need to get the data table ID from the API /api/v2/flows/datatables or from the UI URL.

Update-Data-Table-DRAFT-v2-20201229122234.custom.json (2.2 KB)

2 Likes

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.