Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

How can i check lookup field is blank in CRM plugin

Posted on by 255

Can you help me to how can i check lookup field on form is null in plugin

  • Suggested answer
    ajyendra Profile Picture
    ajyendra 1,730 on at
    RE: How can i check lookup field is blank in CRM plugin

    Hi Mona ,

    You can refer this link here you can see all the get and set method also Check condition if it is null or contain data or not before getting the all type of fields in mscrm using C# and Javascript.

    community.dynamics.com/.../get-set-field-values-in-c-javascript-and-utility-functions

  • Suggested answer
    Joana Pinto Profile Picture
    Joana Pinto 740 on at
    RE: How can i check lookup field is blank in CRM plugin

    Hi,

    You just need to see if field is equal to NULL.

    Something like this:

    var lookupField = entity["accountid"];
    if(lookupField == null) {
        //do something
    }

    Regards,

    Joana

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans