Forum Discussion
ShufflrrAPI
Feb 15, 2024Copper Contributor
API Question: Lead Object
Where can I find the accepted values for the Status Reason (statuscode) within the Lead Object? I'm receiving the following error: "(0x80048408) 1 is not a valid status code for state code LeadState.Qualified on lead".
Thanks,
2 Replies
Sort By
- Julian_SharpLearn Expert
In the Power Apps Maker portal you can view the status reason column on the lead table and see the labels and values for each lead state
Also see https://www.crmcrate.com/other/crm-entity-status-status-reason-codes/
When qualifying a lead in the API, statecode should be 1 and statuscode should be 3- Julian_SharpLearn ExpertHowever if qualifying a lead in the API you should probably use the QualifyLeadRequest method
See https://learn.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages.qualifyleadrequest and https://learn.microsoft.com/en-us/dynamics365/sales/developer/sample-qualify-lead