Jeff Kranz
  • Member for 3 years, 1 month
  • Last seen this week
LWC Combobox with "add new" button
Accepted answer
6 votes

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

View answer
Generate Frontdoor URL for a scratch org in shell
Accepted answer
3 votes

You can get this URL with the force:org:open command and the -r flag, eg: > sfdx force:org:open -r -u MyScratchOrgAlias https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/...

View answer
Querying DOM elements generated by Aura components
3 votes

As for your question about how Salesforce does this, it uses what they call the Lightning Locker Service. More specifically, the DOM Access Containment aspect of Locker Service. From here: A ...

View answer
Best approach for uploading to Salesforce files via a Salesforce API
3 votes

If you're using Files, you are using Salesforce Content. In fact, when you add a Chatter File, the platform is generating a ContentDocument/ContentVersion/ContentDocumentLink just as if you were using ...

View answer
Align action button with Lightning:card
Accepted answer
3 votes

You'll want to set the actions attribute of the lightning:card to place an action in that spot <lightning:card title = "Records" iconName = "custom:custom24" class="slds-...

View answer
Flow Screen in a loop retain old values
Accepted answer
3 votes

This is the expected behavior for Flow screen components. Text fields in flow are optimized for a case where the value may need to be initialized to a default value, but once the user enters something ...

View answer
lightning-datatable columns removed with Splice in ConnectedCallback() when moving between records (without refresh)
Accepted answer
2 votes

When you assign an array to a property or variable, it is passed by reference (kind of- the value of an Array/Object/Function is a reference, and that reference is passed as the value, but you can ...

View answer
LWC Flow Screen component: Possible to assign or set a Field value on an sObject variable?
Accepted answer
2 votes

Circling back on this. It seems that the good folks on the Salesforce Flows Product Management team were reading my mind and have since released a feature that does exactly what I described wanting to ...

View answer
Dynamic flow Input Lightning Component?
Accepted answer
2 votes

None of the out-of-the-box Flow Screen Input components will do this as described. As of today, I think you have two general options: Place one of each type of input on the screen, using conditional ...

View answer
Error: Reached maximum number of custom fields - When versioning DX package
2 votes

Which Edition is your scratch org configured as? Group, Essential, and Professional each have a limit of 100 custom fields per custom object, which sounds like it may be a likely culprit Enterprise ...

View answer
Resume Salesforce Flow
Accepted answer
2 votes

If the user clicks the "X" that will end the flow, no possibility to resume. A couple options: Enable the ability for users to Pause flows. This will give you the option to put a Pause ...

View answer
What is the best practice to store custom configuration for a managed package application?
2 votes

One option missing here is Custom Permissions For your example, Custom Permissions might be a good fit because it is a boolean enable/disable option. If you want by default to allow a feature, you ...

View answer
Avoid bulkification in flow
1 votes

As of today, we cannot access data from other upserted records in the transaction directly in the Flow. However, an apex invocable action does have the full list of records getting processed. You ...

View answer
Salesforce Flow - Scheduled Trigger Flow One time action (Infinite Loop)
1 votes

In theory, you could build an infinite loop in Flows (although not the way you've built yours). The idea is that at the "end" of the Flow, you add a pause/wait, and then on resume, continue ...

View answer
email validation in input field
Accepted answer
1 votes

The base lightning:input component can validate email address formats. See the example in the Lightning Component Library: https://developer.salesforce.com/docs/component-library/bundle/lightning:...

View answer
Break a screen flow into 2 transactions
Accepted answer
1 votes

Caveat here that this is a workaround/hack and that we should really be pushing Salesforce for better ways to efficiently bulkify Flows. That out of the way: A "Flow Action" (formerly known ...

View answer
Is there any way to include Search Address lookup to a custom aura component which is used to override the standard New record functionality?
Accepted answer
1 votes

The lightning:inputAddress component has a showAddressLookup which you can set to True to show the Google maps powered address search https://developer.salesforce.com/docs/component-library/bundle/...

View answer
How to access aura:id of a tag present in child component in a parent component controller
Accepted answer
1 votes

The recommended way to communicate between parent/child components is via events. However, in this case it might make more sense to provide a callable method in the child component that performs your ...

View answer
Finding Max/Min using Salesforce Flow
1 votes

You could do this more efficiently with a Get element that queries your Object filtered by Timezone, sorted descending by Capacity, and returning just the first record. When you sort descending, the ...

View answer
Salesforce Lightning:Displaying Custom Banner Component on case record page when Case Owner is not equal to login user
1 votes

Have you tried using the Visibility Filter on the component in the App Builder? You'd have to add a boolean formula field on the Case to indicate whether the current User ID is equal to the Owner ID, ...

View answer
Lightning - dynamically creating force:inputField
1 votes

Dynamic binding is not possible in that manner because that array[element] syntax is not supported in expressions. However, you can create the component dynamically in the controller. For instance: ...

View answer
How to get recordID of row on mouseover in lightning-tree-grid?
0 votes

Welcome to Salesforce Stack Exchange! The more detail you provide about what you've tried and the behavior you're seeing from what you've tried, the better we can help! Generally, you can attach a ...

View answer
redirect relatedlist button back to relatedlist view after the flow is completed
0 votes

Either of these formats should work for the related list view. You should also see one of these url formats in your browser address bar when viewing the full page related list view: /r/{objectApiName}/...

View answer
placing button menu in lightning-tile lwc
Accepted answer
0 votes

The Tile blueprint provided by the Lightning Design System shows how to accomplish this. The key piece you're missing is using slds-grid and slds-grid_align-spread to put the title and actions in the ...

View answer
File-Upload Standard LWC Component not working in Community
0 votes

It sounds like you are using a LWR (Lightning Web Runtime) Template for your community. If so, the lightning-file-upload component is not currently (as of Winter 22 release) supported. See LWR ...

View answer
Lightning layout vs div - Aura - responsive
0 votes

You'll need the multipleRows="true" attribute on your lightning:layout in order for the layoutItems to flow to multiple rows https://developer.salesforce.com/docs/component-library/bundle/...

View answer
DML in LWC Apex controller class
0 votes

Internal Server Errors are notoriously difficult to troubleshoot. I would suggest submitting a support case with the ISE # to get more detail on what the root cause is.

View answer
Using lightning:actionOverride and getting URL parameters of the clicked button (defaultFieldValues)
0 votes

Since you want to bypass the custom component override for these URL buttons, you can do this by simply adding a nooverride=1 parameter to the URL Like this: /lightning/o/Case/new?nooverride=1&...

View answer
I cannot see the files that I upload by lightning:fileUpload
Accepted answer
0 votes

Which Id value are you using for the recordId attribute of the lightning:fileUpload component? If it is the User Id, that File is stored in the user's private library and won't show up in the Files ...

View answer
Manual account sharing with all users
0 votes

Some have suggested creating a custom field with Sharing Rules, but if this is truly manual, you also have the option of using the standard Sharing button and share with the Public Group called "...

View answer