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 :
Finance | Project Operations, Human Resources, ...
Answered

Import data using XML with Class Entity X++ in D365

(0) ShareShare
ReportReport
Posted on by 405

Hi,

I want to import data using XML Tag format and reading using X++ 

<?xml version="1.0" encoding="utf-8" ?>
<Envelope xmlns = "schemas.microsoft.com/.../
documents/Message">
<Header>
<MessageId>{5603D03A-4380-404D-9F27-738BE0FEA13E}</MessageId>
<Action>tempuri.org/.../Action>
</Header>
<Body>
<MessageParts xmlns = "schemas.microsoft.com/.../
documents/Message">
<LedgerJournal xmlns = "schemas.microsoft.com/.../
documents/LedgerJournal">
<LedgerJournalTable class="entity">
<JournalType>Daily</JournalType>
<Name>Daily Journal 1</Name>
<VoucherSeries>Ledger_3</VoucherSeries>
<LedgerJournalTrans class="entity">
<AccountType>Ledger</AccountType>
<AmountCurDebit>50</AmountCurDebit>
<CurrencyCode>USD</CurrencyCode>
<DocumentDate>2020-01-20</DocumentDate>
<Invoice>00003</Invoice>
<OffsetAccount>12020</OffsetAccount>
<OffsetAccountType>Ledger</OffsetAccountType>
<TransDate>2020-01-20TransDate>
<Txt>AxLedgerJournal inbound test trans 1</Txt>
</LedgerJournalTrans>
<LedgerJournalTrans class="entity">
<AccountType>Vendor</AccountType>
<AmountCurCredit>50</ AmountCurCredit >
<CurrencyCode>USD</CurrencyCode>
<DocumentDate>2020-01-20</DocumentDate>
<Invoice>00003</Invoice>
<OffsetAccount>12020</OffsetAccount>
<OffsetAccountType>Ledger</OffsetAccountType>
<TransDate>2020-01-20TransDate>
<Txt>AxLedgerJournal inbound test trans 1</Txt>
</LedgerJournalTrans>
</LedgerJournalTable>
</LedgerJournal>
</MessageParts>
</Body>
</Envelope>

Please provide some link thanks in advance.

  • Martin Dráb Profile Picture
    225,155 Moderator on at
    RE: Import data using XML with Class Entity X++ in D365

    It seems to be a SOAP message. Where did you get it? Don't you want to call the SOAP web service producing this message?

    As usual, it will help if you explain what you're doing.

  • Verified answer
    nmaenpaa Profile Picture
    101,146 on at
    RE: Import data using XML with Class Entity X++ in D365

    You can import XML data via Data management projects.

    docs.microsoft.com/.../data-entities-data-packages

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

Dynamics 365 Community Update – Sep 16th

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

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

Product updates

Dynamics 365 release plans