Question Status

Verified
dynamics developer asked a question on 25 Jun 2013 9:07 AM

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.

Reply
Verified Answer
dynamics developer responded on 11 Jul 2013 1:15 AM

Hi,

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

Thanks

Reply
dynamics developer responded on 28 Jun 2013 8:38 AM

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

Reply
André Arnaud de Calavon responded on 30 Jun 2013 2:21 PM

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.

kind regards,

André Arnaud de Calavon  |  Microsoft Dynamics AX Solution architect  |  My blog  |  My company

This post is my own opinion and does not necessarily reflect the opinion or view of my company, Microsoft, both its employees, or other MVPs.

Reply
dynamics developer responded on 1 Jul 2013 1:10 AM

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

Reply
dynamics developer responded on 1 Jul 2013 1:14 AM

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

Reply
Verified Answer
dynamics developer responded on 11 Jul 2013 1:15 AM

Hi,

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

Thanks

Reply