Access salesforce sandbox data from developer edition account app

Viewed 16

I have an requirement where I need to fetch the sandbox data using an app created in a developer edition account. I have authorize app on the sandbox account using below link.

https://test.salesforce.com/services/oauth2/authorize?client_id={developer_account_app_client_id}&redirect_uri=https://login.salesforce.com/services/oauth2/success&response_type=code

This url ask sandbox user to allow access. After allowing access, api call failed with below error.

java.lang.RuntimeException: RuntimeException: HTTP status: 400 - Bad Request message: {"error":"invalid_grant","error_description":"user hasn't approved this consumer"}

I am using Talend studio for this and below is the configuration.

Salesforce connection

0 Answers
Related