web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

XrmServiceToolkit error in ms crm 2015

(0) ShareShare
ReportReport
Posted on by 262

I have the error on form load. It says "XrmServiceToolkit" is not defined. I defined the libraries on form. In my javascript i call the function soap. It gives me the error How can I solve this problem. I wrote my javascript code in test3 library and added to the form.My javascript function is here:

try{
var destekid = getLookupValue("new_yerelreklamdestek");
var destekEnt = getRecord("new_destek_YerelReklam", destekid.id);
var anabayi = destekEnt.new_AnaBayi;

var pickList = Xrm.Page.getControl("new_anabayimaazalar");

var FetchXML = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>"+
" <entity name='account'>"+
" <all-attributes />"+
" <filter type='and'>"+
"<condition attribute='new_anabayi' operator='eq' value='" + anabayi.Id + "' />" +
" <condition attribute='new_faaliyetbitistarihi' operator='null' />"+
" <condition attribute='statuscode' operator='eq' value='1' />"+
" <condition attribute='customertypecode' operator='eq' value='7' />"+
" </filter>"+
" </entity>"+
"</fetch>";

var fetchData = XrmServiceToolkit.Soap.Fetch(FetchXML);// Myu code fails here

for(var i=0; i <fetchData.length; i++)

{

var high = {value : fetchData[i].attributes.Id, text : fetchData[i].attributes.Name.value};
pickList.addOption(high);

}

}
catch(e){
alert(e.message);
}

xrmerror.jpg

*This post is locked for comments

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans