22 votes
Accepted

Apex Framework / library for consuming REST services

The ffhttp library should do the trick: https://github.com/financialforcedev/ffhttp-core It includes error handling, redirections, building header fields, oauth, mime attachments and more. EDIT - ...
frup42's user avatar
  • 414
15 votes
Accepted

How to Upload a File to a specific Library Folder using Apex?

As I can see from Your code while creating a ContentDocumentLink you are not specifying a LinkedEntityId. Linked entity ID tells in which folder it exists. So Minimum code needed to store file in a ...
Pranay Jaiswal's user avatar
13 votes
Accepted

Third-party js lib not being displayed in canvas LWC (Fabric.js lib)

I'm afraid that Lightning Locker won't allow you to use that js lib, for the several reasons: new fabric.Canvas() constructor can take either <canvas> element or its id to initialize an ...
Oleh Berehovskyi's user avatar
10 votes

Any Platform Event Library or Best Practices out there?

Is it smart to create events like CaseInserted__e for all the possible objects i need to track, or is is smarter to have a general SObjectInserted__e event? Generally, use one event for each unique ...
sfdcfox's user avatar
  • 487k
9 votes
Accepted

Moment JS format returns function string in Lightning Spring 17

We are already working on this one - its a bit tricky to explain the cause but it has to do with one of the remaining changes required in Lightning to fully support the Content Security Policy ...
Doug Chasman's user avatar
  • 10.1k
8 votes
Accepted

How to load and use external library?

Using webcomponents and Jquery together can get bit tricky . Here is how i approached this and got it working 1.Create a zip file that has latest jquery.min.js , pagination.js and pagination.css ...
Mohith Shrivastava's user avatar
8 votes
Accepted

Sync data between Salesforce & REST API in a resusable way

Sorry in advance for a long answer, but this topic is near and dear to my heart and I think I can provide some interesting context/perspective. I am the founder of Valence (https://valence.app), a ...
Grekker's user avatar
  • 1,072
6 votes
Accepted

ltng require scripts not working for me!

Your scripts from <ltng:require> are not guaranteed to be available in your component's init handler. They are loaded asynchronously. You need to add the attribute afterScriptsLoaded="{!c....
David Reed's user avatar
  • 92.6k
6 votes

Design Patterns for Asynchronous Apex

That Dreamforce talk is hopelessly out of date - 2013! I haven't looked closely at the apex-async library, but it certainly uses at least some of the design patterns I cover in my Advanced Apex book. ...
kibitzer's user avatar
  • 3,434
5 votes

Salesforce Files Vs Salesforce CRM Content

Hope you have gone through these differences before posting the question. Refer Differences Between Files, Salesforce CRM Content, Salesforce Knowledge, Documents, and Attachments CRM Content needs ...
Santanu Boral's user avatar
5 votes

Any Platform Event Library or Best Practices out there?

This post contains multiple questions and is probably too broad but let me try to answer anyway. Overall I would say that using Platform Events (PEs) instead of triggers is not a good approach if you ...
POZ's user avatar
  • 4,354
5 votes
Accepted

Locker Service and Fullcalendar.io

Logan, I just happen to have a sample of Fullcalendar which displays events. But heads up .. it is not locker compatible. even though I have used ( Full Calendar: 3.1.0 & jQuery 2.2.4 ) as ...
Sumuga's user avatar
  • 2,129
5 votes
Accepted

How to best enforce CRUD/FLS and pass Security Review

The best option today I think is to largely avoid CRUD & FLS and enforce security via custom permissions aligned with your business processes but that is not really answering your question. Part ...
Kevin Jones's user avatar
5 votes

How to best enforce CRUD/FLS and pass Security Review

The answer was given by Chris Peterson (PM of Apex) and MVP Daniel Ballinger during Dreamforce '19 in the session "Reducing the Cost of Enforcing CRUD and FLS in the ESAPI". And the answer is: By ...
Robert Sösemann's user avatar
5 votes

jsPDF Importing but not working in LWC

Because of the locker service, JSPdf is not supported in LWC. Check my answer to generate pdf in LWC using standard browser API.
Anmol Kumar's user avatar
  • 3,599
5 votes
Accepted

jsPDF Importing but not working in LWC

I know that almost a year has already passed, but I think that my method may be useful to someone. renderedCallback(){ Promise.all([ loadScript(this, jspdf+'/jspdf/jspdf.umd....
Moonvvell's user avatar
  • 166
4 votes

Is there a defacto 3rd party utilities library for Apex such as Apache Commons is for Java?

awesome-salesforce is a curated list of Salesforce resources: What is Awesome Salesforce Awesome is awesome project started by Sindre Sorhus who is most popular person on Github. He created a project ...
identigral's user avatar
  • 7,459
4 votes
Accepted

Libraries inclusion propagation to children components in Lightning

The documentation doesn't specify, as far as I can tell, but both of your statements are currently correct: a library loaded in a parent component is also available in the child component, and a ...
sfdcfox's user avatar
  • 487k
4 votes
Accepted

Can not draw a circle with d3.js in lightning component

You can use lightning: container to accomplish this. Lightning:container was designed to use 3rd party libraries which are not locker service friendly in lightning components. HTML file: <html&...
Pranay Jaiswal's user avatar
4 votes

How to best enforce CRUD/FLS and pass Security Review

The most voted advice will get you failed at the security review. End-users rely on CRUD/FLS configurable from UI Setup, and they will get quite surprised that your app does not respect the standard ...
touzoku's user avatar
  • 189
4 votes
Accepted

marketing cloud - can I use a third party javascript library inside email?

First off, you cannot run Client-Side Javascript inside of an email. This is because pretty much every ISP that sees this email will instantly flag it as a security risk and discard it. Potentially ...
Gortonington's user avatar
  • 30.5k
3 votes

Gantt chart for Salesforce

I had to find/implement a Gantt chart for my company a few months ago. The free ones that I was personally considering were: Google Charts' Gantt Chart (no idea about compatibility with Locker ...
Derek F's user avatar
  • 60.9k
3 votes

Locker Service and Fullcalendar.io

Are people altering the libraries to make them compliant, or is Salesforce working to make sure that their requirements don't have such an impact on heavily utilized open source libraries such as ...
sfdcfox's user avatar
  • 487k
3 votes

Lightning Bundle fails to use external libraries after LockerService is Enabled

I'm not sure what version of lightGallery you're using in your provided source, but it appears to be outdated. If you upgrade to a newer version plus take a couple additional steps this repro should ...
TrevorBliss's user avatar
  • 3,833
3 votes

Is there a defacto 3rd party utilities library for Apex such as Apache Commons is for Java?

As Apex have so many limitations and is extremely limited comparing to the other languages in most of the projects I was participating some Utils class with methods needed to manipulate strings or ...
user1974566's user avatar
  • 2,295
3 votes

ExactTarget library duplicated symbol IOS

We've been making improvements to our SDK; please see https://salesforce.stackexchange.com/a/131089/34325 for details on the changes we'll be releasing to support this use case. Brian M. Criscuolo, ...
Brian M. Criscuolo's user avatar
3 votes
Accepted

Design Patterns for Asynchronous Apex

Dan Appleman Dreamforce session in 2013 is quite out of date. These days (2018) you would want to use Queueable inteface. Read more here: Salesforce Developers Blog: Queueable Apex: More Than an @...
Robs's user avatar
  • 9,330
3 votes

Locker Service and 3rd party library, how to pass Security review?

We always try to improve the compatibility of Locker with third party frameworks. Maybe there is solution for the specific problem you are facing? Alternatively you can use a Lightning Container ...
JF Paradis's user avatar
  • 2,460
3 votes

How to best enforce CRUD/FLS and pass Security Review

TBH, considering that new security features are on the way but not quite GA yet, maybe your best bet is just to write your own central helper classes that will handle CRUD/FLS to exactly the extent ...
Charles T's user avatar
  • 11k
2 votes

Is there a defacto 3rd party utilities library for Apex such as Apache Commons is for Java?

I like this set of utilities using kind of Functional Programming inspired by Lodash and Ramda.js For example for creating queries chaining methods https://github.com/PropicSignifi/Query.apex List&...
ElkCor's user avatar
  • 307

Only top scored, non community-wiki answers of a minimum length are eligible