I have been playing around with web resources recently, trying to learn the ins and outs.
What I have made is a very simple HTML web resource, that uses a few JS libraries. The goal of the web resource is to create a simple multi-select that can access a set off data in CRM and list them, save changes etc.
However I am stuck on the CRM integration part because it's failing to load the libraries.
All libraries have been uploaded to CRM as seperate web resources and I have made sure naming is correct all around.
Unfortunately the information I have been following on this project is an older one, using the SDK delivery system (CRM 2013). And I am working with CRM Online and had to upload it manually. So I guess I might be missing something important.
The libraries I am trying to get a hold of is:
<script type="text/javascript" src="../ClientGlobalContext.js.aspx"></script>
<script type="text/javascript" src="jquery_1.11.3.js"></script>
<script type="text/javascript" src="SDK.REST.js"></script>
Ps. If anyone knows some good sources on CRM Online development, I would love to know.
Any help would be appreciated :) Thank you
- MrLorgy
*This post is locked for comments
Piotr pointed out what I was missing :)
NOTE: I noticed it only worked for the ClientGlobalContext first try, that was because I had forgotten to prefix the other two webresources with the Solution I was using for delivery.
So
<script type="text/javascript" src="../WebResources/ClientGlobalContext.js.aspx"></script>
<script type="text/javascript" src="../WebResources/"solution prefix"_jquery_1.11.3.js"></script>
<script type="text/javascript" src="../WebResource/"solution prefix"_SDK.REST.js"></script>
Is what ended up working. :)
For anyone else, you can see the full path of the webresource in the solution when you upload it, and you can always go back if you forget. :)
- MrLorgy
Hi,
It is stored in the WebResource folder on the server, please reference these as follows:
<script type="text/javascript" src="../WebResources/prefix_name"></script>
Thanks,
Piotr
PS. Please mark as correct answer if happy with suggestion.
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,848
Most Valuable Professional
nmaenpaa
101,156