Page 1 of 1

Appery - Salesforce.com Create Contact (401 Unauthorized) Error

Posted: Thu Jul 03, 2014 12:24 pm
by Emilio Taylor

Salesforce.com (App Testing)

  • Upon creating a Create Contact Page

  • I link a Contact Create (SF) Service

  • I edited the mapping for this Service to their respective Components

  • Upon Testing the App, I notice that entries I make to my form are not submitted to (SF)

  • When testing the Create Contact Service, I get the following message:

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

    How do I resolve?


Appery - Salesforce.com Create Contact (401 Unauthorized) Error

Posted: Thu Jul 03, 2014 3:00 pm
by Kateryna Grynko

Hi Emilio,

What session token do you pass? Could you please post a screenshot of Test tab?


Appery - Salesforce.com Create Contact (401 Unauthorized) Error

Posted: Fri Jul 04, 2014 12:44 am
by Emilio Taylor

Hello Kayta,

Looks like I crossed my sessions. I have a developer account, then a actual org I use for my company. When I logged into my main Org, then I lost the session for my Developer copy.

Here's how I resolved this:

  • Logging out of my main Org

  • Logged out of Appery.io

  • Logged back into Appery.io

  • Chose Create New Salesforce Services

  • Authenticate to Developer Copy of Salesforce Copy to retrieve the correct Session

    Thanks!
    Emilio


Appery - Salesforce.com Create Contact (401 Unauthorized) Error

Posted: Fri Jul 04, 2014 1:08 am
by Alena Prykhodko

Emilio, great. Thank you for sharing.