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 :
Microsoft Dynamics AX (Archived)

SalesPackingSlipJournalPost

(0) ShareShare
ReportReport
Posted on by

Hi, I need to keep a record of posting the packing slip and I want to enter a record in an export table whenever a sales order packing slip is posted.

I have 2 problems:

(1) I can't seem to set a breakpoint in the SalesPackingSlipJournalPost class.  The compiler seems to be just ignoring my breakpoints.

(2) I'm not sure where to capture this data.  I don't want to capture it on the form because the packing slip could be posted elsewhere.

     I think the 'endpost' method looks like a good place but I can't test it by setting a break point.

Can anyone help?

Thanks in Advance

Brian

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Ajit Profile Picture
    8,755 on at

    You would have to uncheck the check box ' execute code on CIL' under tools - options. Other option is to debug using Visual studio.

  • Mea_ Profile Picture
    60,284 on at

    Hi brianmaric,

    You need to check that you have enabled debugging on server

    • Start the Microsoft Dynamics AX Server Configuration Utility.
    • On the Application Object Server tab, select the check box that is labeled Enable breakpoints to debug X++ code running on this server

    Also you need to disable Tools > Options > Development > General > Execute business operations in CIL

    Out of the box you have InventASNService AIF  service to send it to 3rd party, why not to use it ? 

  • brianmaric Profile Picture
    on at

    Ok, so the business classes execute in the CIL...but does the method sound right...using End Post?

    (thanks for the AIF suggestion...I'll look into it)

  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    You have endPost and endUpdate, endPost is called only for actual posting and endUpdate for proforma as well, so it depends if you want to capture proforma or not.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans