Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
13

Salesforce support engineer got back to me and he identified the problem as an error in the Communities Implementation Guide. Here are the changes he suggested for steps # 7 and 15 in the implementation guide(I have implemented these changes and it works): Step 7: Add the following code: public PageReference forwardTocustomStartPage() { return new ...


10

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-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:partner.soap.sforce.com"> <SOAP-ENV:Header> <ns1:LoginScopeHeader> <...


8

After applying custom community log in page you should change the Active site homepage to your custom visualforce page. By going to Customize | Manage Communities > Force.com Site > Edit and change Active Site homepage to your custom vf page. You should provide access to communities to that page also.


8

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 ChangePassword page. Also it is suggested here that The Community Builder is like the Lightning App Builder, except that it’s used to design and build ...


7

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 StreamingAPI to user xxxxxxx. The user license doesn't allow the permission: Read Push Topics"


7

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 pages) as well as for the user profile. Then your URL should look something like this: `{!URLFOR($Site.BaseCustomUrl+'/'+SUBSTITUTE($Site.Prefix, '/', '')+'/...


7

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:availableForAllPageTypes"> <aura:attribute name="greeting" type="String" default="Hello" /> <aura:attribute name="subject" type="String" default="World" /> <div ...


7

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 your SFDC instance ,where from your website you can capture the leads and have an internal process for creating community users .


6

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 customers that have those licenses until they expire. However, there's a new type of license called Platform Portal, whose description starts off as "Platform ...


6

Yes I have configured a community and then used the force.com site with VF pages for customization. The Site does have a default profile as usual. You can see the name of the guest user under "Assigned users". So this user does exist. I just tried to add this user to the debug logs but could not find it when searching for it. I never had a need to add this ...


6

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.PersonContactId ;


6

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 the UserRoleId field to a non-null value. Based on the below, you could in theory write a class that can insert a User with a UserRoleId if you set the API ...


6

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 chain, most of the time you will see it with its full path. The interesting thing with this is that if you already have the root certificate on your computer and ...


6

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 language is same as that of the custom label language. If we change the language of user to some other language than that of the custom label, we ...


5

In general, a landing page should direct you to your start URL or landing page automatically if the user has an active session or to the login page if the user is not authenticated yet. Your forwardToCustomAuthPage() method is always returning your login page, which is the behavior you're observing. Instead of always returning the login page, try adding some ...


5

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 this template You can configure the layout of detail pages as per your preferences by going to Settings -> Community Builder -> Page Management This has ...


5

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 u = [select ContactId,Email,FirstName,LastName,Title from User where Id=:userId]; if (u!=null &...


5

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 highstock and highmaps). https://login.salesforce.com/packaging/installPackage.apexp?p0=04tj0000001udTg The example shows multiple instances of c:highChartDemo and ...


5

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 new Summer 16 you will see some performance increase. Do you use Custom lightning components for your community? You can use new lightning inspector to find our ...


5

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 password reset link by using both the robots.txt and meta tags on the html pages. I have not been able to get clarification on if I need to customize these when ...


5

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(reload itself, seems dynamic refresh) based on time interval. Thanks to Lightning Component as well. Lightning Component: <aura:component implements="...


5

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 because of likely invalid access. So the solution was to (a) ensure that the VF page was accessible to the user's profile (which it was already), (b) add the VF ...


5

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 attempt to address your questions surrounding Lightning vs combinations of Angular and React. Lighting, Angular and React all have their advantages and are ...


4

After much sanity check from my colleague, we concluded that it was either an error unique to us or the documentation was misleading us since we have evrything set up as suggested in the communities implementation guide. My colleague came up with the bright idea of re-directing to our communities apex homepage from whatever page that salesforce directs us to ...


4

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 Custom URL. You can setup a Custom URL for your domain by following the instructions here and then check the above option.


4

So I logged this as a case with SF support and they have confirmed it as a bug. I know its hard to believe but we have no control for the Salesforce generated URL for the second. The URL is available and work for the first time reset , but second it become unknown and expired for the Salesforce, which makes a conflict condition where to land ...


4

I had the same issue and i got the same feedback from the salesforce support team. At the same time i found a workaround to this limitation. If your community is full branded including the login, change password, forgot password, etc. pages you can do the following: Configure an authentication provider in Salesforce (OpenID type) Set the Authorize Endpoint ...


4

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 u WHERE u.Id =: userId AND u.IsActive =: true];


4

I had to get on a call with Salesforce Engineer to really understand this .This is what we concluded We can create a design file for the lightning components and use the same merge values as other components use on the page .In this case i can simple go to the Search detail page and check the standard context variable In the above screenshot I have ...


4

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 would be available in the ApexPages.getMessages() collection and you could convert them into some other format for your response (e.g. an error string response ...


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