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, ...
Unanswered

Settle Invoice on call center through x++

(0) ShareShare
ReportReport
Posted on by 384

Dears,

i am importing Sales orders from shopify to D365 call center (back office), using the below code i am submitting the payment method (complete button on form)

MCRSalesOrderTotals mcrSalesOrderTotals = new MCRSalesOrderTotals(salesTable, true);
MCREndOrder::endOrder(salesTable.SalesId, true, mcrSalesOrderTotals, false);

and using the below code i am invoicing the SO

SalesFormLetter = SalesFormLetter::construct(DocumentStatus::Invoice);                   
SalesFormLetter.update(SalesTable,systemDateGet(), SalesUpdate::All, AccountOrder::None, false, false);

so far all is working correctly, but when i click on voucher transactions--> View Settlements the invoiced is not settled but while creating manually a sales order it comes settled.

is there anything missing in my code? i tried the code in this Settle Trx in AX with no luck.

I have the same question (0)
  • WillWU Profile Picture
    22,361 on at

    Hi sylvesterD365,

    The settleTransact method on the CustTrans table has been marked as obsolete.

    Please try the settleTransaction() method.

    docs.microsoft.com/.../settletransact-obsolete

  • sylvesterPowerBi Profile Picture
    384 on at

    Hi Will,

    i want to settle the invoice of a sales order coming on Call center and not a  normal invoice

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 478 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans