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
Nitin ParandeNitin Parande 

Custom Button URL to link to visualforce

I have a custom button which has a URL link which I construct in Formula Editor. 

In the formula field I give \apex\AAAAAA?id=YYYYYY     where AAAAAA is the VF Page Name. YYYYYYY is the id of the record.  This works fine for standard user but does  not work for Partner (Community) User.   I am trying to see how I can constrcut the URL which can work for both standard and community user by constructing the user accordingly based on the logged in user.

Any help is appreciated.
Harshit Garg 6Harshit Garg 6
Hi Nitin,

Please follow below link...Definitely, it will help you.

Link -

Harshit Garg