WWW::SFDC::Role::CRUD - Shared methods between partner and tooling APIs
version 0.33
say $_->{Id} for WWW::SFDC::Partner->instance()->query($queryString);
If the query() API call is incomplete and returns a queryLocator, this library will continue calling queryMore() until there are no more records to recieve, at which point it will return the entire list.
As it stands, if you want the native API behaviour, you will need to use the internal methods _query and _queryMore.
This has the same additional behaviour as query().
say "$$_{id}:\t$$_{success}" for WWW::SFDC::Partner->instance()->create( {type => 'thing', Id => 'foo', Field__c => 'bar', Name => 'baz'} {type => 'otherthing', Id => 'bam', Field__c => 'bas', Name => 'bat'} );
Create chunks your SObjects into 200s before calling create(). This means that if you have more than 200 objects, you will incur multiple API calls.
say "$$_{id}:\t$$_{success}" for WWW::SFDC::Partner->instance()->update( {type => 'thing', Id => 'foo', Field__c => 'bar', Name => 'baz'} {type => 'otherthing', Id => 'bam', Field__c => 'bas', Name => 'bat'} );
Returns an array that looks like [{success => 1, id => 'id'}, {}...] with LOWERCASE keys.
say "$$_{id}:\t$$_{success}" for WWW::SFDC::Partner->instance()->delete(@ids);
say "$$_{id}:\t$$_{success}" for WWW::SFDC::Partner->instance()->undelete(@ids);
Retrieves SObjects by ID. Not to be confused with the metadata retrieve method.
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::Role::CRUD
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.