You need to sign in to do that
Don't have an account?
Nilesh Mane
How can I login in to Customer Portal on a button click from VF page???
Hi All,
Hope you are doing well....!!!!
I want to login in to my customer portal on a button click.
I am creating a customer portal user, through apex. On same vf page I have created a button 'Login As Portal User'.
After creating a portal user, we need to click on 'Login As Portal User' button to login in to Customer portal.
Any idea?
How can I login in to Customer Portal on a button click from VF page???
PLz help, its urgent.
Regards,
Nilesh.
Hi,
On the button click open the below link and pass the required parameter orgid in oid, portal user id in suportaluserid and portal id in suportalid.
servlet/servlet.su?oid=00D90000000L4fo&suportaluserid=00590000000KXqs&targetURL=%2Fhome%2Fhome.jsp&suportalid=060900000004rWR
Try the below code sniipet as reference:
<apex:page >
<Apex:form >
<apex:commandLink target="_blank" action="/servlet/servlet.su?oid=00D90000000L4fo&suportaluserid=00590000000KXqs&targetURL=%2Fhome%2Fhome.jsp&suportalid=060900000004rWR" value="open portal" />
</Apex:form>
</apex:page>
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
All Answers
Hi,
On the button click open the below link and pass the required parameter orgid in oid, portal user id in suportaluserid and portal id in suportalid.
servlet/servlet.su?oid=00D90000000L4fo&suportaluserid=00590000000KXqs&targetURL=%2Fhome%2Fhome.jsp&suportalid=060900000004rWR
Try the below code sniipet as reference:
<apex:page >
<Apex:form >
<apex:commandLink target="_blank" action="/servlet/servlet.su?oid=00D90000000L4fo&suportaluserid=00590000000KXqs&targetURL=%2Fhome%2Fhome.jsp&suportalid=060900000004rWR" value="open portal" />
</Apex:form>
</apex:page>
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Hello Navatar_DbSup,
Thanks a lot.
Its working fine.
Regards,
Nilesh.