Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Purchasing Policy : How it works

(0) ShareShare
ReportReport
Posted on by 2

Hi,

I have edited and PurchreqLine and Purchline and added a field in each table. I also updated the class which converts the purchase requisition to purchase Order and successfully mapped my custom fields. 

The problem is that when we create a purchase order using a Purchase policy then the custom field is  not mapped and the purchase order is created without it. Can any one tell me which class I have to update in order to map my custom field when PO is created using the policy.

Thanks.

*This post is locked for comments

  • Verified answer
    dynamics developer Profile Picture
    2 on at
    RE: Purchasing Policy : How it works

    Hi,

    As the code was running on Server, we had to generate Full CIL to make the changes work.

    Thanks

  • dynamics developer Profile Picture
    2 on at
    RE: Purchasing Policy : How it works

    Hi Andre,

    thanks for your response. I have tried inserting breakpoints at many different locations in the code but the compiler never seems to hit them. Now I am trying to figure out  using trace but still no luck with that either.

    Regards

    Haris

  • dynamics developer Profile Picture
    2 on at
    RE: Purchasing Policy : How it works

    Hi Andre,

    Thanks for your response. Actually I have tried out inserting breakpoints at many different locations but the control never seems to hit any of them. I am trying to figure out the process using the trace but still no luck with that too.

    king Regards

    Haris

  • André Arnaud de Calavon Profile Picture
    294,766 Super User 2025 Season 1 on at
    RE: Purchasing Policy : How it works

    Hi Dynamics Developer,

    Your question is not weird, but I think nobody faced this before. You can use the debugger to find out. You can set a breakpoint on the insert method of the PurchLine table. Then perform the tasks. Then you can analyse how the record is inserted and see where you can add your code for the new custom fields.

  • dynamics developer Profile Picture
    2 on at
    RE: Purchasing Policy : How it works

    Do I ask  such weird questions that no one gives any response????

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans