Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
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
  • 5,025
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

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
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
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
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
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
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
  • 136k
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
  • 556
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
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,292
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 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

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

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
  • 136k
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,821
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
  • 20.2k
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.6k
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

what is Customer portal in salesforce

First, you can no longer create a new "customer portal" in a Salesforce Org unless your org already has portals enabled. Portals have been deprecated and replaced by "Salesforce Communities" for ...
crmprogdev's user avatar
2 votes
Accepted

Which License is required for accessing Managed Package objects inside Customer Community

A managed package license and a customer community license are two distinct licenses. The former is a license that's issued by a Salesforce Partner (also referred to as an ISV) which has specific use ...
crmprogdev's user avatar
2 votes

Portal User can't see Contacts of Account they have access to

I think, sharing the accounts with Portal user won't give them access to related contact. Account - Contact are not exactly master-Detail relationship. (You can create a contact without Account). You ...
amidstCloud's user avatar
  • 2,827
2 votes

how to logout from lightning community

I spent some time to find a nice solution for custom logout. All you need to do is only fire event from the aura. The community has event listener in logoutHandler.js file. $A.get("e.force:...
Piotr Gajek's user avatar
  • 2,744
2 votes
Accepted

Community User - Access to records

There are couple of ways you can do this. Using Queues. Create Queues respective to Distributor Account and assign the Partner Users on that Account to the Queue. Using assignment rules, just assign ...
Jayant Das's user avatar
  • 30.6k
2 votes

Keep SFDC Session alive

SessionId or accesstoken in SF expire if there is inactivity for few minutes / hours based on your profile settings. You have 2 options In profile setting for the user, change the default Session ...
Pranay Jaiswal's user avatar
2 votes
Accepted

Can't get the value of "relatedto" when sending email through customer portal

The reason you are getting nothing for relatedToType="Contact" is because Contacts, Leads, and Users can't be used in relatedTo (equivalent to the WhatId) See Apex Developer Guide outbound Apex email ...
cropredy's user avatar
  • 71.7k

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