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)

Serialize/Deserialize Entity inside workflow

(0) ShareShare
ReportReport
Posted on by 587

Hi

what is the best way to serialize a list of Entity inside a workflow and send it to other one 

i tried DataContractJsonSerializer class 

but i get a lot of errors regarding partial trust (My CRM is Online)

i'm able to do it for simple object but for Entity object i'm getting a lot of errors

any one have some idea

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    I use Newton Json assembly for that purposes - social.microsoft.com/.../newtonsoftjsondll-used-in-a-plugin

  • Verified answer
    Bas van de Sande Profile Picture
    4,383 on at

    Hi Abdul,

    in case you are writing your own C# code, I have a nice class that you can use to serialize and deserialize. You can check it out on  journeyintocrm.com/.../1669.

    The class is doing its work in CRM online environments (sandbox)

    Cheers,

    Bas

  • Abbod Hamwi Profile Picture
    587 on at

    Thank you very much

    this is a good class and work for me

  • Abbod Hamwi Profile Picture
    587 on at

    i tried to use it

    but the CRM was throwing an error that he doesn't trust this library and want allow me to call it inside my code

  • Bas van de Sande Profile Picture
    4,383 on at

    Hi Adbul, 

    you have to embed the class inside your own project. An alternative might be using ilmerge to merge assemblies into a single one

    Bas

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