Notifications
Announcements
Hello
HI,
You can add a select statement in DirPartyContactInfoView to check if there is any email address available against the customer.
DirPartyContactInfoView will have Party field which will be related to CustTable Party field.
while select * from custtable { //add select statement to DirPartyContactInfoView select * from contactInfoView where contactInfoView.Party == custtable.Party && contactInfoView.Type == LogisticsElectronicAddressMethodType::Email && contactInfoView.Locator != ""; if(!contactInfoView) { container con = custTable.accountNum; } } info(strfmt("%1",con2str(con,",")));
Thanks,
Girish S.
Ok
Seems you already added a code for that. Have you tried the above code? is it working?
I am just try typing the sample code for you.
DirPartyContactInfoView is the view name and not table. This view contains all your required data including if IsPrimary field.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 629 Super User 2025 Season 2
Abhilash Warrier 444 Super User 2025 Season 2
BillurSamdancioglu 288 Most Valuable Professional