WWW::SFDC::Metadata - Interface to the Salesforce.com Metadata API
version 0.33
my $client = WWW::SFDC->new( username => 'foo', password => 'bar', url => 'https://login.salesforce.com' )->Metadata; my $manifest = $client->listMetadata( {type => "CustomObject"}, {type => "Report", folder => "FooReports"} ); my $base64zipstring = $client->retrieveMetadata( $manifest ); $client->deployMetadata( $base64zipstring, {checkOnly => 'true'} );
For more in-depth examples, see t/WWW/SFDC/Metadata.t
Accepts a list of types and folders, such as
{type => "CustomObject"}, {type => "Report", folder => "FooReports"}
and generates a list of file names suitable for turning into a WWW::SFDC::Manifest.
Sets up a retrieval from then checks it until done. Returns the same data as checkRetrieval. Requires a manifest of the form:
my $manifest = { "ApexClass" => ["MyApexClass"], "CustomObject" => ["*", "Account", "User", 'Opportunity"], "Profile" => ["*"] };
Takes a base64 zip file and deploys it. Deploy options will be passed verbatim into the request; see the metadata developer guide for a description.
Returns a WWW::SFDC::Metadata::DeployResult containing the result of the operation. You must manually check whether this succeeded!
Calls deployRecentValidation with your successfully-validated deployment.
Please report any bugs or feature requests at https://github.com/alexander-brett/WWW-SFDC/issues.
You can find documentation for this module with the perldoc command.
perldoc WWW::SFDC::Metadata
You can also look for information at https://github.com/alexander-brett/WWW-SFDC
Alexander Brett <alexander.brett@sophos.com>
This software is Copyright (c) 2015 by Sophos Limited.
This is free software, licensed under:
The MIT (X11) License
The full text of the license can be found in the LICENSE file included with this distribution.
To install WWW::SFDC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::SFDC
CPAN shell
perl -MCPAN -e shell install WWW::SFDC
For more information on module installation, please visit the detailed CPAN module installation guide.