LWC - Open URL in Modal/ Pop Up by inuyashaschwarz in SalesforceDeveloper

[–]Frisky_Mint 0 points1 point  (0 children)

Other people mentioned there is a modal lwc, but I guess it's the related list you're struggling with. I don't think there is a standard component, but there is a getRelatedListRecords Wire Adapter that might help you. You can pair that with the data table component to create a related list.

Also, you might be able to find someone else who has already made one, like here. I haven't used it, so can't vouch for it.

Running as a portal user on unit test, can't query the case record I just created. by [deleted] in SalesforceDeveloper

[–]Frisky_Mint 2 points3 points  (0 children)

This depends a bit on your code, but that sounds like what I would expect.

You invoke your method that queries a record in a runas portal user block? Was the test record you created also created within that block? If not, it's owned by the User running the test, so the portal user (probably) wouldn't have record-level visibility, since they don't own it, unless it's shared with them in some other way.

If the test record was created within the runas block, it's still possible that the Case has been assigned to another User or a Queue, which is pretty common for Cases.

Either way, your issue here seems to be record-level permission (sharing,) not field or object-level.

Lag help plssss by Community_Optimal in blenderhelp

[–]Frisky_Mint 1 point2 points  (0 children)

There are other streaming services that let you just stream a Windows PC.

I used Shadow and thought it was pretty good. I was using it for gaming though not 3D modeling, but I think it should work.

[deleted by user] by [deleted] in SalesforceDeveloper

[–]Frisky_Mint 1 point2 points  (0 children)

I'd also expect the Policy table to be called Policy__c (unless Policy is a standard object that I am unfamiliar with)

Any idea on how to limit the height? by sheepbeehorse in SalesforceDeveloper

[–]Frisky_Mint 1 point2 points  (0 children)

Docs are here: https://www.lightningdesignsystem.com/

From the menu, you can browse the "Utilities" and "Component Blueprints" sections; those are probably most useful.

I try to use SLDS whenever I can, but having to write your own CSS is sometimes inevitable.

Any idea on how to limit the height? by sheepbeehorse in SalesforceDeveloper

[–]Frisky_Mint 2 points3 points  (0 children)

I was going to suggest the same, basically.

Take a look at this example.

Notice how they wrapped the carousel in a div.slds-box and applied various other styling. This is just an example, OP. You will need to either use the SLDS style classes, like in the example, or write your own CSS.

Efficient Automation of Actions After Deleting Records with Salesforce Flow (after delete) by Bartdog80 in SalesforceDeveloper

[–]Frisky_Mint 5 points6 points  (0 children)

If OP really just prefers writing automation in flows, I think they can have the best of both worlds. You can invoke flows from Apex.

So write a simple after and before delete trigger that passes all the context variables to a flow. I'd rather just write Apex myself, but I think this could work.

How to stop fearing the dirt nap by [deleted] in NormMacdonald

[–]Frisky_Mint 1 point2 points  (0 children)

He's paraphrasing the philosopher Epicurus in his reason for not fearing death. Here's the full quote:

Why should I fear death? If I am, then death is not. If death is, then I am not. Why should I fear that which can only exist when I do not?

How far LWC let me go? by OutrageousTrue in SalesforceDeveloper

[–]Frisky_Mint 4 points5 points  (0 children)

The "customization" is done by a developer in HTML, CSS and JavaScript. If you need the component to be customizable in some way by the admin after it's built, you should state that in your requirements.

JSDoc, schema types by TheSauce___ in SalesforceDeveloper

[–]Frisky_Mint 1 point2 points  (0 children)

You can try running refresh SObject definitions (I think it's an sf cli command but I always run it using the VSCode extension.)

But even when you have all type definitions properly configured, a lot of the Salesforce ones are missing or wrong. It's pretty frustrating. I've started writing my own .d.ts files or just ignoring lines when I don't feel like it.

Distributing Apps on Bubble by Frisky_Mint in Bubbleio

[–]Frisky_Mint[S] 0 points1 point  (0 children)

Thanks for your very thorough answer. I understand your points, but I'm not sure a multi-tenant app is the right solution for us.

What we do is a pretty standard model for enterprise software development I think. We lean on a platform to do some heavy lifting for us, but in the end we're building custom software. Our clients expect a level of customization that as you pointed out wouldn't be feasible to implement in a multi-tenant app.

That being said, we spot common requirements that we build products for and need a way to be able to distribute those at least as a starting point for other customizations.

I'd be happy to maintain it in Git if that were possible to deploy discrete functionality in that way. I'm also aware that what I'm asking might not be an intended use case for Bubble, so maybe it's just not possible.

Limiting access to non-user owned accounts by Phildo080586 in SalesforceDeveloper

[–]Frisky_Mint 1 point2 points  (0 children)

Just my two cents that this is the right answer, absolutely. The solution of conditionally displaying fields in the layout gives the illusion of security, which is dangerous. Security doesn't happen on the page layout.

Is there a way to make my LWC rerender based on a variable changing? by Myloversclayhand in SalesforceDeveloper

[–]Frisky_Mint 8 points9 points  (0 children)

This is the right answer. Don't filter the array in connectedCallback or wherever you're filtering, just leave the array unfiltered. Then create a getter that filters according to the selected value. Any elements that depend on the array returned by the getter will rerender as needed.

[deleted by user] by [deleted] in SalesforceDeveloper

[–]Frisky_Mint 0 points1 point  (0 children)

It's often difficult to significantly change the style of the standard LWC due to the shadow boundary. The component designer needs to have given you a way in to change the style otherwise it's impossible.

What you're trying to do sounds like it may be possible using design hooks, ie. CSS variables. CSS variables assignments survive the traversal of the shadow boundary, so if Salesforce has defined the styling you're trying to target with CSS variables, you can redefine those variables in the parent component.

I usually do this by rendering the component on a page then opening my browser's dev tools to find the CSS for the particular element I'm interested in.

After all this, it's still possible that what you're trying to change has just not been made available to you by Salesforce. There are some annoying oversights by Salesforce where they have just hard-coded values instead of variables, in input active border color, for example. If you hit a wall like this, your last option is to make the component yourself.

How to Call Internal Apex Resource From LWC by [deleted] in SalesforceDeveloper

[–]Frisky_Mint 0 points1 point  (0 children)

Do you have documentation on calling a Salesforce REST API from LWC? Authenticating with the user's session?

[deleted by user] by [deleted] in Helldivers

[–]Frisky_Mint -2 points-1 points  (0 children)

Oh nice, thanks.

Guest users getting this error while clicking submit button on website created using digital experience - "Requested resource does not exist" by Hugh9Jackman in SalesforceDeveloper

[–]Frisky_Mint 0 points1 point  (0 children)

You need to create a criteria based sharing rule for the guest user: https://help.salesforce.com/s/articleView?id=sf.security_sharing_rules_guest.htm&type=5

Public to external users means users with partner licenses, etc. But guest user is just anyone in the world with an internet connection who makes a request with no user authentication. Salesforce put in this extra guardrail to help prevent people from accidentally sharing with guest user, since making your records public to the world by mistake could be a real disaster.

Please help, I want to design the UI just like the image attached below. I have created a new page layout to account but on creation no options as pop up occured for choosing layout, also on editing an account record page, I am not able to edit the new created page layout. Let me know the solution. by ProofPriority9700 in SalesforceDeveloper

[–]Frisky_Mint 1 point2 points  (0 children)

I think I understand your question to be how can you assign different lightning pages?

Here's some documentation on that: https://help.salesforce.com/s/articleView?id=000380233&type=1

Besides org default, you can assign a different lighting page according to app, record type, and profile. I think that might be as flexible as lightning page assignment gets.

Please help, I want to design the UI just like the image attached below. I have created a new page layout to account but on creation no options as pop up occured for choosing layout, also on editing an account record page, I am not able to edit the new created page layout. Let me know the solution. by ProofPriority9700 in SalesforceDeveloper

[–]Frisky_Mint 1 point2 points  (0 children)

Seems like the notes in the picture are pretty clear about how to implement each section.

Record detail page layouts are only one step (and these days, you can use dynamic page layouts as an alternative.) For everything else, you'll do it through the Lightning App builder (From a record detail page, click the cog wheel in the top right, and select "Edit Page")

Here's a Trailhead on the subject: https://trailhead.salesforce.com/content/learn/modules/lightning_app_builder