NAME
WWW::SFDC::Role::CRUD - Shared methods between partner and tooling APIs
VERSION
version 0.30
METHODS
query
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.
queryAll
This has the same additional behaviour as query().
create
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.
update
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.
delete
say "$$_{id}:\t$$_{success}" for WWW::SFDC::Partner->instance()->delete(@ids);
Returns an array that looks like [{success => 1, id => 'id'}, {}...] with LOWERCASE keys.
undelete
say "$$_{id}:\t$$_{success}" for WWW::SFDC::Partner->instance()->undelete(@ids);
Returns an array that looks like [{success => 1, id => 'id'}, {}...] with LOWERCASE keys.
retrieve
Retrieves SObjects by ID. Not to be confused with the metadata retrieve method.
BUGS
Please report any bugs or feature requests at https://github.com/alexander-brett/WWW-SFDC/issues.
SUPPORT
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
AUTHOR
Alexander Brett <alexander.brett@sophos.com>
COPYRIGHT AND LICENSE
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.