locked
Saving a CRM form record from Custom HTML Webresource RRS feed

  • Question

  • Hello all,

    I have a custom HTML page which shows a New Account Form within an Iframe, I am hiding the Navigation & Ribbon bars, 

    Now I have a button on HTML Page, on hit of that button the CRM form within the Iframe should get saved.

    I cannot use window.parent here since, I am saving  the Iframe(Child) from the Html(Parent). 

    Any suggesions

    Thanks,

    Vijay


    • Edited by vijay59 Wednesday, May 20, 2015 8:52 AM
    Wednesday, May 20, 2015 8:52 AM

Answers

  • I have solved this thing with a simple piece of line 

    $("#_myIframeId_").contents()[0].contentIFrame0.Xrm.Page.data.entity.save()

    thats it you get all the context of CRM Form within the Iframe.

    Hope it helps someone,

    Thanks,

    Vijay

    • Marked as answer by vijay59 Thursday, May 21, 2015 12:44 PM
    Thursday, May 21, 2015 12:44 PM