Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Not Getting Data From Data Member Attributes defined in an extension class

(1) ShareShare
ReportReport
Posted on by 70

Hi ,

I am trying to get data from data member attributes that are defined in an extension of Contract class but I am getting null values from them, although i am getting data correctly from its base class , it is just happening for Data Member Attributes that are defined in extension of base class .

[ExtensionOf(classStr(PerformerClass))]
final class ClassPerformerClass_Extension
{

[DataMemberAttribute('Nationality')]
public str paramNationality(str _nationality = nationality)
{
nationality = _nationality;
return nationality;
}

[DataMemberAttribute('Residency')]
public str paramResidency(str _residency = residency)
{
residency = _residency;
return residency;
}
}

C# Code from which I am fetching data

pastedimage1647268783231v2.png

  • Roan Dominguez Profile Picture
    Roan Dominguez 10 on at
    RE: Not Getting Data From Data Member Attributes defined in an extension class

    Hello SAAD Ahmed,

    were you able to find a solution to this problem I'm facing a similar issue. I need an extended data contract for a different customer but while I'm able to reference it easily in the code it's not deserializing the values from the webservice request.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,540 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans