Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

JSON Object deserialized in D365

(0) ShareShare
ReportReport
Posted on by 65

I'm experiencing the same results in code and Postman.   To keep it simple in the body of a Postman I have a JSON array - let's say the array has (1) = "A" and (2) = "B".  In the X code it shows the data as (1) = "B" and (2) = "B".   The last entry is duplicated to all others entries.  The X code is expecting a list.  The X code was originally written to accept SOAP objects and they work as expected.

I have looked at the header body in Fiddler and it looks correct.   All array elements are unique.

If I look at the data members in the ScanWorkX_QueryBuildDataSource class, they are set to the values I would expect,  each element of the JSON array comes over.  

.  

 [AifCollectionTypeAttribute('_SWXQueryDataSources', Types::Class, classStr(ScanWorkX_QueryBuildDataSource))]//, SysEntryPointAttribute]
    public str ExecuteQuery(List _SWXQueryDataSources, boolean _crossCompany = false)
    {
    ..... code
    }

Where else can I look to see how the elements are being put together?  

Does the Web API need to be setup from a Service Group / Service perspective different than SOAP?

A single JSON array element comes across and is processed properly.

any assistance is appreciated.

Thanks

Duane

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: JSON Object deserialized in D365

    Hi DDMoore,

    It seems that your issue is related to D365 AX, please post it at here for further help:

    Microsoft Dynamics AX - Forums, Blogs, Support

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,791 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,488 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans