function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
tzuvytzuvy 

Apex page login and pass variable all in the same url

Hi all,

 

I've created a page with a controller that queries a variable from an url and gives back the account name containing that value as a field. For example

 

salesforce.com/apex/mypage?contactname=raul will bring me the account that has a contact named raul.

 

Everything works fine, now I need to be able to run that page automatically for a process and I need to open this apex page and pass the variable with a single call.

 

I've tried doing the following

 

salesforce.com/apex/mypage?contactname=raul&pw=MyPassWord&un=MyUserName but this doesn't work and I'm prompted for login.

 

Is there a way to login and pass the variables to a page all sending one url?

 

Thanks

 

Tzuvy

gv007gv007

Create a button Call the ul on on click event.

tzuvytzuvy

I will ask the question differently:

 

While using this function 

 

ApexPages.currentPage().getParameters().get('param')

 

I can get a paramater in the url of the page wwww.salesforce.com/apex/mypage?some=hello&param=value

 

Is there a way to change the delimiter for the get parameters function?

 

I want the url to be wwww.salesforce.com/apex/mypage?some=hello?param=value

and not wwww.salesforce.com/apex/mypage?some=hello&param=value

 

Is there a way to define the delimiter with which the params are separated using this function?

 

Thanks