How can I set up an API workflow callback?
I use an API Workflow for its speed. The api workflow is not exposed as public endpoint and it is started by a button click (Schedule API Workflow > scheduled date=current date/time). The api workflow updates or creates a new record when certain conditions occur. The Api workflow is correctly executed.
How do I get the id of the created or modified record to be able to use it on the calling page and be able to start a series of following actions?
Create a new data type or just a field that is used to pass information from api to page. And on the page, have an event that triggers when a search for that data type or field has a count > 1 or isn’t empty, etc.
Lots of nuances on how the details play out, driven by your need.
For example:
Let’s say the thing created or modified is an invoice. You can have a field on the User data type called recent_invoice with a field data type of invoice. When the api does its work, add the relevant invoice to that users recent_invoice field.
On the calling page, have an event that triggers when current users recent_invoice is not empty. Do whatever actions you need, and end with setting recent_invoice to be empty.
The details really depend on your needs, but transferring via the database is the general concept I would use.