8 votes
Accepted

frontdoor.jsp for Customer Portal user? How to authenticate a portal user with session id?

This discussion forum thread suggests that you can do this with https://<instance>.salesforce.com/secur/frontdoor.jsp?sid=<sessionId>&orgId=<orgId>&portalId=<portalId> ...
user avatar
  • 16.2k
7 votes
Accepted

Portal for users with no authentication

This is possible with force.com sites . With force.com sites you can build visualforce pages that can be accessed by an anonymous user . The other option is to configure a simple web to Lead form ...
user avatar
7 votes
Accepted

How can I delete a contact which was associated with a customer portal user?

Just to add to @John Thompson's answer, you can add the button that disables the customer user: This will remove the connection between the user and the contact, and mark the user as deleted. If you ...
user avatar
  • 4,759
6 votes

Customer Portal gets 404 error trying to display logo. Bug?

The image file logo180.png is obviously deleted or moved (or was never there). I found that this error also shows in our org as well if you you open developer tools and refresh the page. I did a ...
user avatar
6 votes
Accepted

Communities Self-Register Activation Link

I've done pretty much exactly what you describe before. Rather than using the inactive flag, I used a custom Boolean to represent that the user had not self-validated, and used this to deny access ...
user avatar
  • 11.1k
6 votes
Accepted

License Limit Exceeded Error while creating user

There is no solution to this since you have consumed all the license that were allocated for your org . Deactivate the existing users if you are testing your code . You can also purchase additional ...
user avatar
5 votes

How do I deactivate a Portal User in Apex Code?

This question was asked and last answered back in 2013. In 2021, it seems that attempting to update User.isActive in the same update operation that sets User.isPortalEnabled will actually cause the ...
user avatar
5 votes
Accepted

How To access Opportunity object over customer Portal

Customer Community users don't have permission to view Opportunities because their license doesn't allow it. The only way around this is to create a mirror object with Opportunities using a trigger to ...
user avatar
  • 3,840
5 votes

hybrid remote app with customer portal reset password issue

Since you're using a custom login screen, I'd also customize your forgot password screen to propagate that state back to the login screen. Pass it and return it as a startURL
user avatar
5 votes
Accepted

How to identify if underlying org has customer portal enabled?

You can query the Status of the Network object. If there's a community, there will be an Id. The Status will tell you whether it's Live, Down for Maint, or Under Construction. I believe you'll need to ...
user avatar
  • 40.4k
5 votes

Generic Error in Community site

You can easily catch the exception from debug logs Just go to generic exception page in the VF page code you will find line <apex:param value="{!$Site.ErrorMessage}"/> change that to <apex:...
user avatar
4 votes
Accepted

confusing field doesn't exist error from javascript remoting

I was able to figure it out FINALLY! I was inspecting the actual XHR request in Chrome dev tools. I noticed under ctx under the payload there was a ver property. I realized this corresponded to the ...
user avatar
  • 4,916
4 votes
Accepted

Report on Contacts with community users

You will create a Report on User Object where ContactId != '' .Please check the below screenshot If a Community User is created then a User record has a contactId populated to link the contact with ...
user avatar
4 votes
Accepted

Apex Test Data - Portal Users

First, you'll want to create your RunAs user who should be someone with the profile that has the permissions needed to create accounts and enable your contacts as portal users. Worst case, that can ...
user avatar
  • 40.4k
4 votes
Accepted

How to change the "User License" type for customer portal users using a script?

This Knowledge Article User license conversion when migrating from portal to communities covers the transitions that are simple: An administrator can change the license type and profile on the user ...
user avatar
  • 130k
4 votes
Accepted

<ui:outputText /> to display "Guest" if no user is Logged in?

I'm fairly certain that NULL is case sensitive. Try this: <aura:if isTrue="{!v.user != null}"> And it looks like the user is never null. If the user has not logged in, then they are a ...
user avatar
4 votes

Aura:If condition's strange functionality?

I would probably try to use the <aura:If> statement to conditionally SHOW fields rather than hide them. This way they won't appear and then disappear. Ie, show the desired fields to users who ...
user avatar
4 votes
Accepted

how to logout from lightning community

Please use below code to redirect to community login page : window.location.replace("<community-domain>/secur/logout.jsp?retUrl=<redirect-URL>"); Eg: window.location.replace("/...
user avatar
3 votes
Accepted

Custom errors using apex:pageMessages

I will not try to reproduce the excellent answer already provided by @JesseAltman, but I believe this will help you do whatever you need around your error messages. It goes over each messaging ...
user avatar
3 votes

Customer Portal gets 404 error trying to display logo. Bug?

According to this discussion on Salesforce Success Community, this is actually working as designed. It's somehow part of a malware detection scheme. Perhaps if logo180.png that's a sign an account has ...
user avatar
  • 2,022
3 votes

How to determine if Apex code is executing in an authenticated vs. unauthenticated environment (without a SOQL query)

Winter '15 introduced the Auth.CommunitiesUtil class which contains a isGuestUser() for determining if the user is a guest or not.
user avatar
3 votes
Accepted

" Error occurred while loading a Visualforce page " in Portal Site,

@SFDC_Igle you can try one thing. In standard exception Page you will find one line as shown below <apex:param value="{!error.messages}" /> which you should change to <apex:param value="{!...
user avatar
3 votes

What impact does the Account ID argument to Site.createPortalUser have?

In and of itself, the AccountId has no impact on the access rights of the User until permission sets or sharing rules are applied. The basic profile of a PortalUser isn't dependent on the AccountId. ...
user avatar
  • 40.4k
3 votes
Accepted

Show information on visualforce page only for certain profiles

it works when you use the global profile variable: rendered="{!$Profile.Name == 'Your Profile Name'}"
user avatar
  • 2,182
3 votes
Accepted

Invalid email address with an underscore

This is a known issue (4+ years old) in the platform - see Allow underscores "_" in email domain fields. Add your vote and comment but you will have use a workaround (e.g. alternate text field) for ...
user avatar
  • 130k
3 votes

How to share object records to customer community users?

If your sharing requirements cannot be met via customer community licence then you will need to move to customer community plus licenses.These have ability to share records via apex or sharing rule ...
user avatar
3 votes

How can I delete a contact which was associated with a customer portal user?

Once a User record is created in Salesforce it can't be deleted. This applies to all User license types, including Portal and Community Users. The reason User records can't be deleted almost ...
user avatar
3 votes
Accepted

How to detect if inside a Community in a self-registration page?

Please check site class it has method gettype which can give you the context from which you are running the code. Site.getType();
user avatar
  • 7,543
3 votes
Accepted

Allow Customer Portal users to add photos of themselves in My Settings?

you are confusing the "My Settings" page with "My Profile", which is used to control visibility settings. if they select my profile, users should be able to upload their photo:
user avatar
  • 19.3k
3 votes
Accepted

Lightning Component not able to reference needed fields

Based on the information you have provided: In "COMPONENT" I see aura:component implements="forceCommunity:availableForAllpageTypes" controller="AAA_ProfileController", but I don't see "...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible