Hi Guys,
I’ld like to be able to make certain workflows accessible via an API, so for example, when you click on the “create a new Thing” button element, I’ve got a workflow that will go and create that Thing based on filled in fields, but I also want to be able to create the same thing via an API call to the app.
I currently see my options as either:
1/ Simply duplicate the functionality in both element and API workflows. Not good as it relies on manually syncing workflows, or
2/ Create a custom API workflow and call that from both the API endpoint workflow and also the element workflow. Should basically work, but requires element designers to think ahead and is not really a natural approach for creating UI workflows
What would be ideal would be if instead of calling an API workflow from an element, I could call an element workflow from the API, as if element fields were filled in and the submit button pressed when the API endpoint was called.
Does anybody know if this is possible, or if there’s a better way?
Thanks!
Regards,
Greig.