hiratake55 / RForcecom

RForcecom provides the connection to Force.com and Salesforce.com from R
http://cran.r-project.org/web/packages/RForcecom/index.html
Other
49 stars 25 forks source link

Login problem using RForcecom Sanbox Environment #36

Open jugadupa opened 8 years ago

jugadupa commented 8 years ago

I tried to connect well: instanceURL <- "https://test.salesforce.com/" also instanceURL <- "https://cs26.salesforce.com/" too instanceURL <- "https://nn--test.cs26.my.salesforce.com/"

But it has not been possible, in the history login salesforce is no record of the call. You can connect to a sandbox environment for Rforce?

Regards Juan Gabriel

StevenMMortimer commented 8 years ago

@jugadupa Yes, you can connect to a testing environment via RForcecom. It will run exactly like connecting to a live environment. You might want to double check your password and security token match the username for your sandbox. It might be different from your live environment. Here is an example of connecting to a test environment from the package:

rforcecom.login(username='{my-username}', 
                password='{my-password}{my-security-token}', 
                loginURL='https://test.salesforce.com/')

I also notice you mentioned instanceURL, which might be the old notation to what package version you're using. It's worth double checking that as well

TonyWhiteSMS commented 8 years ago

Hello @ReportMort I am having this issue as well, currently the version is listed as 0.8, and when I try the above I get this error unused argument (loginURL = "https://test.salesforce.com/")

Looking at http://rforcecom.plavox.info/ it lists 0.8 as the latest.

Thanks Tony

TonyWhiteSMS commented 8 years ago

I have built from the GIT code, used these instructions http://kbroman.org/pkg_primer/pages/build.html

abeburnett commented 8 years ago

You actually don't need to build it manually. You can just use devtools to download and install the current version from git which should resolve your issues. Once you install devtools then you just do install_github...

Install devtools and use directions:

https://github.com/hadley/devtools/blob/master/README.md

Easy peasy!

On Wed, Mar 16, 2016, 20:54 TonyWhiteSMS notifications@github.com wrote:

I have built from the GIT code, used these instructions http://kbroman.org/pkg_primer/pages/build.html

— You are receiving this because you are subscribed to this thread.

Reply to this email directly or view it on GitHub https://github.com/hiratake55/RForcecom/issues/36#issuecomment-197681532

StevenMMortimer commented 8 years ago

Yeah, the install should be a one-liner. Below are 2 examples on how to install from Github:

# install from default branch
devtools::install_github('hiratake55/RForcecom')
# install from a particular branch
devtools::install_github('ReportMort/RForcecom', ref='metadata-api')

@TonyWhiteSMS as far as your original question about logging in, if you just run the command rforcecom.login without any arguments or parenthesis, then it will show you the function definition. You might want to use this to double check that whatever version of RForcecom you've got that it is showing loginURL as a usable parameter.