New answers tagged

0

You will not get the announcement record because the- announcement has a relation to feed item which is required field on the announcement object. So, once feed item gets inserted then only announcement records will get inserted. Understand the whole process with this: Creating a group announcement is a three-step process. Use the FeedItem object to create ...


1

For community users, you need to use Site methods: createExternalUser(...) (or createPersonAccountPortalUser(...) if you're using Person Accounts) and login(..). System.setPassword(...) is intentionally limited since it operates at the baseline org level. Site methods have fewer restrictions because they're sandboxed by the community.


0

Either upload the external Stylesheet as static Resource and load it via provided Methods as described in the documentation or add the link tag via community head markup as described in the sfdc help


0

For those looking we ended up creating a custom lightning component to handle this. The component basically allows users to look up other users at their org and add them to the case as Case CCs which are stored in a separate child object. We then created a flow to send the notifications to these contacts whenever there is a notification triggered from the ...


0

You have to create a profile with a User Licence "Customer Community Login" and then you will be able to select that template :) Then, add the profile to the "Members" section to let them access to your community.


0

You'll have to create a custom "wrapper" component for the feed component that can communicate with your other custom component. In the example below we're using the ltng:selectSObject event over creating our own custom event, since all we need to communicate is a record ID, which is what this standard event type provides. <aura:component implements="...


0

Zoomple can be integrated as other JS libraries. There is some issue in image referencing in libraries otherwise it is working as expected. Steps to integrate: Add all js file and images as zip in static resource. Create lighting component using this static resource Code: ZoomComponent.cmp <aura:component > <ltng:require styles="{!...


2

I'm afraid not. However, you can hover over a calendar record and see additional information. You can even change which fields appear there and include your text field. To customize it, go to Setup->Object Manager ->Event -> Compact Layouts and edit the System Default record or create a new one.


0

I've also had this issue erroneously and it's been resolved with the steps below. May help somebody: In the source sandbox, in Community Administration, rename the community to be something completely different to what it is now In the source sandbox, in Community Administration, rename the community to be the proper/desired name again In the destination ...


0

FeedItem represents an entry in the feed, such as changes in a record feed, including text posts, link posts, and content posts. This object is available in API version 21.0 and later. This object replaces FeedPost. It is not limited to any Object. When you do a post in group, you can see it by querying on both Feeditem and CollaborationGroupFeed object. ...


2

These are the "describe" calls. There's two basic calls. Describe Global /services/data/v45.0/sobjects/ Lists all types of objects you have access to, and various properties (such as user permissions and certain REST URLs). Describe sObject /services/data/v45.0/sobjects/[ObjectName]/describe Describes fields, record types, related children, and other ...


6

GitHub Desktop is a distribution of Git that comes with a graphical user interface. It provides much of the same functionality as command-line Git, but if you wish to use this product to complete Trailhead modules, you'll need to translate the commands provided for use in the CLI into actions in the GitHub Desktop UI. GitHub provides instructions on how to ...


2

Salesforce doesn't support Group BY or HAVING in the inner query. So, you need to create 2 separate queries as follows: List<Id> acctIds = [SELECT AccountId FROM Optin GROUP BY AccountId HAVING COUNT (Id) > 1]; List<AggregateResult> results = [SELECT count(Id) ...


0

To display picklist values in formula field we should use Text(pick list field)..!


0

Hi This is occurred due to sales force patch update (Version 11.1) .They are rolling back this patch , Now it is working.If it isn't working please raise sales force case


2

It looks to have been a Salesforce error. Mine was having the issue but is working again.


2

You need to add the error to a record in Trigger.old or Trigger.oldMap in order to prevent deletion. You can write your code like this: trigger delAccountWithoutOpportunity on Account (before delete) { Map<Id, Account> accounts = new Map<Id, Account>([ SELECT Id FROM Account WHERE AND Id IN (SELECT AccountId FROM Opportunity WHERE ...


0

You can create try with creating custom app launcher using lightning component. Step1. Get Application menu items using below SOQL. Select Id,Type,ApplicationId,Name,Label,Description,IconUrl,StartUrl,InfoUrl, IsAccessible,IsVisible,LogoUrl,SortOrder,MobileDeviceType from AppMenuItem where IsAccessible=true AND Type='TabSet' order by Name ASC Step2. ...


1

FuelSDK is not actively maintained and updated. I am unsure when the last update has been made - it certainly does not have the functionality you desire built in. The code base is downloadable, tho, so you can incorporate it into your application and make the changes you need - I have had to modify it quite a bit to meet my own needs. Edit: As a more ...


2

Community will be visible as App only if your profile is added as member of community. Simply add desired profile as member: Setup -- communities -- workspaces -- adminstration -- member - (add your profile).


1

Go to the Communities Administration and add your profile as a member for the community.


3

The Object viewer UI does not show actual API Names for certian fields on certain standard object. Lead being one of them, If you want to see actual API names, Open Developer Console->Open -> Lead.obj , it displays a table for APINames of the field that you can use in your code. A field has 2 main Attributes, 1 Label , and 1 API Name. Label can have ...


2

If the question was if the LWC Framework provide an utility - then no not that i am aware of. Which means you can use every js snippet you will find somewhere in the web like parameters = {}; connectedCallback() { this.parameters = this.getQueryParameters(); console.log(this.parameters); } getQueryParameters() { ...


1

Here is the answer I found after numerous conversations with a generous assortment of consultants. Community users cannot access the AJAX Toolkit, period. (Though the linked discussion is elderly, it is apparently still a legitimate limitation of Communities.) That hacky UserContext hack that you see elsewhere on the web doesn't work consistently, if at ...


0

I ran into this issue today. Your component must have action.setStorable() to enable caching of your results so that they can be used the next time. All you have to do is test by commenting out this line of code in your lightning component. Test now in IE 11. Don't forget to empty your IE11 cache before you test it.


0

I found whats wrong here, There is a trigger which insert standard price book entry on product insert and I also insert standard price book entry in test class hence error : duplicate value


1

If you can assign the users of this specific partner to a unique profile, then you can use the OOTB profile feature that allows restricting login by IP. Without a profile to use as your decision point, your fallback option is a custom login flow. The Conditional Two–Factor login flow sample provided by Salesforce shows how you can make a decision based on an ...


0

This was due to the master record being locked in an approval process. Once the parent record was unlocked the related list appeared.


2

I don't think this is documented, but I figured it out by looking at the outbound requests from the Communities wizard in Chrome Inspector. The template name that the Connect API accepts for Salesforce Tabs + Visualforce is "VF Template". The Community creation process can be invoked by doing POST /services/data/v46.0/connect/communities { "name": "My ...


Top 50 recent answers are included