Greetings community,
I'm having this problem when i'm passing a *.json file thru' a Web API that starts a process model.
From within my process model i have a readtextfromfile() function in a script task that gets the text from the JSON file.
After this, i use a!fromJson() and save the result in a process variable type: My Data Type.
This however, seems to not be working. The value being passed to the CDT appears to be null and never reaches the write to data entity smart service.
I reckon the cause of this could be that the variable is not holding a list of dictionary required to save as CDT values.
Is there anybody that might have experienced a similar issue and how to solve it?
Thanks in advance!
Discussion posts and replies are publicly visible
I recommend also saving the output of readtextfromfile() into a process variable of Text so you can see what the value is for debugging. It might also be easier to pass the JSON directly in the body of your API instead of as a file.
Yes, agree maybe it come in different than you expect.something like textFile.body.jsonString