Women in Technology

Hear us Roar

  Using the Salesforce.com API
Subject:   create works but update errors
Date:   2007-03-20 10:34:22
From:   thvv
My code is a minor mod to the example.

$sfresult = $sforce->update(%lead);

I get the message
Expected a hash with key 'type' as first argument at soaptest6.pl line 49
Can't call method "result" without a package or object reference at soaptest6.pl line 50.

I dumped the hash %lead and it has a key 'type'.

this is recent CPAN code. $VERSION = '0.082';

am I missing something obvious?

Full Threads Newest First

Showing messages 1 through 2 of 2.

  • Re: create works but update errors
    2007-07-30 06:12:24  JanTheofel [View]

    I get the same error message. Did you find the mistake?
    • Re: create works but update errors
      2008-08-01 09:04:35  sb4oreilly [View]

      even i got the same error and i rewrote the code as follow and it worked
      $sfresult = $sforce->update('type','Lead',%lead);