Skip to main content

Notifications

FormContext to retrieve and set field values in MSCRM/Dataverse

Introduction:


Day 2 : using FormContext to retrieve and set field values in MSCRM/Dataverse forms.


function onLoad(executionContext) {
    var formContext = executionContext.getFormContext();

    if (formContext.getAttribute("bosch_dayname").getValue() != null) {
        formContext.getAttribute("bosch_setvalue").setValue(formContext.getAttribute("bosch_dayname").getValue())
    }
}


Comments