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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to determine lead was qualified programmatically?

(0) ShareShare
ReportReport
Posted on by

Hello experts,

My question is really not that difficult, but I did not found an answer online.

I have a plugin which is retrives a lead,who can I determine if this lead was qualified once?

var entities = service.RetrieveMultiple(leadExp);
if (entities.Entities.Count>0 && ItWasQualified())
{
service.Delete(leadEntity.LogicalName, (Guid)entities[0].Attributes["leadid"]);
}

bool ItWasQualififed()

{

//???

}

I have the same question (0)
  • Verified answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    Hi,

    You can use this QExp:

    // Instantiate QueryExpression QElead

    var QElead = new QueryExpression("lead");

    // Add all columns to QElead.ColumnSet

    QElead.ColumnSet.AllColumns = true;

    // Define filter QElead.Criteria

    QElead.Criteria.AddCondition("qualifyingopportunityid", ConditionOperator.NotNull);

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans