Page 1 of 1

Salesforce Service Update (Not Working), Read (Working) - Contacts Object

Posted: Wed Jul 09, 2014 6:56 pm
by Emilio Taylor

Salesforce (Update) Services

  • Used Pre-Configured Salesforce.com Services for Contact Record Updates

  • Mapped ID "local variable"to ID within Mapping

  • On Test, and Update, receive the following error:

    {
    "status":"401 Unauthorized",
    "url":"https://naXYX.salesforce.com/services...",
    "response":[
    {
    "message":"Session expired or invalid",
    "errorCode":"INVALID_SESSION_ID"
    }
    ]
    }

  • However for Contact Lookup, it works successfully, and I'm able to retrieve records:

    {
    "attributes":{
    "type":"Contact",
    "url":"/services/data/v30.0/sobjects/Contact/003A000001R5f5mIAB"
    },
    "Id":"003A000001R5f5mIAB",
    "IsDeleted":false,
    "MasterRecordId":null,
    "AccountId":null,
    "LastName":"Miller",

    ... etc

    }


Salesforce Service Update (Not Working), Read (Working) - Contacts Object

Posted: Wed Jul 09, 2014 7:22 pm
by Evgene Karachevtsev

Hello Emilio,

Please compare the settings of both services, settings of request parameters and mapping of request parameters.
If you won't find anything please provide us with these screenshots


Salesforce Service Update (Not Working), Read (Working) - Contacts Object

Posted: Wed Jul 09, 2014 8:04 pm
by Evgene Karachevtsev

Emilio,

Could you please provide us with screenshot of tab Request of both services?


Salesforce Service Update (Not Working), Read (Working) - Contacts Object

Posted: Wed Jul 09, 2014 8:10 pm
by Emilio Taylor

Ok. Screenshots sent. Thanks!


Salesforce Service Update (Not Working), Read (Working) - Contacts Object

Posted: Wed Jul 09, 2014 10:44 pm
by obullei

Hello!

On the first screenshot Authorization parameter is marked as Header, on the second one is not. Perhaps this is the reason.


Salesforce Service Update (Not Working), Read (Working) - Contacts Object

Posted: Thu Jul 10, 2014 11:27 am
by Emilio Taylor

Thanks Arina!

That was exactly the case. I updated this, and was able to update my records properly!

The Appery.io support has been the best in the business, and I look forward to continuing our efforts together

-Emilio