You need to sign in to do that
Don't have an account?
Surya Chandra Rao Gandreddi
How to query for a deleted field & update the new field in Post Install Script
I had to delete a field, say Type__c from a custom object and use RecordType ... I've deleted the field Type__c and now I'm trying to upgrade the recordTypes via PostInstallScript. But when I'm trying to query for Type__c I get the below error.
No such column 'Type__c' on entity 'Custom Object'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
Any suggestions, thanks.
No such column 'Type__c' on entity 'Custom Object'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
Any suggestions, thanks.
global void onInstall(InstallContext context) {
List<Custom__Object> customObject = [ Select Id, Type__c From Custom__Object WHERE RecordTypeId = NULL ];
//I've deleted Type__c and trying to update the RecortTypeId
}
}