Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Custom Lead Qualify Button and Duplicate Detection pop up

$
0
0

Hi,

We have custom Qualify Button on Lead which uses QualifyRequest through javascript to qualify lead. We also have duplicate detection rule for Contact. When qualifying when it finds matching contact it the soap envelope does give you an error back that it has found duplicate but does not trigger duplicate pop up. Does anyone have any idea if the Duplicate Detection pop is only trigged on OOTB qualify button and not when you try to qualify lead from custom Button using soap envelope.

Below is the soap Envelope where we have SuppressDuplicateDetection to false which I thought should trigger duplicate pop up.


request.push(" <s:Envelope xmlns:s=\"schemas.xmlsoap.org/.../envelope\">");
request.push(" <s:Body>");
request.push(" <Execute xmlns=\"schemas.microsoft.com/.../Services\" xmlns:i=\"www.w3.org/.../XMLSchema-instance\">");
request.push(" <request i:type=\"b:QualifyLeadRequest\" xmlns:a=\"schemas.microsoft.com/.../Contracts\" xmlns:b=\"schemas.microsoft.com/.../Contracts\">");
request.push(" <a:Parameters xmlns:c=\"schemas.datacontract.org/.../System.Collections.Generic\">");
request.push(" <a:KeyValuePairOfstringanyType>");
request.push(" <c:key>LeadId</c:key>");
request.push(" <c:value i:type=\"a:EntityReference\">");
request.push(" <a:Id>" + Id + "</a:Id>");
request.push(" <a:LogicalName>lead</a:LogicalName>");
request.push(" <a:Name i:nil=\"true\" />");
request.push(" </c:value>");
request.push(" </a:KeyValuePairOfstringanyType>");
request.push(" <a:KeyValuePairOfstringanyType>");
request.push(" <c:key>CreateAccount</c:key>");


if (Xrm.Page.getAttribute("orc_existing_account") != null && Xrm.Page.getAttribute("orc_existing_account").getValue() != null)


request.push(" <c:value i:type=\"d:boolean\" xmlns:d=\"www.w3.org/.../XMLSchema\">true</c:value>");

request.push(" </a:KeyValuePairOfstringanyType>");

request.push(" <a:KeyValuePairOfstringanyType>");
request.push(" <c:key>CreateContact</c:key>");
request.push(" <c:value i:type=\"d:boolean\" xmlns:d=\"www.w3.org/.../XMLSchema\">true</c:value>");
request.push(" </a:KeyValuePairOfstringanyType>");

request.push(" <a:KeyValuePairOfstringanyType>");
request.push(" <c:key>CreateOpportunity</c:key>");
request.push(" <c:value i:type=\"d:boolean\" xmlns:d=\"www.w3.org/.../XMLSchema\">false</c:value>");
request.push(" </a:KeyValuePairOfstringanyType>");

request.push(" <a:KeyValuePairOfstringanyType>");
request.push(" <c:key>OpportunityCurrencyId</c:key>");
request.push(" <c:value i:type=\"a:EntityReference\">");
request.push(" <a:Id>" + "602b2609-83cc-e411-bd51-f8bc1270c017" + "</a:Id>");
request.push(" <a:LogicalName>lead</a:LogicalName>");
request.push(" </c:value>");
request.push(" </a:KeyValuePairOfstringanyType>");

request.push(" <a:KeyValuePairOfstringanyType>");
request.push(" <c:key>OpportunityCustomerId</c:key>");
request.push(" <c:value i:nil=\"true\">");
request.push(" </c:value>");
request.push(" </a:KeyValuePairOfstringanyType>");

request.push(" <a:KeyValuePairOfstringanyType>");
request.push(" <c:key>SourceCampaignId</c:key>");
request.push(" <c:value i:nil=\"true\">");
request.push(" </c:value>");
request.push(" </a:KeyValuePairOfstringanyType>");

request.push(" <a:KeyValuePairOfstringanyType>");
request.push(" <c:key>Status</c:key>");
request.push(" <c:value i:type=\"a:OptionSetValue\">");
request.push(" <a:Value>3</a:Value>"); //Qualified
request.push(" </c:value>");
request.push(" </a:KeyValuePairOfstringanyType>");

request.push(" <a:KeyValuePairOfstringanyType>");
request.push(" <c:key>SuppressDuplicateDetection</c:key>");
request.push(" <c:value i:type=\"d:boolean\" xmlns:d=\"www.w3.org/.../XMLSchema\">false</c:value>");
request.push(" </a:KeyValuePairOfstringanyType>");


request.push(" </a:Parameters>");
request.push(" <a:RequestId i:nil=\"true\" />");
request.push(" <a:RequestName>QualifyLead</a:RequestName>");
request.push(" </request>");
request.push(" </Execute>");
request.push(" </s:Body>");
request.push(" </s:Envelope>");

Thank You.


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images