Emilio Taylor
Posts: 0
Joined: Thu Jul 03, 2014 11:33 am

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

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

    }

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

Emilio,

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

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

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

Hello!

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

Emilio Taylor
Posts: 0
Joined: Thu Jul 03, 2014 11:33 am

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

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

Return to “Issues”