Announcements
No record found.
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.
Congratulations to our 2026 Super Stars!
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... 514 Super User 2026 Season 1
Giorgio Bonacorsi 390
Adis 266 Super User 2026 Season 1