LightningFlowComponents
LightningFlowComponents copied to clipboard
DeepClone - Field Owner:Queue.DeveloperName is inaccessible
Steps to reproduce
Steps to reproduce the behavior:
- Create Validation rule on Task validation referencing Owner queue developer Name fore example Owner:Queue.DeveloperName = 'Something'
- Run Test method ListActionsTest.cloneRecordTests
Expected behaviour
Test class pass
Actual behaviour
Following error appear:
ListActionsTest.cloneRecordTests Fail System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Validation Formula "LUP_PreventAssignmentToGlobalContractAdm" Invalid (Field Owner:Queue.DeveloperName is inaccessible. Please review all fields referenced by the formula. Context: common.config.entity.ValidationFormulaContext): []
Class.SObjectDeepClone.save: line 87, column 1
Class.DeepClone.clone: line 54, column 1
Class.ListActionsTest.cloneRecordTests: line 153, column 1