Fetch the Custom Form Used even when the Record is in View Mode

Jira Code : CLTG-177

Description

Usually, we couldn’t fetch the internal id of the custom form using the getValue() and using the search() in the beforeLoad entry point of the record.

So, in order to fetch the custom form, we need to load the record.

 if (scriptContext.type == "view")
 {
     let quoteRec = record.load({
                      type : record.Type.ESTIMATE,
                      id   : quoteID
                    });

     let formID = quoteRec.getValue("customform");
}
            

Leave a comment

Your email address will not be published. Required fields are marked *