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

Converting Custom button into Vfpage.

Hi Everyone,

i'm trying to convert custom button into vf page.
my scenario is, i  have a custom button where we are invoking flows using javacript.code looks like below. (/flow/Enable_SLink_Access &varContactId={!Contact.Id} &retURL=/{!Contact.Id}).
here we are passig some values in the URL.

Now i creating a  custom button where i'm using vf page as content resource.when i click on that button i need to invoke the above flow with same paramaters.. can someone help how to achieve this/ any alternate soluation for this.(if anything can be done flow level that is fine.).very urgent..:)

Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Rahul,

Thanks for the Response.
My problem is not converting the Javascript button. I want call the flow from vf page/controller with some parameters.
Please check the below flow URL for the details.
(/flow/Enable_SLink_Access &varContactId={!Contact.Id} &retURL=/{!Contact.Id}).