web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

For learning

(0) ShareShare
ReportReport
Posted on by 35

Hello

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,829 Moderator on at

    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.

  • Suggested answer
    learner.d365 Profile Picture
    35 on at

    Ok

  • GirishS Profile Picture
    27,829 Moderator on at

    Seems you already added a code for that. Have you tried the above code? is it working?

    Thanks,

    Girish S.

  • learner.d365 Profile Picture
    35 on at

    Ok

  • GirishS Profile Picture
    27,829 Moderator on at

    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.

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 629 Super User 2025 Season 2

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 444 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 288 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans