New answers tagged

0

Please check the object permission on the Electronic Media Group object, just give read access to it.


0

Make sure the .design file in your component contains the following in order for your component to be visible in the Salesforce mobile app: <design:component label="YourComponentName"> <design:supportedFormFactors> <design:supportedFormFactor type="Large"/> <design:supportedFormFactor type="...


1

Scripts are loaded asynchronously from static resources, and the framework provides no invariants about when they will be loaded in the component's initialization process. Here, you're trying to invoke the libraries you're loading before they are loaded. You have no guarantee about the relative order of execution of doInit(), afterRender(), or your ...


1

It looks like you started with a Visualforce template given that messaging:HTMLEmailBody is a Visualforce tag that isn't supported in this context (it wouldn't be found in an HTML classic template). Both SML and HML may be used depending on when the template was created. HML (Handlebars Merge Language) is the newer syntax so you need to replace your old SML (...


0

Salesforce wants all users to join Lightning Experience. You can change in "My settings" and the popups only show in Lightning. Changed the global Activity setting. I think works fine.


0

This worked for me: Go to Developer Console, open component. On the right side, click Bundle Version Settings. Set the version you want from dropdown list, click Save.


5

You can do this today by adding your own "+ Add New" option to the end of your array of options, then in the change handler inspecting the selected value and handling the create new action you want to take. Something like this: get options() { return [ { label: 'New', value: 'new' }, { label: 'In Progress', value: 'inProgress' },...


0

A lot of times this is because you might not have permission shown in the below screenshot for your profiles In your metadata also make sure to check for the existence of PlatformActionList metadata item that is associated with a page layout. Your metadata should have something like below when you retrieve using an IDE (like visual studio extension pack for ...


0

Simple oversight. I figured it out this weekend. I was missing a space: import FIRST_NAME from'@salesforce/schema/Contact.FirstName'; should be: import FIRST_NAME from '@salesforce/schema/Contact.FirstName';


0

I'll answer the easier question first. There are no performance disadvantages as far as I'm aware to using data service.js, but this approach is usually not used in parent-child case for the 2 main reasons. It does reduce the readability of the HTML, because you can't see where properties are used in rendering. You have other options better designed for it (...


3

The Navigator's mediaDevices property is not available with Locker Service. however, here is an idea posted a few years ago which you can upvote Make navigator.mediaDevices available in Lightning Components API (WebRTC) This might be confusing, given that Salesforce's Locker API Viewer documentation states otherwise, but the property itself returns undefined....


0

I would check out this link.They are able to create a reusable lookup field. I would then append a value '+ New Record' that when selected opens a model to create a new record. Then you can capture the new record Id and place that into the lookup field. You can also look at this example. Either way, append an option to the drop down then look for onchange to ...


0

I just went through the same issue and you need to add it to the "Multi-line" view. For instance we wanted to include a lookup to a partner account when adding the product and we then added "Partner" lookup field to the "Multi-Line" view (it's next to the mini console layout.) Hope this helps.


0

ChatterMessage object is for private messages. postFeedElement(communityId, feedElement) is for direct messages. https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/connectapi_examples_post_feed_element_direct_message.htm


0

I've just found that, instead of var event = $A.get(“e.c:applicationEvent”) which started returning undefined, you can use let event = component.getEvent("applicationEvent"); I got this syntax from the trailhead https://trailhead.salesforce.com/content/learn/modules/lex_dev_lc_basics/lex_dev_lc_basics_events


0

After Spring 21 release note that Records created by the guest users have a default owner that is specified by you in the settings. Hence because the Guest user no more has access to the record you are seeing this error. There are official docs here on how to deal with it. In nutshell make sure to use below Save the flow to Run in System context and not ...


3

No. Dynamic Forms are available only in Lightning App Builder. Here's the mention of this on the Winter '21 release notes (emphasis mine). It adds the ability to configure record detail fields and sections inside the Lightning App Builder.


0

i found 2 issues with your code. you should use "comm__namedPage" instead "standard__component" for communities. you need create one community page and drag and drop your component into that page. then use below code, it works for me. openChildComponent : function (component, event, helper) { var navservice = component.find(&...


0

Here's a simple Lightning Web Component to display the recordId as a toast message. You could change the toast message variants and modes with the help of this documentation. Drag and drop this component anywhere inside the Lightning record page. You will not see any background for this component as there is no markup. If you are not familiar with developing ...


0

I am sorry. I could not understand the difference between what you have and what you want very well. Can you explain further? "My current solution works, but is not very elegant and hard to read; i have a record choice variable defined identically to the collection, which i refer to if the count is greater than one. Ideally, i'd only have to store the ...


0

I'm fairly new to this, too. As of Winter 21, it seems you might have to create an Audience... At least, if you are trying to expose your LWC selectively within Digital Experiences (fka Communities) - within a 'Builder' page designer... Select the component (or drag it onto the layout if not there) Click the little upper-right chevron, see the Audience ...


0

Solved it! I used the attribute subjectid and passed the recordId to it. :) It will give the Chatter feed of that particular record.


0

As per @Kasper's comment I decoded the encrypted url from https://www.base64decode.org/ and got the component + parameters


1

Sounds like the way you have this build is probably as efficient as it's going to get without over-engineering it. The only other possibility I could think of is if you had a field that was doing the heavy lifting for you and aggregating the total number of records that would be in the collection variable therefore eliminating the necessity of the collection ...


0

Looks like the setting is "Create and Set Up Experiences"


0

Uncheck the permission 'Send One-to-Many Messages' under the permission set and that should hide/remove 'Send Message' button from the layout.


0

tl;dr - use "standard" icons In case it is helpful for future readers, I was able to find a solution to this. I was just building out an aura tab and encountered this same issue. While most icons appeared too large for the tab, I found that any icons selected from the "standard" category rendered correctly (in both size and color). The ...


0

You can also check the below PDF viewer which works well in all scenarios. https://hellosnl.blogspot.com/2019/10/pdf-reader-as-salesforce-lightning-web-component.html This is based on PDF.js library to render a PDF document inside an iframe. Code is provided in the github repo, the link of which you can get in the blog post.


0

You can't. Application Event handlers will necessarily fire after the aura:valueInit handler (the technical name for the component initialization handler event). The aura:valueInit handler is literally the first event that every component receives that your component can respond to. You'll need to write your component in a way that handles this sort of ...


0

Are all of those digit significant? If not, can you modify the values when generated? You mentioned "a wired method"; if the values are being computed in Apex, you can use Decimal.setScale(). Like Decimal.round(), it supports eight different rounding models, but unlike round() it allows you to round to a specified number of decimal places. The ...


0

did you try to inject paramat like this ? openTab: function(component, event, helper) { var workspaceAPI = component.find("workspace"); workspaceAPI.openTab({ pageReference: { "type": "standard__recordPage", "attributes": { &...


0

Go to Contact in the object manager, then to Search Layouts for Classic. Click on edit for the List View layout, and there you can select which buttons you want to show on that list view.


1

After Spring 21' release, it seems $A.get("$SObjectType.CurrentUser.Id") is not returning undefined anymore byt the ID of the Guest User.


0

This is a Static Resource URL. This Trailhead goes in to more detail. Basically, /resource/<resourceName> is the path for a file uploaded in Setup > Static Resources. This file happens to be a ZIP file ("compressed folder"), with a folder called "cars", which contains a folder called "luxury", followed by the actual ...


0

Instead of using button for calling flow use , Actions. You can refer below video. https://www.youtube.com/watch?v=HBwjsEASWfc&t=2s&ab_channel=Pratima


0

If you must post just one FeedItem, and have to post it to the CollaborationGroup on your instead of showing a chatter:feed, which will just show just Chatter related to that record, you could use the chatter:newsFeed tag instead. This will show all Chatter relevant for the running user. That way, if the running User is a member of the CollaborationGroup to ...


1

If you don't mind static graphs (i.e., not interactive, you can still dynamically generate them), you could look at https://quickchart.io/ which allows you to create graphs images given a bunch of JSON parameters


0

There is no separate setting other than FLS (Field Level Security) but it usually takes some time (around 5 mins) for a field to show up in Lightning once the Field Level Security is changed. It does show in Classic immediately.


0

You cannot change the color of the existing path but if you create your own LWC or Aura component, you can define the CSS like so: <aura:html tag="style"> :root { --lwc-colorBackgroundPathComplete: rgb(75, 202, 129) !important; } .slds-path__nav .slds-is-complete { background-color: rgb(75, 202, 129) !important; ...


0

Unfortunately, you cannot remove In-App Learning icon. All users will have access to view the new icon in the global header and the panel. Check more details here. Thanks


0

The image url can be constructed using a little hack - String picUrl = ''; ContentDistribution cd = [SELECT Id, DistributionPublicUrl,ContentDownloadUrl, ContentVersionId FROM ContentDistribution where id =: cd.id]; picUrl = cd.ContentDownloadUrl.replace('download/?' , 'renditionDownload?rendition=ORIGINAL_Jpg&'); picUrl = picUrl.replace('&ids' , '&...


2

Data bindings in LWC are always from parent to child, and never from child to parent. That is to say, it is impossible for an LWC to directly update the parent's data. You can read more about it in the @api decorator documentation. I refer to you to the LWC OSS documentation on this, as it's more complete. Technically, the only documented way to access the ...


Top 50 recent answers are included