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

HTML Webresouce Search and Create Record in CRM 2011

$
0
0

Hi,

There is a requirement on click of 'New' button the HTML web resource will be populated instead of new CRM form .There are 3 Fields like 1. First Name 2. Last Name 3. Phone Number .

3 Buttons: like 1.Search 2. Create New Record 3. Cancel 

Initially 'Create New Record' button was disabled .First User will search the records ( Like Search ) If the record does not exist it will prompt for new  record Creation then 'Create New Record' Button will be enabled .

On Click of Create new button the details entered on HTML web resource will be pushed to CRM form respective field .

Issue : As I am using XrmServiceToolkit.js while searching :

var fetchXML = getPersonData();

       

var fetchedResults = XrmServiceToolkit.Soap.Fetch(fetchXML);

       

if (fetchedResults !=null&& fetchedResults.length > 0) {

After this condition while debugging on file 'XrmServiceToolkit.js' at

req.send(soapXml);

it throws error like :-

'Javascript runtime error : NetworkError'

 Or Is there any alternate way to achieve this please suggest for the same .

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>