Diagnose code execution and object retrieval
Recipe ToolsDeveloper ToolMarketing
What it does
When a Workato Recipe Function is called, this automation runs JavaScript and Python code to test string and object retrieval. It logs each result so someone can see which code types work and which fail.
Who it's for
Engineering teams who need to diagnose code execution issues in automation workflows.
How teams use this
Confirm string retrieval works
Run this automation to verify that JavaScript and Python string outputs work as expected. If strings fail to retrieve, the issue is in the code logic rather than object handling.
Identify object retrieval limitations
Execute the automation to see which code languages can return objects successfully. The job report shows exactly where object retrieval breaks so the team knows which code type to avoid.
Test code before production deployment
Call this automation before deploying a new workflow to verify that both string and object retrieval work in the target environment. Add custom data type definitions to the code blocks to check specific object structures.
Debug integration data failures
When an integration fails to pass data between systems, run this automation to isolate whether the problem is code execution or object handling. The logs pinpoint which step needs to be fixed.
How it works
- Receive a function call. A Workato Recipe Function is invoked in real-time, starting this automation to test code execution and object retrieval capabilities.
- Run JavaScript string test. Execute JavaScript code in Js Eval that returns a string value. Log the result to the job report to confirm strings can be retrieved from JavaScript.
- Run Python string test. Execute Python code in Py Eval that returns a string value. Log the result to the job report to verify Python string retrieval works correctly.
- Run JavaScript object test. Execute JavaScript code in Js Eval that returns an object. Log the result to the job report to identify whether objects can be retrieved from JavaScript.
- Run Python object test. Execute Python code in Py Eval that returns an object. Log the result to the job report to check whether Python object retrieval is supported.