Skip to main content



No record found.

Microsoft Dynamics AX forum

Cancel a Returorder with some cancelled lines

Posted on by 159


I have, for example, a Return Order in Ax2012, where we have received two out of three articles. The third article has been cancelled ( the Linestatus for that item is Canceled but the  Returnstatus " is ""Expected" " ) and the order has been Invoiced.

This means that the "Returnstatus " on the order is still "Open" and we want the status to be "Closed".

As we have our AX connected to another system via integration, we don´t want to delete the canceled row, to keep it for history.

How can we via a job in "Salesline" in the AOT ensure that the entire canceled line can remain in the order, but that the Returnstatus and the order itself , gets closed?

I can via a job in AOT get the line from "Expected" to "Canceled", but the order still remains Open.

regards Andreas


Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans