• stang
  • NEWBIE
  • 5 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
My perl code login works fine as long as I specify any Salesforce version up to version 6.  However if I specify version 7 or greater, I get the error "The userid/password combination used is not valid".    In other words, login works if I specify this:        
   $request = new HTTP::Request ('POST', 'https://na1.salesforce.com/services/Soap/c/6.0');
while login fails if I specify this:
   $request = new HTTP::Request ('POST', 'https://na1.salesforce.com/services/Soap/c/7.0');

Login XML:

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">
    <soapenv:Body>
        <urn:login>
            <urn:username>$USERNAME</urn:username>
            <urnassword>$PASSWORD</urnassword>
        </urn:login>
    </soapenv:Body>
</soapenv:Envelope>

Header info:

    $request->header('User-Agent' => 'Mozilla/4.0');
    $request->header('Content_Type' => 'text/xml; charset=utf-8');
    $request->header('Host' => 'na1.salesforce.com');
    $request->header('SOAPAction' => "");
    $request->header('Expect' => "100-continue");

Has anyone seen this, and if so, how was it solved?

Thanks
  • February 05, 2008
  • Like
  • 0

I have a requirement to code an Apex Trigger that fires with a CaseComment changes and SalesForce Premier Support says this is possible once I learn the tricks so I am here asking about those tricks.

 

Thanks in advance for the help.

Maybe I'm missing the obvious here, but I can't figure out how to deactivate a trigger in a production environment. I created a simple trigger in the sandbox, tested and deployed it to production. Everything works fine and the trigger works as expected in production. However now I would like to deactivate and/or undeploy it from production. In the sandbox I can edit the trigger and uncheck the IsActive field, but I can't edit the trigger in production (I am the system administrator) because there is no Edit link.

I tried deactivating in the sandbox and then redeploying to production, but that didn't work either. Do I need to write a deployment script, access the metadata, use Ant? Without the ability to roll back triggers from production, I can't use Apex. What am I missing? I searched all the documentation and this forum and didn't find anything other than references to the UI checkbox, which doesn't exist in production.

Mark

Message Edited by MarkL on 02-21-2008 09:48 AM