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);
}
}