cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Synopsis

we're trying to create a Powershell connector between our beacon server and a Salesforce environment.

After several issues while trying to gather the refresh token ("Invalid JSON Primitive" error, we had to use a third-party program to obtain it) or trying to establish the connection (powershell 5.0 is actually requested whereas 3.0 is indicated in your official procedure), we now have the following error message (please see joined screenshot for details) :

"Unable to retrieve Salesforce API version"

Could you please tell us what URL is supposed to be written in the "Salesforce URL" field? Or is ther something we missed somewhere else?

We try with several URLs with http or https, but nothing worked.

Thank you in advance for your help


Discussion

The cause is the salesforce URL needs to contain your companies personal access address, for example "https://mycompanyname.salesforce.com".

If there is multi factor authentication used the URL needs to contain the authentication provider URL.

the issue was actually caused by the integration environment of Salesforce and by the UAT environment of FNMS (both were generating errors).
We finally decided to perform the test with production Salesforce and production FNMS, and all worked well (no JSON primitive, powershell or API version errors)
Was this article helpful? Yes No
0% helpful (0/1)
Version history
Last update:
‎Nov 30, 2018 12:18 PM
Updated by: