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

Unable to create a lead record in ms crm 2015 online by using SDK.Rest.Create

$
0
0

Hi ,

i have one requirement  i have 6 radio button in html page .The  html page integrate in to ms crm 2015 online.

once the radio button is selected  lead record will be created in ms crm by using sdk.rest.create().

But it will  throw an error is " SKD is undefined .please  fix the issue.

function Create_PortalUser() {


if (document.getElementById('r1').checked) {
//Create Lead Record
var LeadRole = {};
LeadRole.Name = "TestLeadRole Creation";
////Create the Lead Record
SDK.REST.createRecord(LeadRole, "lead", successHandler, errorHandler);

function successHandler(entity) {
alert("Lead record id is :" + entity.Title);
}

function errorHandler(error) {

alert(error.message);
}
}


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>