• vswamidass
  • NEWBIE
  • 40 Points
  • Member since 2009

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 6
    Replies

Hi,

 

I know we can use parameter un and pw to login to salesforce.com website

https://login.salesforce.com/?un=username&pw=password

 

My question is can we login to salesforce.com website without using username and password,

but using a sessionid and endpoint url from api login, so it would like

https://login.salesforce.com/?url=xxx&sid=yyy

 

Thanks.

 

  • June 07, 2010
  • Like
  • 0

Hi,

I have the following method that calls setPassword: 

 

    public PageReference setPassword() {

        results = '';

        isActionSuccessful = false;

        ApexPages.Message myMsg;

            

        try {

       for (User u : getSelectedSobjects()) {

          System.setPassword(u.id,passwordString); 

       }

            results = 'Users updated successfully.';

            isActionSuccessful = true;

    myMsg = new ApexPages.Message(ApexPages.Severity.CONFIRM, results);        

        } catch (Exception e) {      

            results = e.getMessage();

    myMsg = new ApexPages.Message(ApexPages.Severity.FATAL, 'Error updating users: ' + results);            

        }      

   

        PageReference p = Page.SUMOAction;        

        return p;      

        

    }     

 

However, if the password violates the Org Password Policy, the resulting INVALID_NEW_PASSWORD Exception is not caught - I just see "An unexpected error has occurred. Your development organization has been notified." on the screen.  

Why is INVALID_NEW_PASSWORD not catchable?

Hi,

 

I have one .csv file on Server, which has few fields. I simply want to insert that .csv file data to SFDc twice in a week.

 

Please let me know how can i achieve this functionality. And that is ofcourse should be very practical.

 

 

Thanks

  • September 21, 2010
  • Like
  • 0

I am able to run the data loader from command line. I want to create a .bat file to schedule.

 

thisis the .bat file which I have created but when I am running its throwing errors. I think the process.name is wrong I am putting the bean id="csvMFTVOMData" over there which is also my property name.

 

Can someone help me out with this..

 

@ECHO OFF

 

SET YourDataLoaderDirectory="Y:\salesforce.com\Apex Data Loader 18.0"

SET CONFIGPATH=%YourDataLoaderDirectory%\conf

SET javaCmd=%YourDataLoaderDirectory%\_jvm\bin\java.exe

SET jarFile=%YourDataLoaderDirectory%\DataLoader.jar

 

 

 

%javaCmd% -cp %jarFile% -Dsalesforce.config.dir=%CONFIGPATH% com.salesforce.dataloader.process.ProcessRunner process.name=csvMFTVOMData

 

 

 

@ECHO ON

 

 

 

Hi,

 

I know we can use parameter un and pw to login to salesforce.com website

https://login.salesforce.com/?un=username&pw=password

 

My question is can we login to salesforce.com website without using username and password,

but using a sessionid and endpoint url from api login, so it would like

https://login.salesforce.com/?url=xxx&sid=yyy

 

Thanks.

 

  • June 07, 2010
  • Like
  • 0

Hi,

 

Does anybody know how to install data loader on UNIX.

 

Thanks

Is it possible to run apex datalader from unix platfom?

 

I have a requirement to schedule a dataloader batch job in a unix platform. How can it be done? 

 

Any solutions will be appreciated.