I created a scratch org, made some custom objects and adjusted custom tab settings. I pulled it and pushed it to a newly created scratch org. However, my custom tab settings is not applied and I have to manually go to Setup -> Users -> Profile and adjust the custom tab settings manually.
I have seen a solution from this post, but I don't have
'standard-' on my
standard__LightningSales.app-meta.xml, and I got a push error:
In field: tab - no CustomTab named standard-CustomObjectName__c found
This is the content of CustomObjectField__c.field-meta.xml:
<?xml version="1.0" encoding="UTF-8"?> <CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> <fullName>CustomObjectField__c</fullName> <defaultValue>false</defaultValue> <externalId>false</externalId> <label>CustomObjectName</label> <trackTrending>false</trackTrending> <type>Checkbox</type> </CustomField>
How do I get custom object/tab settings so I don't have to set it manually every time I created new scratch org? My goal is to create a batch script to create a scratch org with all the custom objects and the records.