Questions tagged [global]

The tag has no usage guidance.

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

B2B Template (LWR) - "globalStyles.css" style

What is the best way to include a "globalStyles.css" style so it can be loaded at site level. I tried to include this "globalStyles.css" in the static resources and then reference ...
Zburu Tech's user avatar
0 votes
1 answer
34 views

I want to add number 7 as setting so that we won't need to update it with code change. Can we add this in Global settings? If yes, how? pls check code

So I have a formula field to check number of due days and I am checking that in my apex controller in 'if condition', if it is less than 7 or not. However, I have a requirement to make changes so -- &...
SF Learner's user avatar
2 votes
1 answer
226 views

If I use a { get; set; } on a field in a Global class, will that get/set be public or global?

If I have a class that is global and I use the getter setter implementation: Integer myInt { get; private set; } Will my variable myInt be a global or a public variable?
David's user avatar
  • 33
0 votes
0 answers
73 views

Can we add global method or rest endpoint in locked package patch version?

We can't add new components to the package while creating the patch version of locked package. We have a requirement, where we need to add the global method or rest endpoint. Is it possible through ...
Hemant Keni's user avatar
0 votes
1 answer
3k views

global methods do not support return type of wrapperclass

i am getting of error global methods do not support return type of ContractResponseWrapper line is global static ContractResponseWrapper postMethod() i think i could'nt able to send wrapper class ...
chiranjeevi gadamsetty's user avatar
6 votes
1 answer
407 views

How are global classes and/or components treated in 2nd Generation Packaging (unlocked and managed)

In 1st generation packaging, a global class cannot be modified after a managed release (and installation). There have been numerous discussions like this one on handling / upgrading / deprecating ...
Christian Szandor Knapp's user avatar
1 vote
2 answers
1k views

How to create/update Global Value Set in apex? [duplicate]

Is there a way to Insert/Upsert a Global value set in apex?
Lanjinest's user avatar
  • 425
0 votes
3 answers
3k views

Flow wrapped in a lightning component used as a Global Action Button not closing flow screen

I adjust my flow and it does work where a case is created and it redirects to a newly created case with no other screen works when i add the lightning component to my lightning home page layout. But,...
Bob P's user avatar
  • 21
0 votes
1 answer
94 views

Global Inner Interfaces in managed package

We have an global interface inside a global class: global class SomeClass { global interface someInterface() { //various methods returning and accepting standard Apex objects only String ...
NickJ's user avatar
  • 670
8 votes
1 answer
353 views

Global lightning components and their inheritance of public components

Wondering if someone can clear this up for me; I have a global component in a managed package. I want to reuse this global component outside of the managed package. In a component outside of the ...
Autonomy's user avatar
  • 183
2 votes
0 answers
551 views

Global Interface in managed package

We are building a managed package and we have an understanding gap on the usage of Global Interface in the code. Couple of months back our package was rejected in the security review citing usage of ...
Hal's user avatar
  • 21
7 votes
1 answer
1k views

Can class be made virtual after it has been packaged?

Can you make a global class virtual after it has been packaged? Salesforce documentation states that: You cannot add an abstract method to a global class after the class has been uploaded in a ...
ipavlic's user avatar
  • 3,694
1 vote
1 answer
1k views

Global search custom field not searching

In my object two date fields (Filling date,Issue date) are there,when i go and search in global search of the filling date value it is showing results perfectly(Refer image) but, when i search the ...
salesforce's user avatar
10 votes
1 answer
4k views

Can't access a global Apex class inside a managed package

I have an Apex class inside my managed package: global class MyGlobalClass { global static void doWork() { //... } } But when I call this code from the org where this package is ...
Sergey's user avatar
  • 551
1 vote
1 answer
1k views

Create an instace of a global class

I have a class like: global class InfoCheckIMEIChangeVehicle { public boolean deviceSubstitutionNeeded; public OCTO_Integration_Request__c ir; public Account endUserAccount; ...
L.benedettini's user avatar