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
chriseustacechriseustace 

Fields for Customer Portal Trigger

Hello all,

Is there a specific field(s) that will identify a contact as a customer portal user?  What I need to have happen is have a custom object automatically change ownership related to the contact if they are set as a portal user.  Any ideas?

Anand@SAASAnand@SAAS

Once a Contact is enabled as Portal user (Customer or Partner portal), the correspond user record has a reference to the contact. If you look for "ContactId" on the User that corresponds to the Contact Id that should tell you if the Contact record is associated with a portal or not. For more info, look at http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_user.htm and search for "ContactId".