Skip Menu |

This queue is for tickets about the WWW-Salesforce CPAN distribution.

Report information
The Basics
Id: 28450
Status: resolved
Priority: 0/
Queue: WWW-Salesforce

People
Owner: cwhitener [...] gmail.com
Requestors: tom@eborcom.com (no email address)
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: Implementation of a describeSObjects method
I have implemented describeSObjects for WWW::Salesforce. Please see the attached code for details. The method takes a hash as its arguments, with the key type and the value of an array reference containing Salesforce object names. I have used this approach to remain consistent with the rest of the code. Tom Hukins
Subject: describeSObjects.pl
sub describeSObjects { my $self = shift; my %in = @_; if ( !defined $in{type} or ref $in{type} ne 'ARRAY' or !scalar @{ $in{type} } ) { carp "Expected hash with key 'type' containing array reference"; return; } my $client = $self->get_client(1); my $method = SOAP::Data ->name( "describeSObjects" ) ->prefix( $SF_PREFIX ) ->uri( $SF_URI ); my $r = $client->call( $method => SOAP::Data->prefix( $SF_PREFIX ) ->name( 'sObjectType' ) ->value( @{ $in{'type'} } ) ->type( 'xsd:string' ), $self->get_session_header() ); if ( $r->fault() ) { carp( $r->faultstring() ); return; } return $r; }
Tom, Wow, you supplied this a while ago (I haven't been watching RT). Thanks for the work of getting this done. I'll try to get it implemented with test cases and pushed out this coming week. Again, thanks for the work and I apologize for taking so long to get back to you. Thanks, Chase On Tue Jul 24 07:38:52 2007, tom@eborcom.com wrote: Show quoted text
> I have implemented describeSObjects for WWW::Salesforce. Please see the > attached code for details. > > The method takes a hash as its arguments, with the key type and the > value of an array reference containing Salesforce object names. I have > used this approach to remain consistent with the rest of the code. > > Tom Hukins
Added in 0.12