I'm trying to retrieve XML profiles files, but the files I'm retrieving don't contain all object I listed in package.xml (especially Standard Objects). In the package.xml file I listed some standard objects:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>Account</members>
<members>Contact</members>
<members>Opportunity</members>
<name>CustomObject</name>
</types>
<types>
<members>*</members>
<name>Profile</name>
</types>
<types>
<members>*</members>
<name>CustomField</name>
</types>
<version>48.0</version>
</Package>
I assume, that after the retrieving there should be a section <objectPermission>
in every profile file containing the listed objects, something like this:
<objectPermissions>
<allowCreate>true</allowCreate>
<allowDelete>true</allowDelete>
<allowEdit>true</allowEdit>
<allowRead>true</allowRead>
<modifyAllRecords>false</modifyAllRecords>
<object>Account</object>
<viewAllRecords>false</viewAllRecords>
</objectPermissions>
But not in all files I have this section. I have profile files which don't contain any of listed objects and I have some files which contain the listed objects, but not all of them (for example - object permission only for Account and Contact). Did anybody have this type of issue? How to "force" Salesforce and Visual Studio Code to retrieve the listed objects?