superfell / SoqlX

SoqlXplorer is an awesome tool for developers using the Salesforce.com platform.
https://pocketsoap.com/osx/soqlx/
Other
273 stars 54 forks source link

Need a way to specify API version when launching in via url scheme #72

Closed ckoppelman closed 3 years ago

ckoppelman commented 5 years ago

We have hit an annoying window -- a time between releases, when some sandboxes are on v44.0 and some on v45.0, and the production orgs are on v44.0. This happens in every release cycle.

In trying to test open soqlx://{domain}/sid/{sessionId}, on one of my v44.0 sandboxes, I have noticed that it's throwing an exception:

UNSUPPORTED_API_VERSION: Invalid Api version specified on URL

I looked into the code and it's using DEFAULT_API_VERSION in the code

It would be awesome if I could pass an API version on the url like soqlx://{domain}:{apiVersion}/sid/{sessionId} or soqlx://{domain}/v{apiVersion}/sid/{sessionId} or maybe most appropriately, soqlx://{domain}/sid/{sessionId}?apiVersion=v{apiVersion} so I can use this feature in future annoying windows.

superfell commented 5 years ago

The regular login process does an automatic API version downgrade in this scenario. Should make the same thing happen with this path as well.