New answers tagged

2

There's already a Partners object in Salesforce, and it works exactly as you've described; a related list (junction object) between Accounts and even Opportunities. You can customize the Partners object in Setup, and add it to your page layout. You can read more about adding Partners in the documentation.


0

In addition to Rashmi's answer, remember to enable "Lightning email template" inside the setup menu.


0

There are two parts to your question:- Saving the verification Id on Customer record - To do so, Instead of using force:InputField, you should use the lightning:inputField component in lightning:recordEditForm to display and edit the value of a record field on a Salesforce object. Use the fieldName attribute to specify the API field name. <aura:...


0

Why not call getInitialAccountRecords imperatively instead? For example: @wire(CurrentPageReference) { getStateParameters(currentPageReference) { if (currentPageReference) { this.screenMode = currentPageReference.attributes.apiName !== undefined ? currentPageReference.attributes.apiName.substr( currentPageReference....


0

I do not agree with Denis as there are lots of use cases where we may not want to change the existing data structure because of certain reasons. Well in that case you may want to have a look at the recently introduced contents property. This surely is available to fulfill this kind of purpose. You only have to add display: contents property to the elements ...


0

I would "flatten" your parent-child tree into an array : https://stackoverflow.com/questions/28453824/flatten-hierarchical-data, then I would apply flexbox to all the elements to show them https://css-tricks.com/snippets/css/a-guide-to-flexbox/ Good luck!


0

Implemented a similar functionality recently. Fetched the selected records IDs in the controller of the VF and passed them as a parameter to a component.


1

First, you cannot control the order of wire methods and how/when they are called. This is managed by the framework. Your property needs to be reactive: @wire(getInitialAccountRecords,{action:'$screenMode', recordId:'$recordId'}) Note that this will will be called multiple times. You will need to account for this in your code: @AuraEnabled public static ... ...


0

Which Context Do Flows Run In shows that the context for Flows only apply to certain flow elements Context impacts what the following flow elements can do with Salesforce data: Action Create Records Delete Records Get Records Subflow Update Records Since this is a custom LWC within a screen flow, setting the flow context as System Context Without Sharing ...


0

your issue is that the anchor tags is missing the href attribute, which is what is used on right click > open in new tab to identify what url to reference. You will have to use NavigationMixin.GenerateUrl to populate the href attribute with the appropriate url.


0

An extract from the documentation says: Creating a new record from the lookup field's dropdown menu is currently not supported. https://developer.salesforce.com/docs/component-library/bundle/lightning-input-field/documentation


1

One way to achieve this just by using Salesforce administration would be the following one: Create a new text field and set it as unique Create a Flow and update the field that you just created with something like (OwnerId + Multipicklist Value) By doing this, you ensure that you can't have in the System two records with the same Owner Id and same values ...


0

It is also possible to use the IF statement inside the URL Hack without using URLFOR. In the following example, the IF statement encompasses everything regarding Field3, both before and after the equal sign, so if Object1__c.Field8__c='', then not even ',Field3=' will appear in the URL: /lightning/o/Case/new?useRecordTypeCheck=1&defaultFieldValues= ...


1

I'm using the Experience Builder for an LWR site, and this seems to be working. Create a named slot in your HTML: <slot name="content"></slot> Then declare it in your JS using JSDoc syntax (The comments here are actually important): /** * @slot content This is the main content slot */ export default class MyExample extends ...


0

I've seen that even though we import the field from the external object path .../externalObject__x.customfield__c the objectApiName of the imported field will have the custom object suffix ( __c ) instead of the external object suffix( __x ). I've managed this to work by manually defining the structure of the field and making sure the objectApiName has an ...


1

lightning-card supports title slot, so if you want to place your HTML into the title you can do it the following way (example from documentation) <template> <lightning-card> <h3 slot="title"> <lightning-icon icon-name="utility:connected_apps" size="small"></lightning-icon> ...


2

It's the Lightning App Navigation Bar for apps that utilize Standard Navigation in Navigation Style. To search for it, it helped I had a vague idea it was referring to the navigation bar for apps based on the name, I utilized the search within Chrome dev tools: Press F12 to open Chrome Developer Tool In Elements panel, press CTRL + F In the search box, ...


0

The approaches above work perfectly with one important caveat from my testing today - the button / link must be set to display in existing window. Display in new window caused the classic link to load in lex. Once I switched to 'existing window without sidebar or header' it worked great for a custom link to a filtered report, using the classic URL hack and ...


4

In order to init a collection variable with multiple values, it is necessary to specify the same URL parameter multiple times, for each of the values. For example: /flow/Test_Flow?recordIds=0013h000007JTgiAAG&recordIds=0013h000007JTggAAG More information can be found in official salesforce documentation here.


1

Implement a custom data type with your html executing modal on click Recently a new feature was released which allows to define custom data types in standard lightning:datatable component. Create a LWC component customTable with the following JS import LightningDatatable from 'lightning/datatable'; import clickModal from './clickModal.html'; export default ...


0

These are custom permissions. Custom permissions let you define access checks that can be assigned to users via permission sets or profiles, similar to how you assign user permissions and other access settings. Custom permissions can be used in the "Audience", to control the visibility. Following is the link to the documentation for the creation ...


2

You're going to need more than two objects, which is probably where your confusion lies. You'll want to read about First Normal Form, a database concept where we normalize data such that there are no nested tables. One way we could do this is by having four tables: Grant, Organization, Site, and Grantee. Organization and Site can actually be represented by a ...


0

ok, I figured out my issue; thanks to rene winkelmeyer's "How to build LWR sites with Experience Cloud", specifically episode 9; my missing item was: setup> all sites> select this site> Administration > Preferences > Allow guest users to access public API when I did this, I saw my fields in an incognito chrome window. Because of a ...


0

I am able to solve this with event="aura:locationChange" Please refer this link for more details link


2

If you want to use one channel, you'll be limited to one handler that will then have to dispatch to other methods based on the contents of the message. Using multiple channels would probably make the code easier to read. Ultimately, the end result would be just about identical in terms of complexity and legibility, so choose whichever you prefer.


0

There is no better using native flow components using a single screen. Flow doesn't have the ability to dynamically display UI elements based on an unknown sized list. Even if you could create a collection of the records you want to create, displaying them isn't currently possible with native Flow elements. i.e. the flow screen needs to already have the ...


0

I've also faced case with problem with similar error. But for me, source of issue was using of fetch method in JS. Adding endpoint to CSP Trusted Sites and Remote Site Settings may be a solution of similar problems, as it was in my case. See additional info: Configure Remote Site Settings, Adding Remote Site Settings, Create CSP Trusted Sites to Access Third-...


0

Use below in renderer file in aura omponent afterRender : function(cmp, helper) { var ret = this.superAfterRender (); // do custom rendering here $A.get("e.force:closeQuickAction").fire(); },


1

The problem is that you are returning serialized String and assigning String to the js property. Js expecting to have here an array of JSON objects, but not just String. You have two options. deserialize returned String by getCooridinatesFromPinCode; return not String with the serialization of the list of objects, but List<ChurchListWrapper>, lwc ...


3

For each radio group, name attribute should be unique. I can make an assumption, that in your case attributes name are the same. salesforce recommends not to set name, as it will be generated automatically. In general, we don't recommend setting the name attribute in lightning-radio-group. The component automatically generates a unique value for name if ...


Top 50 recent answers are included