Hello,
TLDR; I am taking a text input from a user, converting to JSON (this part works fine), and using JSON manipulator plugin to create new objects in my database using backend workflows. The problem I have is the plugin is giving me a ‘List of JSON texts’ but the schedule API workflow does not like this format.
Key question: What list format is needed when passing a list to a scheduled API workflow? How can I convert my list to the required format?
My entire backend workflows:
User inputs text and clicks ‘Save’
Text is converted to JSON by chatGPT API (this works well)
Store the original text and JSON in my database
Use JSON Manipulator to extract part of the JSON (only ‘Experience’ objects)
Pass this list of JSON texts to another workflow to process it
Read each field of the JSON
Create a new object using the extracted data:
Problem:
The object the second workflow is creating has NULL fields:
It is not extracting data from the JSON.
I have done some testing and believe the problem is happening when the ‘list of JSON text’s’ is passed from the first workflow to the second workflow. The second workflow is not seeing it as a list, is it seeing it as a single text object.
It takes all of the ‘Experience’ objects successfully, but the second workflow is treating it as a single text object rather than as a list of texts.
I have tried a few things to resolve this but none have worked, these include:
Using ‘list of strings’ instead of ‘list of JSON texts’
Stripping the ‘[’ and ‘]’ of the JSON before it is passed to the second workflow:
Any help would be appreciated, been stuck for days on this.
Thanks,
Greg