web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Newtonsoft JSON failure

(0) ShareShare
ReportReport
Posted on by 655

I'm trying to read a JSON string stored in one of the attributes inside an entity using a workflow.  It works great in a stand alone console app, but i get an error when the workflow executes and i'm all out of ideas.

newtonerror.PNG

I used ILMerge to merge the Newtonsoft DLL to my workflow and excluded all the other DLLs.

newtonmerge.PNG

I'm using Newtonsoft JSON version 10.  Please someone point me in the right direction so that i don't have to re-write this using 'DataContractJsonSerializer' which i don't know if it would work either.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    you should use DataContractJsonSerializer

    www.crmanswers.net/.../json-and-crm-sandbox-plugins.html

  • SavvyLuke Profile Picture
    655 on at

    Thanks Guido for pointing me in the right direction.  I was looking for more of how to read a JSON string and do things with the data but your article helped. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans