Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

GP Integration Manager XML Source Definition - Element Attributes

Posted on by Microsoft Employee

I'm trying to figure out how to create a XML Source Definition that will pick up the attributes of an XML element.   When GP creates the definition from the 'Template', it simply creates a record set node and then adds a field to that which contains only a single value for what should be a child record set with it's own fields. 

How do I configure the XML Source Definition to pick up the 'type' and 'isPrimary' attributes as fields inside a record set object?

<ReferenceNumber type="Load ID" isPrimary="true">LD766</ReferenceNumber>

 <ReferenceNumber type="Shipment ID" isPrimary="false">SN702</ReferenceNumber>

In GP Integration Manager (XML Source Defintion):

From XML Notepad:

<ReferenceNumbers>
 <ReferenceNumber type="Load ID" isPrimary="true">LD766</ReferenceNumber>
 <ReferenceNumber type="Shipment ID" isPrimary="false">SN702</ReferenceNumber>
 <ReferenceNumber type="Customer Load ID" isPrimary="false">CLR732</ReferenceNumber>
 <ReferenceNumber type="SCAC" isPrimary="false">STDF</ReferenceNumber>
 <ReferenceNumber type="PRO" isPrimary="false">1049837375</ReferenceNumber>
 <ReferenceNumber type="Customer Acct Number" isPrimary="false">ABC</ReferenceNumber>
 </ReferenceNumbers>

*This post is locked for comments

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans