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

Can we login into different Portals from same login page?



  would you please suggest me which one is better way.


 I found two ways to achieve requirement.
   1. Creating two portals 1st one is for Customers and 2nd one is for Technicians.
   2. Creating two profiles for Customer and Technician but here is the problem Customer and Technicians will have the same tabs.
  those are
1.Installed Product((restrict for Technicians)
2.Sales Order(restrict for Technicians)   
3.Service Order
4.My Activities (restrict for Customers) 
 when Customer is login into Customer Portal I would like to show
 1.Installed Product
 2. Sales Order 
 3.Service Order
if Technician login into Customer Portal I would like to show only 
1.My Activities tab(default landing tab)[Web tab]
1st option suitable for my requirement but here I need confirm that Customer and Technician can login from the same login page and same URL or different. If it same that's great for me.
But I found two customer portal having 2 different URL. I would like to give only one login form from this Customer and Technician both should login.
Please suggest me a better way to achieve my requirement. If you have any queries or suggestions please let me know.
Any help is Appreciated.
Cloud CredenceCloud Credence



One workaround I can think of..


Have two Customer Portals, one for Custoemrs and one for Technicians.


Enable Sites(UnAuthenticated).


Have one VF page as a login page (that accepts user id and password).


In essence what they require to login into a customer portal or partner portal is


<input type="hidden" name="useSecure"
value="true"> <input
type="hidden" name="orgId" value="00Dd0000000hYii"> <input
type="hidden" name="portalId" value="060d0000000UQ7g"> <input
type="hidden" name="loginType"
value="3"> <input
type="hidden" name="action"


In your  case Portal Id will be different.


Using Javascript or by showing two different login areas in the same page (e.g Customers login and technician login in left and right side of the same page).

on clicking submit, submit with respective portal id.


Let me know , how this goes.