How to get abc code of a customer or prospect in dynamics 365 finance and operations

0

How to get abc code of a customer or prospect in dynamics 365 finance and operations

In Microsoft Dynamics 365 Finance and Operations (D365 FO), you can get abc code of a customer or prospect in dynamics 365 finance and operations. you can copy and paste the below codes and change them as per your requirement. Here's an example of how you can achieve this:


internal final class CodingSpiderCodingExamples

{  

   public static void main(Args _args)

   {

   DirOrganization dirOrganization = 

   DirOrganization::find(smmBusRelTable::find(“Put your customer Account Number here”).Party);

   ABC abc = dirorganization.ABC;

   }


In the code snippet above, Put your customer Account Number here. After running the project the `info` statement displays 
abc code of a customer in an info log message. You can modify this part of the code to suit your requirements.

Post a Comment

0 Comments
Post a Comment
>
To Top