1

I am trying to prepopulate my url parameters on the visualforce page that is in the console application

This is the url i am trying to use

https://my.salesforce.com/console?tsid=consoleappid&Lastname=Jackson&phone=xxxxxxxx

Apex code:

urllastname = ApexPages.currentPage().getParameters().get('Lastname');
urlphonenumber = ApexPages.currentPage().getParameters().get('phone');

Visualforce Page

<apex:inputText styleClass="form-control" value="{!urlphonenumber}" /> 
<apex:inputText styleClass="form-control" value="{!urllastname}" /> 

When i am trying to use this URL it works fine

https://my.salesforce.com/apex/myvisualforcepage?Lastname=Jackson&phone=xxxxxx

But i want it to prepopulate in Console App.

Anyhelp would be appreciated!

  • You need to take the URL string and perform a logic for parsing – Santanu Boral Oct 31 '18 at 18:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.