Hi,
in the process of creating purchasing policies, a policy was wrongly typed and I want to delete the policy
from <company>/Procurement and sourcing/Setup/Policies/Purchasing policies
Since its a wrongly set policy, I want the record get totally deleted rather than just "Retire Policy".
Please guide me.
Thanks,
Lakshmi
*This post is locked for comments
I have the same question (0)Hi Lakshmi for some reason MS does not provide a delete option for a policy, question is how does it effect you if you leave it as a retired policy? Even the delete method has been overridden to retire the policy instead of deletion.
However If you created a test record and want to get rid of it then use the below code in a n AX job to delete the policy.
static void deletePolicy(Args _args) { SysPolicy policy; ttsBegin; select forupdate policy where policy.Name == "test"; policy.doDelete(); ttsCommit; }
Syed Haris Shah
9
Mea_
4
howalker
2