Small job that helps you update the Customer address book association

1:  static void UpdateAddressBookOfCustomer(Args _args) {  
2:      CustTable custTable; //= CustTable::find("2104");  
3:      container addressBooks = ["ALL", "CEU", "CEC"];  
4:      while select firstonly Party from custTable {  
5:          DirAddressBookParty::createPartyRelationsByName(custTable.Party, addressBooks);  
6:      }  
7:  }  

Happy Daxing 🙂

Advertisements

2 Responses to Small job that helps you update the Customer address book association

  1. Tim Hawkins says:

    Nice code Amir — could you describe when/why you would need to run this job? Any specific error or operational issues?

    Thanks much,
    and keep up the great work.

    • Amir Nazim says:

      Thanks Tim, there are some errors with POS sales, reason found missing address book on customers.

      Thanks
      Amir (Skype : amir.nazim)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: