You need to sign in to do that
Don't have an account?
kerryland6
Unable to delete Custom Field due to "Assignment Rules"
Hi Folks,
I'm trying to delete a custom field via the MetaData api:
CustomField cf = new CustomField();
cf.setFullName("Account.SLA__c");
AsyncResult[] result = metadataConnection.delete(new Metadata[]{cf});
.... but it fails with:
DEPENDENCY_EXISTS msg: This custom field is referenced elsewhere in salesforce.com. : Case Assignment Rules. This custom field is referenced elsewhere in salesforce.com. : Case Escalation Rules.
My question is: How can I delete "Case Assignment Rules" and "Case Escalation Rules" via an API?
Thanks heaps!
Kery
You are not able to delete the field as the field is referenced in the Case assignment rule.
But unfortunitaely you can not delete the assignment rule through META DATA API.
Thanks and Regards,
Dinesh
dinesh.nasipuri@gmail.com