You need to sign in to do that
Don't have an account?
Deleting Record Types using Force.com Migration Tool
This is my first time using the migration tool, so I'm not sure if it's user error or if it's not supported.
I posed a question on StackExchange (http://salesforce.stackexchange.com/questions/46154/is-it-possible-to-delete-a-record-type-through-metadata-api/46156?noredirect=1#comment60102_46156) which I'm fairly certain confirms it can be done.
I built a destructiveChanges.xml file which I'm able to successfully deploy without the elements for RecordType. When I add them into the file and deploy, I get an error reading "Error: Cannot delete record type through API". As mentioned in the StackExchange question, the Metadata API guide states "Use this metadata type to create, update, or delete record type definitions for a custom object.", so I'm at a bit of a loss.
I have 4 record types (all for the standard object Case), and they are all inactive and not default for any profiles.
Has anyone ever been able to delete a record type using a destructiveChanges.xml file? Here is my code referencing RecordType:
I posed a question on StackExchange (http://salesforce.stackexchange.com/questions/46154/is-it-possible-to-delete-a-record-type-through-metadata-api/46156?noredirect=1#comment60102_46156) which I'm fairly certain confirms it can be done.
I built a destructiveChanges.xml file which I'm able to successfully deploy without the elements for RecordType. When I add them into the file and deploy, I get an error reading "Error: Cannot delete record type through API". As mentioned in the StackExchange question, the Metadata API guide states "Use this metadata type to create, update, or delete record type definitions for a custom object.", so I'm at a bit of a loss.
I have 4 record types (all for the standard object Case), and they are all inactive and not default for any profiles.
Has anyone ever been able to delete a record type using a destructiveChanges.xml file? Here is my code referencing RecordType:
<types> <members>case.Associate_Services</members> <members>case.InformationTechnology</members> <members>case.Operational</members> <members>case.Website</members> <name>RecordType</name> </types>
Thanks,
Kaustav
All Answers
Thanks,
Kaustav
@kaustav you should ask for MVP recognition like a badge or something :)