Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

HTML Web Resource in form with OData/REST call

$
0
0

Hi,

I am trying to retrieve CRM 2011 data using oDate/REST

My code works fine if I add it to the form_Load event as a javscript file

but when I place the same code as HTML resource file, it is not displaying any value after this 'JSON.parse(req.responseText).d'

 if (req.readyState === 4) {  --> fine
                        if (req.status === 200) {  --> fine
                            var retrieved = JSON.parse(req.responseText).d;

alert(retrieved); won't fire

i have added js file as well

    <script src="ClientGlobalContext.js.aspx"></script>

 <script type="text/javascript" src="new_jquery1.4.1.min.js"></script>

 <script type="text/javascript" src="new_json2.js"></script>


Any help is appreciated 

Thanks



Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>