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

How to use EarlyBinding in MSCRM 2015 Javascript using Sdk.Soap.js Library??

$
0
0

Hi ,

    want to know how to use early binding by using  Sdk.Soap.js Library, what are library needed,also order of the library. I have tried with the below SDK Sample but i am getting error as "Sdk.Account is not a function" i have loaded Sdk.Soap.min and Sdk.Soap.vsdoc before calling my method to create account. Is i am missing any library ?

function startEarlyBindingSample()
{
alert("Starting sample by creating account.");
//Instantiate an account using Sdk.Entity:
var account = new Sdk.Account();
account.Name.setValue("Sample Account 001");
account.CreditOnHold.setValue(false);
account.Address1_Latitude.setValue(47.638197);
account.Address1_Longitude.setValue(-122.131378);
account.NumberOfEmployees.setValue(100000);
account.Description.setValue("This is a description. \n It has several lines. \n This is the third line.");
account.CreditLimit.setValue(2000000.00);
account.AccountCategoryCode.setValue(1) //Preferred Customer
try
{
// Call create
createdAccountId = Sdk.Sync.create(account);
alert("Created account with id: " + createdAccountId);
}
catch (e)
{
throw new Error("Error on Create account: " + e.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>