Newer Version Available
Retrieve and Update Information
Use the deploy() and retrieve() calls to move metadata (XML files) between a Salesforce
organization and a local file system.
For more information, see Deploying and Retrieving Metadata in the Metadata API Developer Guide.
If you include Salesforce org IDs in your userCriteria or recordCriteria fields, you must modify these IDs before deploying to the target org if different from the org where the restriction rules were retrieved.