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

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

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

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

Hi Emilio,

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

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

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

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

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

Emilio, great. Thank you for sharing.

Return to “Issues”