You need to sign in to do that
Don't have an account?
thvv
Perl error when updating record
I am adapting Tony Stubblebine's example to do a simple update of a Lead record.
I can query the database, and insert new records. When I attempt to update a
record that's there already, I get the message
Expected a hash with key 'type' as first argument at soaptest6.pl line 49
from the statement
$sfresult = $sforce->update(%lead);
I dumped out the hash: it has a key "type" which I inserted first, but it's a hash, right, the keys come back in random order, and PostalCode comes back first.
I must be missing something simple. Clue please.
I can query the database, and insert new records. When I attempt to update a
record that's there already, I get the message
Expected a hash with key 'type' as first argument at soaptest6.pl line 49
from the statement
$sfresult = $sforce->update(%lead);
I dumped out the hash: it has a key "type" which I inserted first, but it's a hash, right, the keys come back in random order, and PostalCode comes back first.
I must be missing something simple. Clue please.
my $res = $sforce->update( type=>'Account', \%one_item, \%two_item, \%n_item );
or optionally,
my $res = $sforce->update( type=>'Account', @array_of_hash_refs );
There is a lot of work being done at the moment to update the very old Perl API that was written to have it work like the Salesforce API documentation says it should. Many things will change when the 0.1 release of WWW::Salesforce is let loose upon the CPAN world. 0.1 will be the first release towards a 1.0 release that works exactly as the Saleforce documentation says.
Thanks,
Chase