The context is simple : I need to copy metadata (spec. the Visualforce Page Access from a certain profile)from one org to another with some edition on the fly.
Someone suggested me to use the Force.com Migration Tool, as there are numerous metadata.
I followed the guide provided by Jeff Douglas for the beginning. So far so good, I was able to retrieve/deploy some easy metadata (apex class/visualforce pages).
I'm facing issues when I try to retrieve the metadata on a profile, and specifically on the ProfileApexPageAccess field.
My package.xml looks like this
<types> <members>MyProfileName</member> <name>Profile.ProfileApexPageAccess</name> </types>
When I command-lined ant retrieveUnpackaged, I expected different results
<userLicense>MyProfileName</userLicense> <userPermissions> <enabled>true</enabled> <name>AllowUniversalSearch</name> </userPermissions> <userPermissions> <enabled>true</enabled> <name>ApiEnabled</name> </userPermissions>
What am I doing wrong ? Thanks in advance