RE: need to get data from html webresource
Hi Hemanth,
In order to work with HTML Web resource you must need to add reference to ClientGlobalContext.js.aspx in your HTML Code as shown below:
<script src="../ClientGlobalContext.js.aspx"></script>
Also add reference to JavaScript Web Resource which you will call on click of Submit button.
After clicking submit button, function will retrieve data of all text fields in HTML using JavaScript or Query as shown below:
Using JavaScript:
var text=document.getElementById("txtvalue").value
Using Query:
var text=$("# txtvalue ").val()
Once you have the data of text fields in HTML, you can easily map field value to the fields in CRM as shown below:
window.opener.Xrm.Page.getAttribute("fieldvalue").setValue(text);
Thanks!