Change personal information approval - Address deletion is not working
Summary:
The requirement is to write approval rules for Home address deletion . If it is deleted by employee himself , it should go for approval. I have written the code as :
((transactionApprovalRequest.SelfServiceTransaction == "Y") AND (transactionApprovalRequest.ViewInstanceName == "PersonAddress") AND (transactionApprovalRequest.DMLMode == "DELETE"))
This is not working.
I also tried changing the code like this:
((transactionApprovalRequest.SelfServiceTransaction == "Y") AND (transactionApprovalRequest.ViewInstanceName == "PersonAddress") AND (Proposed Person Address.result.personAddrUsageId == null) AND (Current Person Address.result.lookupCode != null) AND (Current Person Address.result.personAddrUsageId != null) )
This is also not working.
Can anyone help. Thanks.
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):