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)

Variable paymId in class CustVoucher

(0) ShareShare
ReportReport
Posted on by 30

Hi all

I have some questions about variable paymId in class CustVoucher:

- what is purpose of paymId?

- when i try to add some new line code in method initCustVendTrans invole this variable, i always receive error at the first line access to paymId.

Thanks

*This post is locked for comments

I have the same question (0)
  • arijitbasu Profile Picture
    on at

    Hi, Can you tell me what error you are getting??

  • trung Profile Picture
    30 on at

    Hi,

    Here is what i did and error i received:

    1. In class CustVendVoucher:

    - Declare new variable in classDeclaration: str    ndtPurchId;

    2. In class VendVoucher:

    - Assign value for ndtPurchId = 'TestPurchId';

    - I try to show value of variable ndtPurchId using method info(ndtPurchId)  but the system show error like this "illegal object code, recompile "

    Another point, I realize when i do anything in these class (CustVendVoucher, CustVoucher, VendVoucher) (such as: just declare new variable, assign value) and after that post invoice which involve customer or vendor, system alway show error  and can not post.

    Do you have any suggest for this? Thx 

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans