Search code examples
dynamics-crmcrm

CRM SDK undefined When Using InitializeFromRequest


Hello I want TO initialize a New Entity Instance From Another Entity Instance in Microsoft Dynamics CRM 2015 Using Using Jscript InitializeFromRequest The error here:

if (typeof (SDK) == "undefined")
    {SDK = {__namespace: true}; }

It says that SDK is not defined. I added the librearias of SDK.SOAP.JS And JQUERYV1.12.4


Solution

  • In our scenario we include sdk rest and sdk soap in the same file

    if (typeof (SDK) == "undefined")
        {SDK = {__namespace: true}; }
    

    Then give us exception sdk not defined

    We may solve this by making separate files for sdk rest and sdk soap then include them in our project.