xrmservicetoolkit is undefined

Aug 5, 2015 at 10:33 AM
when i push on ribbon button javascript not working and i get error "xrmservicetoolkit is undefined " I try many version but not have success. can anyone help me please.
Condition;
I use Crm 2015, i load json2, jquery1.7.2 and xrmservicetoolkit2.2.1 on Form. I create two ribbon button on custom entity. first button create a invoice for contact person second button create invoice for firm with more than one contact assembly. Problem is when i create for contact is working but when i try for firm i get error of XrmServiceToolkit not defined.
after i create a button of contact invoice update crm 2015 then now i try to create button for firm but XrmServiceToolkit is undefined. Now i have crm 2015 version 7.0.1.129 language german

Thanks for every aid
Coordinator
Aug 13, 2015 at 4:04 PM
Hi There.

Basically, you will need to load "custom libraries" in ribbon before you can use them in some situations.

Please have a look at the following link and hope that helps.

https://rajeevpentyala.wordpress.com/2012/05/23/loading-dependent-jscript-libraries-in-ribbon-buttons-execution-crm-2011/

Kind Regards,
Jaimie