You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

While updating a custom menu field in cutom object, menu field is not updating

I have used this script in my BUI while saving the record, but the menu field is not updating, for normal text fields i am able to update the data,can anyone please help on this.

function saveValidation(workspaceRecordEventParameter) {

workspaceRecord.getFieldValues(['CO$ProblemRecord.Id', 'CO$ProblemRecord.ManagerApprovalStatus']).then(function (IFieldDetails) {


_manager_Approval = IFieldDetails.getField('CO$ProblemRecord.ManagerApprovalStatus').getValue();

// managerEmail = workspaceRecord.updateField('CO$ProblemRecord.ManagerEmail', managerEmail);
if ((_manager_Approval == "[No Value]" || _manager_Approval == null)){
workspaceRecord.updateFieldByLabel('CO$ProblemRecord.ManagerApprovalStatus.Id',2);

}

});

}

@Nika Gerson Lohman, @Premkumar Sabarinathan-Oracle

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!