Skip to main content

Posts

Showing posts from July, 2021

D365 Remove contact or update contact information

We all come across the requirements where the contact information for the customer is entered in a wrongly manner or there's whole set of records where the information provided is completely garbage. For me it was Email and Mobile. So we extracted data and narrowed it down to list of customers with garbage values. For this I have prepared one csv file mainly consisting four columns. 1) Account 2) Garbage info Email/Mobile 3) Identifier Email/Mobile 4) Add for modifying existing number. Below is the code to call the same from RunnableClass class CustomerDataCleanupEmailAndPhone {     /// <summary>     /// Runs the class with the specified arguments.     /// </summary>     /// <param name = "_args">The specified arguments.</param>     public static void main(Args _args)     {         #define.LocationRoleName('Collection')         AsciiStreamIo                                                                 file;         Array