Deploy Calendar Tab visibility with sfdx or Error-Can't retrieve non-customizable CustomObject named: Calendar

Deploy Calendar Tab visibility with sfdx or Error-Can't retrieve non-customizable CustomObject named: Calendar


We generally need to pull the object as well as Profile to get the ProfileTabVisibility


ProfileTabVisibility represents the visibility of tabs for this profile. 

ProfileTabVisibility supports visibility of tabs for standard objects.

The manifest file must include the standard object corresponding to a standard tab to retrieve the tab visibility in a profile.


Calendar is not supported and we get the following error:


Can't retrieve non-customizable CustomObject named: Calendar


This is because Calendar is unsupported by the Metadata API. The only way to do this is manually editing the profile.


Reference -

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_unsupported_types.htm


Comments