8 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 ...
Itai Shmida's user avatar
  • 4,995
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 ...
Mohith Shrivastava's user avatar
7 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("/...
Nandan N's user avatar
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 ...
Mohith Shrivastava's user avatar
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:...
Tushar Sharma's 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 ...
crmprogdev's user avatar
  • 40.9k
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 ...
Todd Gill's user avatar
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 ...
Mohith Shrivastava's 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 ...
crmprogdev's user avatar
  • 40.9k
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 ...
Keith C's user avatar
  • 135k
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 ...
Caspar Harmer's 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 ...
Caspar Harmer's user avatar
4 votes
Accepted

How to change the Logo of the prebuilt themes chosen in Community Cloud?

You can change your logo in Theme > Images > Company logo in the community builder
AH3's user avatar
  • 546
4 votes
Accepted

Portal user cannot edit own account and cannot create new contacts (portal users cannot own partner accounts)

The same decision (remember to add the formula to the flow): And now you set again the AccountId and change the owner to be the same of the Account: Remember to activate the flow. Now your Portal ...
José Ureña's user avatar
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 ...
Mohith Shrivastava's user avatar
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 ...
Keith C's user avatar
  • 135k
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'}"
Andree Wille's user avatar
  • 2,282
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. ...
crmprogdev's user avatar
  • 40.9k
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.
TheSFDCTower's 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 ...
John Thompson's user avatar
3 votes

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

Through code you can also acheive this. In developer console execute below code: User u=[select id,Name, IsPortalEnabled from user where id='xyz' limit 1]; u.IsPortalEnabled=false; update u;
Gaurav singh's 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();
RedDevil's user avatar
  • 7,775
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:
glls's user avatar
  • 20k
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 "...
Jayant Das's user avatar
  • 30.3k
3 votes
Accepted

Community Portal: Resetting the window.ShadowRoot on windows.onload

Well, you are basically punching a hole through the Shadow DOM semantics that LWC provides for you. LWC's native Shadow DOM parity is a work-in-progress, but I think it's close enough that you might ...
Eugene Kashida's user avatar
2 votes

How to increase Users in developer org with Customer Portal User Licenses

Developer Orgs come with a limited number of licences purposely and can't be increased without paying for a "more premium" organisation. This link will show you the capabilities of a Developer Org but ...
Dan Jones's user avatar
  • 7,147
2 votes

custom sites domain name redirecting to salesforce login screen?

Here may be solution, I faced the same problem but I was trying to setup it in sandbox environment. http://developer.force.com/cookbook/recipe/registering-a-custom-domain-for-your-force-com-site This ...
Vladyslav K's user avatar
  • 2,713
2 votes

Visualforce site working on HTTP but not on HTTPS

We have found some session issues when switching back and forth from http and https. So I suggest go all the way either way. Force https: Check Require Secure Connections (HTTPS) on the Sites ...
Esteban's user avatar
  • 21
2 votes
Accepted

Store last generated number and generate +1 based on that number on the portal.

You can create a custom setting (or an object in this case your object will need only 1 record that will contain that number) and store that number there. Then once it is changed just update that ...
Oles Malkov's user avatar
  • 2,161
2 votes
Accepted

Communities - sharing options

You're correct that the Customer Community Plus license is very different than the standard Customer Community and Partner Community licenses when it comes to their sharing models. You will still have ...
crmprogdev's user avatar
  • 40.9k

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