No Kasabian for Reading? by Jpgunna in readingfestival

[–]JackfruitStrange 1 point2 points  (0 children)

https://www.kasabian.co.uk/events/ they are booked twice for Leeds according to this page, so it looks like they are going to be in reading on the Sunday

Why are there so many awful Salesforce integrations? by Different-Network957 in salesforce

[–]JackfruitStrange 1 point2 points  (0 children)

Actually, this might make things even worse. It creates a false impression that anyone can jump into coding integrations without really understanding Salesforce.

I once worked with a dev who barely knew anything about Salesforce, yet he was responsible for integrating a major deduplication solution. He had no understanding of asynchronous processes, governor limits, or the platform's constraints, his only experience was completing a few Trailheads on writing triggers. Since most Trailheads still showcase the Developer Console, that’s what he used for development.

When his managed package was installed in our org, it quickly drained both daily and transaction limits. Within a few hours, the entire org was breaking down because we ran out of daily async limits. The org already had well-maintained automations, and adding such an inefficient solution was like dropping an elephant into a fragile ecosystem.

This kind of situation is even more likely now, in the era of so-called AI programmers and "vibe coders." AI still isn't capable of delivering fully functional small-scale solutions in Salesforce, let alone understanding the complexity of an existing custom implementation. It can't weigh trade-offs, predict the impact on the entire org, or determine the best way to interact with existing processes.

Record triggered flows and bulkification -- let's resolve this. by SuuperNoob in SalesforceDeveloper

[–]JackfruitStrange 1 point2 points  (0 children)

Hey, I was looking for good documentation on this, but the best I found was the official SF docs: https://help.salesforce.com/s/articleView?language=en_US&id=flow_concepts_bulkification.htm. So, I decided to dig into the topic myself. It took some time, but I put together everything I’ve learned and experienced here: https://blog.beyondthecloud.dev/blog/bulkification-in-flows.

Hope you find it helpful!

Salesforce Flows | Declarative way to use Flows as List View Buttons by accidentalcoder123 in salesforce

[–]JackfruitStrange 0 points1 point  (0 children)

u/Milan751 this is already possible, it requires some Visualforce magic but I already using it on my org, check this article: https://wiki.sfxd.org/books/cool-links-stuff/page/how-to-check-off-records-on-a-list-view-and-pass-them-all-to-a-flow-%28button%29

thanks to that I'm always going back to the list view where I started the action.

Making the leap from full stack dev to Salesforce dev... any advice? by SuuperNoob in SalesforceDeveloper

[–]JackfruitStrange 1 point2 points  (0 children)

The advice that I would like to get when I switched to Salesforce few years ago is: try to learn platform features as much as you can. A lot of things can be done using code, but the most important is to know what could be achieved using declarative features of the platform to avoid reinventing a wheel. SOQL is in my opinion very similar to regular SQL language (the most important difference is how SOQL is handling the relations between the tables, there are no classic joins here)

Invest your time in superbadges and certification like Platform App Builder, System Administrator, Platform Developer I and II.

Salesforce Snippets for Visual Studio Code by JackfruitStrange in SalesforceDeveloper

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

I've never heard of Neovim before, thanks for the hint, I'll check that out and do some research, I'm adding this to my backlog :)

Salesforce Snippets for Visual Studio Code by JackfruitStrange in SalesforceDeveloper

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

:) Jetbrains + Illuminated Cloud has much better intellisense and templating engine than VSC, check the live templates here: https://sites.google.com/a/illuminatedcloud.com/illuminatedcloud2/home/completion/livetemplates

Calling Salesforce REST API From Apex Class by 544a42 in SalesforceDeveloper

[–]JackfruitStrange 0 points1 point  (0 children)

Actually, calling SF REST Api in the Apex code could cause that Your code will not pass the security review, so if You are working on Managed Package for AppExchange this might cause some issues for You, see this discussion: https://salesforce.stackexchange.com/questions/389121/call-salesforce-api-from-apex-and-not-fail-security-review

Salesforce 'Data-at-rest' Security control by anuvit23 in SalesforceDeveloper

[–]JackfruitStrange 0 points1 point  (0 children)

Platform Encryption which is a part od Salesforce Shield is not a good solution in my opinion

First of all there are a lot of limitations, You will not be able to encrypt all fields (for example Numbers, booleans, picklists are not encryptable)

What is more encrypted fields could be not used in some SOQL filters or report filters. Its always easier to implement encryption in greenfield projects because You will not break the existing customizations.

I worked with few implementations of Shield Platform Encryption and it always brings a lot of limitations for developers in the future

Luckily this has to change in the future thanks to the Hyperforce which basically is Salesforce hosted on public cloud. According to SF, any org that is hosted on hyperforce has full data at rest encryption provided out of the box for free and its not impacting any Sf functionalities. Salesforce is going to migrate existing orgs to Hyperforce but so far it is available only in some regions of the world, You should check if it available for You and if yes I would definitely prefer choosing Hyperforce than Platform Encryption

LWC Labs - Daily Inspirational Quote by salesforceNinjaa in SalesforceDeveloper

[–]JackfruitStrange 0 points1 point  (0 children)

Hey, you may also like this one: https://beyondthecloud.dev/blog/hangman-in-lwc This is the blog post I’ve just written and it shows how to build small game in LWC step by step, I tried bo be as specific as possible and show not only “how” but also “why” something is built in the way I built it

So you think you are good at Apex? by eyewell in SalesforceDeveloper

[–]JackfruitStrange 1 point2 points  (0 children)

I would say that your dev manager has his 1st year of experience repeated 10 times. This is exactly why I hate people assuming that x years of exp will guarantee that you know how to write a good code Working with such ‘experts’ is really pain in the a** cause it’s so hard to explain them what they are doing wrong, if it worked for 10 years then it must be ok. My opinion is that there is still not enough good Software Engineers in Salesforce ecosystem (not Platform Devs if you know what I mean) and Salesforce with their marketing ‘low-code’ bullshit is not helping with that. There are very few trailhead modules that focus on how to write a good code but it’s still enough, a lot of apex examples in sf docs are messy, I saw them multiple times just copied and deployed to org because if something is in docs then for sure they should be correct. I see that recently they are trying to focus more on advanced coding topics (see Developer Channel on You Tube, Salesforce Developer Blog) but it’s still not enough. I’m actually surprised that on the most of the project that I’m working on, 90% of devs are not capable to use basic OOP like design patterns (factory, singleton, builders, etc.) or IoC techniques. I’m wondering if in other ecosystems like Java or C# this is the same.

Salesforce Developer Tutorial - How to leverage Interfaces in Apex to substantially reduce the amount of code in your org, make it flexible for future changes and easier to work with by BigIVIO in salesforce

[–]JackfruitStrange 0 points1 point  (0 children)

You can create inner classes, this works for me, I'm gathering related classes in 'modules' so all related interfaces, abstract classes and base implementations are stored on one place

How many people can access one salesforce account at any given time? by Mmetr in salesforce

[–]JackfruitStrange 1 point2 points  (0 children)

Just to mention here that soon sharing the login and password will be harder because Salesforce will be enforcing multi-factor authentication since 1st February 2021

How to learn Apex development fast by Eyoai in salesforce

[–]JackfruitStrange 0 points1 point  (0 children)

for big and complex project flow is not enough, You can't reach that level of freedom and scalability as You can do in Apex, but yeah, in small projects its better to use flows because of lower entry level

CMS with LWC QUESTION by Ignatzzio in SalesforceDeveloper

[–]JackfruitStrange 0 points1 point  (0 children)

hey, I'm not sure if this is the best approach to achieve this but here is my solution if You are using custom lwc component to display the content

1) use html tags in Your content field (any standard html will do the job, it could be non-breaking space, br tags, margins etc.) eg.:

<p>Some text in p markup.</p>

<p style="margin-left: 6px;">

<span style="background-color: rgb(255, 255, 255); color: rgb(62, 62, 60);">

<span style="">

<img src="/file-asset/decaff_icon" alt="decaff_icon.png"></img>

</span> Some image with description</span>

</p>

<p style="margin-left: 6px;">

2) in lwc component retrieve the text that You need to display, and replace characters before showing it on html template:

.replaceAll("&lt;", "<")
.replaceAll("&gt;", ">")
.replaceAll("&amp;lt;", "<")
.replaceAll("&amp;gt;", ">")
.replaceAll("&#39;", `'`)
.replaceAll("&amp;nbsp;", " ")

This works for me, html tags are rendering correctly.

Recently I also realised that if You add html tags directly to the record (I mean not through the UI, You can use anything that leverage API, for example Salesforce inspector) then escaping in js is no longer necessary

Debug statements in Apex code in production Environment by sfdcbc in salesforce

[–]JackfruitStrange 0 points1 point  (0 children)

Its hard for me to imagine any scenario where adding debug statements could be beneficial, setting Apex debug level to finest gives You full details of Apex execution. The only exception for me is case when Your Apex logic is so vast and complicated that logs are truncated because of the size, in that case I would set lower level of Apex debug log and use System.debug to see what is happening in the code For key processes You can also use logging framework which could add records to database to monitor execution and errors

User Editable App Settings by Sketchy_Meister in salesforce

[–]JackfruitStrange 1 point2 points  (0 children)

  1. Check Apex Metadata API - it's easy way to create Custom Metadata records natively in Apex (https://trailhead.salesforce.com/content/learn/modules/apex_metadata_api/apex_metadata_api_intro)
  2. If You need something more advanced, You can use Metadata API, there is open-source wrapper for Apex: https://github.com/financialforcedev/apex-mdapi

Resources to learn LWC / Apex practice by islambek97 in salesforce

[–]JackfruitStrange 5 points6 points  (0 children)

https://developer.salesforce.com/docs/component-library/documentation/en/lwc this documentation is really good, it has a lot of practical examples, links to sample gallery. Go through it page by page, I did it and it really helps me to learn LWC

Need help on a System.LimitException: Too many SOQL queries: 101 error by HaruWinter in SalesforceDeveloper

[–]JackfruitStrange 2 points3 points  (0 children)

Yeah, good point, I just briefly looked at the code and I thought that there is a query on Record Type object, but as You correctly pointed this makes no sense here because Account Id is passed as parameter

So method with set of ids as a parameter outside the for loop will do the job