How to find Custom Record Link

Finding the Record link of a Custom Record with Id customrecord_vbn_vendor_billing_notes


      const newRec1=scriptContext.newRecord;
    

                    let output1 = url.resolveRecord({
                        recordType: 'customrecord_vbn_vendor_billing_notes',
                        recordId: newRec1.id,
                        isEditMode: false
                    });
                   

                    let docNum=newRec1.getValue({
                        fieldId:"name"
                    });


                    let companyInfo = config.load({
                        type: config.Type.COMPANY_INFORMATION
                    });
                    let appUrl=companyInfo.getValue({
                        fieldId: "appurl"
                    });
                 
                    let recordUrl=appUrl+output1;
                    log.debug("Record URL ", recordUrl);
                   
                    


                    

Leave a comment

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