this is a question about OD Functions, in particular about using them as “endpoint” for a “Save” action on an editable table in Apps.
I’ve tried solving the following problem: When saving a table from Apps, I actually don’t want to execute 1 Microservice Workflow but multiple. I thought of solving this by - instead of calling a Workflow directly from the App via “saveToMicroservice” - calling a function via “saveToFunction” and then just passing on the received JSON to mutliple Microservice Workflows via the OD API.
My problem is, that I am not quite sure what the correct format for the edited/added/deleted rows is. I’ve analysed what is “going out” of the app via the console and that’s the same for both, “saveToFunction” and “saveToMicroservice”. However, in the function I receive a different JSON format than the one that I’ve observed leaving the app.
I have then actually found a third JSON format when investigating which JSON format a Microservice Workflow expects (https://confluence.intranet.onelogic.de/pages/viewpage.action?pageId=10269510).
Could someone maybe tell me if I am correct in my assumption that functions and workflows expect different JSON formats from an edited table in an App? And if so, would there be an easy way to convert the format from the Function to a format expected by a Microservice Workflow?