Hello
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.
Thanks,
Girish S.
Ok
Seems you already added a code for that. Have you tried the above code? is it working?
Thanks,
Girish S.
Ok
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.
André Arnaud de Cal...
291,971
Super User 2025 Season 1
Martin Dráb
230,846
Most Valuable Professional
nmaenpaa
101,156