12 votes
Accepted

Customer Community login using REST API

Since community usernames are not globally unique, you need to use SOAP login with LoginScopeHeader to identify the org: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-...
user avatar
  • 16.2k
9 votes
Accepted

Lightning Community, can i make change password Lightning Page, not VF?

Lightning framework is evolving and Salesforce adds new features in each release. I see that documentation suggest that you might use Lightning Community Builder to use Lightning Components to modify ...
user avatar
  • 13.2k
8 votes
Accepted

Community Password Reset link expiring when using forgotPassword() method but not if using Reset Password button on the User record

Here is what I have learned from the SFDC Success Community and the product managers there. SFDC has been making changes that are supposed to help with preventing email scanners from following a ...
user avatar
  • 802
8 votes
Accepted

Creating a Community User via Apex from a Contact

I think you're looking in the wrong spot. The role that needs to exist is on the owner of the account record, not directly on the community user. We have a workflow that forces all of our contacts/...
user avatar
  • 9,063
7 votes
Accepted

Customer Community URL stripped of Community Name

You don't need /apex/ when you want to expose the page in the community. First, make sure your page is available for the community (Setup -> Develop -> Sites -> Your Community -> Site Visualforce ...
user avatar
7 votes
Accepted

Can a Customer Community user access PushTopics for Streaming API?

You cannot give community users access to the Push Topic object. it is not available on profiles and if you try to assign it via permission sets, you get the error "Can't assign permission set ...
user avatar
  • 989
7 votes

'INSUFFICIENT_ACCESS: portal user email settings are not available' error on System.setPassword

The issue I ran into was that even though I had the right profiles assigned to the community, I had not yet published the community.
user avatar
7 votes
Accepted

Lightning components in community builder

Please check the latest documentation always when working on new features For component to be available in community use the below <aura:component implements="forceCommunity:...
user avatar
7 votes
Accepted

URL Masking our site.force.com URL with our Corporate Branded URL?

Alright, so based off the comment exchange we had, I'm going to recommend a little guide to the SSL Chains as they work when trying to import them on a custom domain. So when you look at the cert ...
user avatar
  • 2,063
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 to share files uploaded in "Files" related list to Community Users

Files uploaded via this related list will only be visible to internal users, and this field is not editable. One thing you can do is post the file to the record via the Chatter publisher, and ...
user avatar
7 votes

iframe'd vf page fails in Lightning component in Community page

Answering my own question, in case it's useful to someone in the future. It turns out that the iframe issue was a red herring: the key point was the code 302 in the URL, which indicated a redirect ...
user avatar
6 votes
Accepted

Authenticated Website licenses obsolete?

The User Licenses Overview no longer lists the license type, which may be evidence that they are indeed discontinued. Traditionally, license types that are discontinued are still available to current ...
user avatar
  • 430k
6 votes
Accepted

How to enable customer community users via apex

You can create Customer Community User programmatically using apex by assigning Customer Community Profile and set ContactId of the user to account.PersonContactId; newUser.ContactId = account....
user avatar
6 votes

how to query for contact of a customer portal user or community user

There is no User.Contact field, instead you have to user User.ContactId userId = System.currentPagereference().getParameters().get('uId'); User u = [SELECT u.Id,u.ContactId,u.IsActive FROM ...
user avatar
6 votes
Accepted

Can I get Community ID without ConnectAPI?

[SELECT id, name FROM Network] from the SObject api, thanks to Lacey Snr and this thread.
user avatar
  • 3,652
6 votes
Accepted

Customer Community Plus User Cannot Add Other User

Explanation Take a look at sObjects That Cannot Be Used Together in DML Operations. It is not your call to UserInfo.getUserRoleId() that is causing the error. You get the error because you are setting ...
user avatar
  • 142k
6 votes
Accepted

Can't retrieve custom labels from community since Winter 17 Release

I've contacted Salesforce support and here is what I got so far : I have investigated and replicated this issue on my Winter'17 Dev Org. I found that the custom label displays properly if the user ...
user avatar
5 votes
Accepted

Image not visible when viewing from the Community View

Use following code in your formula field. IMAGE(LEFT($Api.Partner_Server_URL_260, FIND( '/services',$Api.Partner_Server_URL_260))++"resource/. imgae
user avatar
5 votes

Is It possible to configure the width of pages developed using napili temlate in communities?

The detail pages have the full width when using Napili template. You can refer to the Community Templates Guide - Chapter Display Record Details in Your Community. An example of a detail page using ...
user avatar
5 votes
Accepted

Update Contact record with changes to Customer Community User record

It should work but u need to remove test method and put it in separate class. Class global class UpdateContactFromCommunityUser { @future public static void updateContacts(String userId) {...
user avatar
  • 13.3k
5 votes
Accepted

Site.changePassword returns null when called using javascript remoting

The methods of the Site class are designed to work from Visualforce and within a Site so it is possible that the call can't be made to work in your situation. If the context was Visualforce, errors ...
user avatar
  • 129k
5 votes
Accepted

Error #16 loading Highcharts with Lightning Components

I uploaded a simple example of the correct way to use Highstock with LC - their instructions about how to load both Highcharts and Highmaps seems to be confusing (the section about loading both ...
user avatar
  • 9,974
5 votes

Can anything be done to improve the speed of a Salesforce Communities site?

The performance issues can be mitigated via below: Raise a case with support and push hard to put your community on a cache. Caching will improve speed. Have you moved to new templates? Moving to a ...
user avatar
5 votes
Accepted

Relationship Fields not Accessible on reports for Partner Community User

When the org wide sharing setting for an object is set to Public Read/ Write, it does not allow reports for the object to be viewed via the partner portal for security reasons. The workaround for ...
user avatar
5 votes

Auto-refresh Napili Community's standard page once in every five minutes?

Alright, with the guidance from @Mohith, I was able to find a work around for my issue. Here is what I made changes to his code which reloads the complete page, rather refresh the part of the page(...
user avatar
  • 1,490
5 votes
Accepted

Upload a file using lightning:fileUpload from a `Customer Community` user license

As for your original question: Can I use the lightning:fileUpload component with a Customer Community user? The answer is - Yes, you can use lightning:fileUpload component in Communities. As for ...
user avatar
  • 28.9k
5 votes
Accepted

Does scrollTo() have a "behavior" attribute like window.scroll()?

scrollTo(target, top, left) isn't a valid set of parameters for scrollTo, so presumably you're using a custom function. The way you'd do this using just standard JavaScript/Lightning would look like ...
user avatar
  • 430k
5 votes

architectural considerations + public facing sites

You have asked many questions making your question too broad for our forum's typical Q&A style. I would recommend you break these up into separate questions and repost them. With that said, I will ...
user avatar
  • 40.3k
4 votes

SalesForce community CNAME record

Yes, you do need to enable the 'Site Primary Custom URL' If you want to set a preferred custom URL for authenticated pages and emails that links back to the site or community, then select Site Primary ...
user avatar

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