我正在尝试从销售订单的自定义按钮重定向到自定义记录。下面给出了按钮功能,我需要通过传递自定义记录 ID (custrecord_gotorecord)或任何其他方式来获取rectype(496)参数吗?
function openCustomRecordCreate() {
var currRec = currentRecord.get();
var currentRecordId = currRec.getValue({
fieldId: "id"
});
window.open("/app/common/custom/custrecordentry.nl?rectype=496&soID=" + currentRecordId + "&end=true", '_self');
}