Skip to main content
Nintex Community Menu Bar

Unable to deserialize Json in the workflow

  • December 21, 2020
  • 3 replies
  • 117 views
  • Translate

Hi,

I have a Rest API service which gives response in multilayered Json format. I have created a Rest Service instance and mapped methods in a smartobject.

I am able to call the service and deseriablize all returned objects through SmartObject Tester and SmartObject methods in the Management.

However when I call the service in workflow, workflow does not deserialize the response properly. It gives System.String[] instead.

Does anyone know what is causing this issue.

 

Thanks,

Sheikh Anas 

Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img+15

Hi,

I suggest you enable SmartObject logging and run your workflow again. You can then check the SmartObject logs to see what SmartObjects are being called,  what method is being executed, and what are the values being passed into your SmartObject. 

 

Translate

  • 49 replies
  • April 29, 2021

Hi,

Did you resolve this? I have the same issue.

 

I am using the Deserialise Typed Array method to loop through objects and I get System.String[] for everything. 

 

I don't have any error in the logs.

 

Translate

  • 49 replies
  • April 30, 2021

Not to worry, I've solved the issue now.

The key is to ensure that the Deserialise and Deserialise Array methods on the REST SmartObject have an input Parameter. Then you pass a serialised string to it within your Workflow loop.

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings