Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [static-resources]

Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, stylesheets, JavaScript, and other files.

Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

Static Resource in Head Markup of Experience Cloud Site not loading

I have the following script that I am trying to load in the Head Markup of an Experience Cloud site: <script src= "https://static.soulmachines.com/widget-snippet-1.12.0.min.js" ...
Krishnamurthy's user avatar
-1 votes
1 answer
34 views

Is it possible for an apex test to read from a static file [duplicate]

I need to write a test which handles very specific text and with multiline strings not really possible in APEX without contatenating manually each line, I would like to read this text directly from a ...
yen's user avatar
  • 109
1 vote
1 answer
32 views

Accessing excel within visualforce page

I have created a static resource(Name = Excel_Macro_Report) where I uploaded excel macro file with cache control as public. Then I created visualforce page with the following Visualforce Markup: <...
bibar's user avatar
  • 13
0 votes
1 answer
103 views

Loading Custom Font In LWC from Static Resources

Im So confused with this, I have tried a lot of ways but none of them seems to work for me. The resource is named "IBMPlexSerif", its file is a .zip named "IBMPlexSerif", When I ...
RProgrammer's user avatar
0 votes
0 answers
43 views

Three.js LWC static resource

i am trying to use Three.js(3d rendering) in lwc and so far it seems to be working with the static resource file I got from this. but I need to import additional modules like 'OrbitController' and I ...
kkJhn's user avatar
  • 23
0 votes
0 answers
33 views

Access Static Resource Zip to then Deploy into Salesforce

I have a zipped folder containing Reports and their xmls, along with a "package.xml" uploaded into my Salesforce's Static Resources.` I'm trying to retrieve this Zip using StaticResource ...
Sam's user avatar
  • 1
0 votes
0 answers
33 views

Nested folders in Static Resources

I have a set of components that have image references to static resources in LWC. I want to upload the static resource with a nested folder structure for thumbnails etc: So the images.zip file would ...
adam.sellers's user avatar
2 votes
0 answers
46 views

Static resources are loading from incorrect domain

There is an issue with static resources. I have managed package containing static resources with a library. This library is used within LWC component. Recently, we have started facing an issue with ...
Oleg's user avatar
  • 31
1 vote
2 answers
166 views

LWC component throws error during loadScript for static resource - Lightning Web Security: Cannot access fullscreenEnabled

Have an LWC component that loads the @carbon/charts UMD bundle which is in force-app/main/default/staticresources/carboncharts. The renderedCallback() is throwing this error: [Lightning Web Security: ...
nstuyvesant's user avatar
0 votes
0 answers
25 views

How can I utilize Salesforce as a remote auth using third party scripting?

I have implemented a knowledge base from a third party tool and I would like to use Salesforce as a remote auth idp for the application. They have provided some options for scripts, namely PHP, ...
Kirsten Cox's user avatar
1 vote
3 answers
140 views

LWC and moment tz loading not loading all the time after doing "hard" refreshes

I am using the moment.tz library as a static resource in a lwc. I need it because my client is from Australia and the lwc needs to display the times on the component in the timezone of the site for ...
Zdev's user avatar
  • 21
1 vote
1 answer
30 views

Salesforce Public Repository

I want to create an Email Signature Banner in Salesforce. Once copied, we will paste it in Gmail signature. Is there a way to upload an asset image that will be still visible outside the Org? I've ...
Lyeroken's user avatar
0 votes
1 answer
40 views

Connected App with Access to Static Resources

I am working in an org where there is a connected app someone created (not me) that has the Run As user (under Client Credentials Flow) which specifies a user with the system administrator profile. I ...
Jeff's user avatar
  • 145
1 vote
1 answer
679 views

Trouble loading PDF.js lib in LWC

I have trouble loading the PDF.js library in my Lightning Web Component. Whenever I load the page with the component, I get : PDF.js could not be loaded undefined Twice, this additional error popped ...
Domovyak's user avatar
0 votes
2 answers
94 views

Does Loading Static Resource Dynamically through URL pass the Salesforce AppExchange Security Review

We have created a Second Generation Managed Package and in it we need to load the static resource which is uploaded by the Subscriber (the one who installs the package). We have loaded the static ...
S1th's user avatar
  • 143
1 vote
1 answer
339 views

How to fetch value from Static Resources

I am new to LWC and i have a Opportunity picklist StageName, i have stored stagename value changed to different language in static resource, now i want to fetch value from static resource and display ...
shruti rawat's user avatar
0 votes
1 answer
71 views

Managed Package- Static Resource Cache Control

I know how 'Cache Control' setting on static resource works. What I don't know if there is any impact on managed package future releases. Does the 'Cache Control' setting on Static Resource have any ...
Asif's user avatar
  • 24
6 votes
2 answers
1k views

How to get Static Resource URLs dynamically in LWC that work in LWR sites

TL;DR In case you aren't into reading walls of text, here's the question in a nutshell: Is there an API in LWC that can get a static resource URL dynamically in an LWR site? Please note that, in LWR ...
JDB's user avatar
  • 670
0 votes
1 answer
210 views

Deploy Metadata with Apex Testing Error

I am trying to deploy Omniscript which is stored in a zip file inside a static resource. I am following this documentation here. Here is the code - ` public class MetadataDeploymentCurl { public ...
Chinmay Agrawal's user avatar
0 votes
2 answers
241 views

URL for PDF file in a static resource zip file

Can I get the URL for a PDF file in a static resource zip file? The file I am trying to access is in a static resource called BRLShort on https://niimbl.my.site.com. The PDF name is brl.pdf.
Michele Kleinhomer's user avatar
0 votes
1 answer
399 views

Unable to load FullCalendar JS Library in lightning component

I am using FullCalendar JS Library V6 (lastest version) to build custom calendar for a requirement in lightning component. I have created the static resource and included the static resource in ...
Rohan Thakur's user avatar
0 votes
1 answer
198 views

SonarQube issue for method from static resource

There is a static resource in the org like below: myStaticResource.js (function() { function someMethod(eventData, cmp) { //Do something } window.someMethod = someMethod; })(); ...
वरुण's user avatar
0 votes
1 answer
565 views

Get a List of Images from static resource to LWC without naming them specially

I have a static resource that contains multiple icons in a zip file, and I want to use them dynamically for each product in a table in LWC. The product's icon is determined based on a product_type__c ...
Salvation's user avatar
  • 1,189
2 votes
1 answer
801 views

Static Resource with Cache Control set to Public is not Loading on external website for external users

We are deploying Salesforce chat with Embedded Service deployments. Currently when users without access to SFDC view the chat, all of the Salesforce images show up as broken. Below is an example of a ...
Matthew Metros's user avatar
0 votes
0 answers
87 views

Is there a good mechanism for making small images such as logos publicly available?

I read that "public" static resources are only accessible if already cached which probably explains sporadic results I've had: Public specifies that the static resource data cached on the ...
Keith C's user avatar
  • 136k
0 votes
1 answer
1k views

How to import Excel files from static resources using Loadscript in LWC?

I am trying to import an Excel file from static resources. But it's not working. The same method is working for JS files. Note the excel file is in xlsm format. Please help. JS: import { ...
Praveen Behera's user avatar
0 votes
1 answer
336 views

LWC Model Height/Width Issue

I have created a custom quick action model which has custom min-width defined in Static resource CSS. i have loaded that static resource using loadStyle(this, QuickActionFullScreen); in renderCallback ...
Hitesh Chaudhari's user avatar
0 votes
1 answer
104 views

Lightning Design System SVG example doesn't show up if included in a static resource

We would like to implement an LWC that would use the https://www.lightningdesignsystem.com/components/illustration/#No-Task no task SVG image. <template> <div class="slds-...
Patlatus's user avatar
  • 17k
0 votes
1 answer
940 views

How to use static resource image without import in LWC Dynamically

I am calling a apex controller in lwc component to get the required image's static resource name & I want to use that Image in LWC component. Since I can't import the independent static resouce ...
Shubham Jangid's user avatar
0 votes
0 answers
47 views

Need to merge required js files in one js file

We are using a js library in our vf page by referencing the static resource where it is stored. While upgrading to its latest version, the js file has many dependency on the required js files in its ...
goose's user avatar
  • 81
1 vote
1 answer
649 views

PapaParse in LWC after Winter '23 heightened security?

I am trying to use PapaParse (a Javascript CSV analyzer library) in a Lightning Web Component. A lightning modal hosts the tool. Although I have seen examples of doing so in the past, I have been ...
skycafe's user avatar
  • 397
0 votes
0 answers
291 views

Issues loading Google JS library in LWC

I am trying to load the google places library into an LWC. I ripped the js from the src url(below) for a normal google script tag and loaded it as a static resource. https://maps.googleapis.com/maps/...
SMH_RI's user avatar
  • 1
3 votes
2 answers
3k views

Activities standard component UI is changed with spring 23 release

We have standard activities component on record page. The UI for that component is as below for scratch org which does not yet have Spring 23 release: As salesforce spring 23 release coming we have ...
Jason Rickert's user avatar
2 votes
0 answers
849 views

When to use which: Static Resources VS Asset Files

Static Resources and Asset Files seem to serve same purposes to me because they both can be used for coding, branding, and design. What are the differences between these two? What are the best ...
Xin's user avatar
  • 137
0 votes
1 answer
347 views

Aura Component's <ltng:require> scripts not always loading

I am trying to add some drawing capabilities to the dreamhouse-lwc's auraPropertyListMap. The aura component uses the leaflet library, so I added the leaflet.draw plugin to the ltng:require. The ...
Jason Swan's user avatar
2 votes
0 answers
455 views

Are Static resources only accessible after a user has been authenticated?

I am displaying favicon in the Digital Experience Site. The favicon displays correctly. However what I am observing is that while the Login Page is loading the browser displays the salesforce logo ...
GroundToCloud's user avatar
0 votes
1 answer
762 views

Prevent hardcoding of Static Resource URL

<link rel="shortcut icon" href="https://xxxx--devi--c.sandbox.vf.force.com/resource/1111111101000/faviconname" type="image/x-icon" /> Is there a way to dymanically ...
GroundToCloud's user avatar
3 votes
0 answers
340 views

Implementing jstree library with Lightning Web Component

This will be a long one, hoping someone can help. Problem Summary: I'm unable to integrate the "Drag and Drop" (dnd) plugin functionality with my LWC that utilises the jstree library (https:/...
BenBates's user avatar
  • 211
0 votes
1 answer
234 views

Why is my JavaScript working when it's placed directly in my visualforce page, but not as a static resource?

I have a visualforce page that starts like this: <apex:page controller="FilastController" standardstylesheets="false" showheader="false" docType="html-5.0" ...
JVZ's user avatar
  • 17
1 vote
1 answer
204 views

Test.loadData executeBatch Unexpected Exception

I'm writing some test cases for a custom class that interacts with a custom LWC that requires fields from SF contacts. I'm attempting to load test data from a static resource using Test.loadData as ...
Nicholas Shepard's user avatar
5 votes
1 answer
5k views

LWC loadScript from static resource with export inside

I have a js library that I created static resource for it: The js library content (the calc.js file for example) like export default calculate = function(x,y){return x+y;} In LWC, I import the static ...
khoa_chung_89's user avatar
0 votes
1 answer
176 views

Field Integrity Exception occures when importing library in js controller

I'm trying to import pdf.js to my controller. I've created a static resource called "pdf" and attached pdf.js file to it. Then I'm trying to import that with ES6 import keyword but when I ...
user avatar
-2 votes
1 answer
148 views

What is the best way to gather salesforce data on org limit / static resource usage using REST or SFDX CLI [closed]

I want to keep track of our SF org portfolio/governor limit usage over time and am looking for a way to gather that data in real time. Is there a way to gather info on limit usage such as: Lookups on ...
snarulaFF's user avatar
2 votes
0 answers
956 views

Third Party Library DOMPurify on lwc - Failed to execute 'createNodeIterator' on 'Document'

I'm trying to load DOMPurify in lwc in order to sanitize some data, but I cannot find a way to make the library work. I've tried with the minified js file as static resource, with the full files, and ...
TEo's user avatar
  • 83
0 votes
0 answers
228 views

Trouble loading static resource in LWC [duplicate]

I want to use these dialog-samples in my project. I downloaded js and css files, packed into zip and uploaded as static-resource. Trying to use it, I receive ReferenceError: Dialog is not defined. How ...
Maciej Król's user avatar
0 votes
0 answers
156 views

Salesforce static resource image upload via Mule4 not displaying

I have to upload images to static resources via mule 4. The code works fine without any error but the image not displaying in salesforce static resource. I'm getting 200 responses instead of 201. When ...
Zusee Weekin's user avatar
0 votes
1 answer
10k views

Can we insert an image in lwc cmp without using static resource?

Is it possible to add an image in a lightning Web Component w/o using static resource?
Gargi Gupta's user avatar
0 votes
1 answer
292 views

Update variable in a JS Static Resource

I have a js library uploaded as a static resource that I am using in my VF page. This library has a "config" object which contains server info etc. The problem is that I need to update the &...
Badar's user avatar
  • 45
0 votes
1 answer
969 views

How to obtain updated static resource referenced by LWC in Communities/Experience page?

After updating a static resource and importing it using import nameOfResource from "@salesforce/resourceUrl/nameOfResource";, only the FIRST version is what is obtained and not any ...
Jay's user avatar
  • 55
-1 votes
1 answer
152 views

Create wrapper LWC for javascript static resource?

I want to use a Javascript library to process some information without reimplementing the entire library in apex is there any way I could embed it in a web component then access it via post method? I ...
KarlLivesey's user avatar

1
2 3 4 5
9