Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How can i disqualify a Lead with the web api

Posted on by Microsoft Employee

Hi,

How can i disqualify a Lead with the web api?

To qualify a lead i can use the QualifyLead Action and the Status = 3 (Qualified). This works!

I have already tried to set the "Status" to one of these code:

4 : Lost
5 : Cannot Contact
6 : No Longer Interested
7 : Canceled

but the answer is for instance:

500 Internal Server Error - 4 is not a valid status code for state code LeadState.Qualified

Is there another web-Action which i can use? Here is the reference.

I have a PHP application with a simple curl request.

Thanks!

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How can i disqualify a Lead with the web api

    Thanks!

  • Verified answer
    David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: How can i disqualify a Lead with the web api

    To disqualify a lead, you can directly update the statuscode (Status Reason) and statecode (Status). Set statuscode to one of the values above, and statecode to 2 (disqualified)

    QualifyLead has a separate action because there are additional parameters, but these do not apply when disqualifying a lead

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How can i disqualify a Lead with the web api

    Hello,

    you need to set both Status(schemaname: statuscode) and Statusreason (active/inactive)

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans