[SalesForce] URL to login and pre-populate more than one field

I need to launch SalesForce URLs from a non-SalesForce app to get things done. I can easily launch to login:

And once logged in, I can launch another URL to populate 3 fields.

Both of these work just fine. But I want to do both operations. I have found that I can use this to login and populate one field:

But when I try to do anymore than one field – only the first field is populated.

Is there a way to launch one URL that will login, redirect to a new Contact page and pre-populate more than 1 field?

Thanks – Scott

Best Answer

If you URL encode the start URL, then it will fill all fields. Note that you don't need to hard code the instance (na15.salesforce.com). A relative URL works just fine.


Note that there is a security risk with passing the username and password in the URL. Instead, your app should login to Salesforce, get a sessionid and then pass that and the retURL to frontdoor.jsp.

Related Topic