Skip to main content

Notifications

Dynamics 365 general forum

Participation type mask datatype in c#

Posted on by 505

I have a json string which contains 'participationtypemask' for a phonecall. 

To deserialize this json in to c# object, what should be the data type of participation type mask in c#?

I tried int and optionset but none of them worked.

  • Verified answer
    Priyank Bhavsar Profile Picture
    Priyank Bhavsar 505 on at
    RE: Participation type mask datatype in c#

    Thank you Rogger and Emre for your response. I figured it out.

    int is the correct datatype. The issue with my code was that the property name in my class was incorrect.  I changed it from 'participationmasktype' to 'participationtypemask' and now it is working.

  • Emre GULCAN Profile Picture
    Emre GULCAN 2,379 on at
    RE: Participation type mask datatype in c#

    Hi,

    Can you post your JSON here please?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans