Skip to main content

Questions tagged [libraries]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Knowledge base sharing library file error

I have a problem when sharing a file from the library via knowledge base. I will explain the whole process and what the problem is. When sharing an article, Autolaunched flow is launched, which checks ...
Kacper Walat's user avatar
0 votes
0 answers
36 views

Can't share a file because it's managed by library , How to share a library then?

i want to create a public link for a file , Class : public void execute(Database.BatchableContext BC, List<Challenge__c> scope) { Set<Id> testIsd = new Set<Id>(); ...
Fark's user avatar
  • 27
2 votes
2 answers
135 views

Issues using jsPDF library in an LWC

recently in our org we have needed the ability to create PDF files. I am aware you can do this using visualforce pages with the render as PDF method, however we would like the pdf to be styled more ...
Jake Colledge's user avatar
0 votes
0 answers
24 views

Allowing users to organize ContentDocument into folders on a record

I have a Task in Salesforce which people can upload files too. I want to try to allow them to upload them into specific folders. I read about Libraries, but this seems meant for allowing for me as an ...
user2658392's user avatar
1 vote
1 answer
370 views

System admin unable to see all ContentWorkspace

Let's say you have two users, each with System Administrator profile Sysad1 Sysad2 Each user has Salesforce CRM user permission. The System Administrator profile includes Manage Salesforce CRM ...
cropredy's user avatar
  • 72.1k
0 votes
1 answer
1k views

Not able to render HTML in PDF using jsPDF library in LwC

I am trying to build a simple custom pdf in LwC using jsPDF v2.5.1 library and loading this library using loadscript in rendered callback method, now I am trying render HTML content in PDF using doc....
Sagar 's user avatar
  • 25
4 votes
0 answers
442 views

LWC: Building JS dependencies from NPM modules

To take advantage of NPM's audit, update, and other capabilities, I'm a firm believer that developers should use a package manager like NPM to manage JavaScript libraries that they import in their ...
Matthew Souther's user avatar
0 votes
0 answers
66 views

Documents access to limited group of users (related to Account)

I have a requirement There are a group of users who can upload documents on Account (possibly public group) However, the documents uploaded should only be accessible to that group of users and not ...
SEuser's user avatar
  • 1,847
5 votes
1 answer
569 views

How to use Javascript libraries with Lightning Web Security in Aura components

We are using the Leaflet Javascript library to add mapping to our application. Currently we have the following: <ltng:require styles="{!$Resource.Leaflet + '/leaflet.css'}" ...
fred's user avatar
  • 3,414
2 votes
1 answer
259 views

How to load an external library and have it useable in Local Development

So I have loki loaded on it's static resource like a good boy and whenever I run the component in an actual org everything is hunky dory however testing in local dev always makes it return a 404 for ...
Tythus's user avatar
  • 66
1 vote
1 answer
1k views

How to create pdf using pdfjs library in lwc

I have a lwc in which I try to render a pdf. I have zipped the pdfjs library and added this as a static resource. In my template I can call the library as following: <iframe id="...
Thomas's user avatar
  • 2,310
1 vote
0 answers
301 views

Issue importing dependent libraries in LWC

I'm trying to create an orgChart in LWC to represent how my objects are set up. I found the following library to do it : https://github.com/bumbeishvili/org-chart When looking at the examples, he ...
Sacha Dieryck's user avatar
1 vote
1 answer
790 views

JQuery - "$ is not defined" Error only in Experience Builder

im trying to use jQuery library in my experience builder (LWR) site i used code from this video: https://youtu.be/W5VLwlXtStM and it works perfectly OK in salesforce (exactly as shown in video) but in ...
matistikoff's user avatar
1 vote
1 answer
569 views

Dataloaded ContentWorkspace (libraries) with no permissions and they are now hidden from all users

I have a question about data loading ContentWorkspace (Library) records into an org. I used dataloader to load a number of library records. I set the ShouldAddCreatorMembership field to False so now ...
markwilland's user avatar
3 votes
1 answer
917 views

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

I'm trying to display some shapes using the Fabric.js library. From the console, seems like the fabric.canvas is built correctly, but nothing is being rendered. My code: HTML <template> <...
Michal_LFC's user avatar
0 votes
0 answers
60 views

Question from sales guy: library lookup within an Opportunity

Preface: I'm not a developer, but looking for help. My sales org uses Lightning version -- within the Opportunity, I would like the opportunity to lookup in our Library the Close Won / Close Lost ...
washingtonnick's user avatar
0 votes
0 answers
392 views

Use external javascript library only in specific child LWC instead of including in VF page

I am trying to use an external JS library for feedback purpose. When I use the library in a VF page using <script> tag by including src="js URL", it works well and I can inspect and ...
Rohit's user avatar
  • 11
7 votes
1 answer
519 views

Are there any utility libraries for LWC development?

Each time I develop LWCs I feel like I'm reinventing the wheel with wrapping apex requests in simpler functions or by providing custom error handling (with showing toasts etc.). Maybe there are some ...
Przemysław Długoszewski-Tamoń's user avatar
0 votes
1 answer
135 views

Files visibility while adding them to a library

I am currently trying to figure out one problem connected to Libraries and ContendDocuments. So I currently have 2 libraries. One library is to store all of the files in the system, while another one ...
danzis's user avatar
  • 1
1 vote
1 answer
402 views

How to use external libraries in LWC with inner class (function)

I wanted to use this library https://anseki.github.io/leader-line/ in lwc, uploaded it as static resource import { loadStyle, loadScript } from 'lightning/platformResourceLoader'; import LeaderLineJS ...
Anton Yashchuk's user avatar
2 votes
2 answers
1k views

Lightning Web Component: Importing JS library fails with empty error object

Another curious case of empty error messages. This time I am trying to import a JavaScript library, Moment.js, and am getting a failure but no indication of why. import { loadScript } from "...
A stacked cube's user avatar
5 votes
1 answer
1k views

Using third party javascript library in LWC without a static resource

My question is similar to this. It seems we need to upload the Javascript library as a static resource before we can use it in LWC. I've got a payment gateway JS library which I need to use via CDN ...
Pasan Eeriyagama's user avatar
2 votes
1 answer
2k views

Sync data between Salesforce & REST API in a resusable way

It feels like groundhog day. As a Salesforce Partner building AppExchange apps one application aspect keeps repeating and the custom solutions I build just don't satisfy my need for reuse. It's about ...
Robert Sösemann's user avatar
2 votes
0 answers
170 views

How to pre-load and share a 3rd party JavaScript library across multiple LWCs?

This example of using D3 combines the loadScript in the connectedCallback with the code that uses D3, initializeD3 here: renderedCallback() { ... Promise.all([ loadScript(this, D3 + '/...
Keith C's user avatar
  • 136k
3 votes
2 answers
4k views

jsPDF Importing but not working in LWC

I tried to use jsPDF in LWC. I uploaded jsPDF.min.js and html2cavas.min.js as static resources. Then I load them in my component : import jspdf from '@salesforce/resourceUrl/jspdf'; import ...
Ombrelin's user avatar
  • 413
1 vote
0 answers
40 views

How to test where an imported static asset library fails on import

I have been trying to upload various bundled libraries to static resources to import them into a LWC component. I have been successful in doing this when using api version 39, but this fails on ...
BTurner's user avatar
  • 11
-1 votes
1 answer
1k views

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

I need to use a third party javascript library inside email that is triggered after clicking on a button inside the email. I need to convert my email to pdf and allow a user to download the pdf ...
eeadev's user avatar
  • 340
2 votes
1 answer
369 views

In Apex, how do I know if my user can contribute content to a particular library?

Is there a way to discover if the current user can publish content to a specific Library using either Apex or Javascript? Use Case I have a shared library (DeveloperName = Shared_Forms) that many ...
Charles Koppelman's user avatar
5 votes
1 answer
4k views

I can't load PDF.js lib in Lightning Web Component

I'm creating an lwc component that shows a pdf with canvas, the lib I'm using is this:PDF,js when trying to load lib, returns me an undefined error, can someone help me how to load correctly My Html ...
Alef Ribeiro's user avatar
0 votes
1 answer
185 views

How to query attached fiels from library in Lightning style?

I have the following query: List<Document> attachments = [Select Id, Name, Type, Folder.Name, FolderId From Document WHERE Folder.Name = 'Team Attachments']; In Lightning I have the same ...
sfdcadmdev's user avatar
14 votes
4 answers
3k views

How to best enforce CRUD/FLS and pass Security Review

Since Salesforce began to require CRUD / FLS checks as part of the Security Review for AppEchange apps in 2015 there has been a lot of discussions why this cannot be done by the platform and how this ...
Robert Sösemann's user avatar
0 votes
0 answers
91 views

Libraries Component on Community Page is auto focused

I have a community page which contains a library community component, added from the community builder. This component, when loaded, displays a folder. On page load, this folder is auto focused, ...
Charis Moutafidis's user avatar
3 votes
2 answers
6k views

How to load and use external library?

I don't know how to use the library of Pagination in a lightning web component but I can't use the example method: $('#demo').pagination({ dataSource: [1, 2, 3, 4, 5, 6, 7, ... , 195], ...
Alex M.'s user avatar
  • 534
2 votes
1 answer
544 views

Files and Libraries As Lightning Component

I want to include a Visualforce component on a Lightning Record Page that routes to a specific file library. As neither Files nor Libraries are Objects, I am having some trouble developing this ...
CharlieKellyKingofTheRats's user avatar
2 votes
2 answers
3k views

Move a ContentDocument from one library to another in Apex

Is there a direct way to do this in Apex? I tried doing DML to ContentDocumentLink or ContentWorkspaceDoc. But nothing works. What I tried so far Update the Library in ContentWorkspaceDoc ...
k Walker's user avatar
24 votes
2 answers
4k views

Apex Framework / library for consuming REST services

To consume REST services there is a lot of boilerplate code needed: Build Apex Objects to model the responses Code to deserialize REST responses to those classes Handling of HTTP requests, responses ...
Robert Sösemann's user avatar
0 votes
2 answers
1k views

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

Is it a way to use 3rd party library/framework like Vue/Angular and bypass security review by Salesforce. Because only option to use those kind of library seems possible with version 39.0 which is ...
Ar2zee's user avatar
  • 101
0 votes
2 answers
273 views

Share a File Between Communities

I have files that were uploaded to the Asset Library for a Community by adding them to the Rich Content component on a Community page. When I look at the File's sharing settings, I can see that it is ...
Michele Kleinhomer's user avatar
0 votes
1 answer
427 views

Changed File Asset & getting old version sometimes & new versions sometimes - cache has been cleared

I changed the image for a file asset. I am sometimes getting the old image and sometimes getting the new image when I use the same URL. It is as if Salesforce servers are out of sync. Does anyone ...
Michele Kleinhomer's user avatar
0 votes
2 answers
4k views

Community Guest can see files in Asset Library

My Community Guest can see files in the Asset Library. How can I change this?
Michele Kleinhomer's user avatar
-1 votes
2 answers
1k views

Design Patterns for Asynchronous Apex

Background After listening to Dan Appleman's talk: Dreamforce 13: Design Patterns for Asynchronous Apex I went to look at the code: Sample Code: Design Patterns for Asynchronous Apex ...
Robs's user avatar
  • 9,396
11 votes
1 answer
11k views

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

I am trying to save a Visualforce page as a PDF file to a Library folder in our Salesforce org. I have been unable to figure out how to save this new PDF file to a specific Library folder. I tried ...
user7100889's user avatar
0 votes
1 answer
89 views

visualforce list of available javascript libraries? [closed]

This is me frustrated with getting wrong search results... I'm looking for any salesforce based javascript files or libraries available for use in visualforce pages. I've come across a few in the ...
Mac A.'s user avatar
  • 379
0 votes
1 answer
1k views

How do I build a related list against a Files Library (in Lightning)

I want in the related tab of a record to have a Library related list shows all the files in a library? Is that possible?
rna7's user avatar
  • 347
2 votes
1 answer
6k views

ltng require scripts not working for me!

I'm having trouble accessing my static resource (a js lib) in my controller.js in my lightning component. My goal is to bundle up all my javascript functions and classes and use across most ...
Mac A.'s user avatar
  • 379
0 votes
0 answers
376 views

Error in external library DataTables

I need to export my datatable to pdf, for that I'm using DataTables libraries. It seems to be running fine here: However while using the pdfmake.min.js file in lightning component, I'm getting below ...
salesforce Developer's user avatar
1 vote
1 answer
673 views

jsPDF library does not work in Lightning components 43.0 version

I have stored jsPDF library in static resource and using it in lightning component where version is 43.0. This library does not work if LockerService is enabled.I decreased version to 39.0 and then it ...
devforce's user avatar
  • 1,573
1 vote
0 answers
140 views

Using jsPlumb library in lightning component

I'm trying to get jsPlumb to work inside a lightning component and I'm stuck in the beginning (https://jsplumbtoolkit.com/community/doc/home.html#container). When I try to initialize container, i get ...
Szosteczka's user avatar
2 votes
0 answers
558 views

Lightning Component CSP - Meta tag http-equiv for TinyMCE

I have a lightning sub component within a larger component that uses TinyMCE js library locally to provide advanced editing capabilities. The component works when I disable LockerService, by setting ...
Richard Peute's user avatar
6 votes
1 answer
109 views

Libraries inclusion propagation to children components in Lightning

If I have a parent lightning component and the component has ltng:require do I need to require the same libraries from the children components or will the inclusion be propagated to children? For ...
manymanymore's user avatar