Questions tagged [empty]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
619 views

LWC controller returns empty objects

guys! I have a problem. Every time, when I'm trying to execute quick action i see this error-message: [e.opportunity is undefined]. Can somebody help me with this issue? Controller: import { ...
Yan's user avatar
  • 13
2 votes
1 answer
315 views

I receive an empty list of notifications using the Connect REST API endpoint: /connect/notifications

I want to get all the current user's notifications to display them in a LWC component. For this, I tried to make a REST API callout from Salesforce to the same Salesforce org using Connect REST API ...
Fota Madalina's user avatar
0 votes
1 answer
12k views

AMPscript EMPTY OR NOT EMPTY

I have created an AMPscript code for an email where I generate a greeting depends on the variable but I want users who don't have the First Name field to display the Last Name and Salutation and those ...
Mery's user avatar
  • 17
0 votes
2 answers
2k views

Salesforce updating String field value with null when forced with an empty String

I noticed when you force an existing text field value with an empty String, instead of it's becoming an empty string it's becoming a null value. For example, try below in Execute Anonymous. Savepoint ...
Pasan Eeriyagama's user avatar
0 votes
1 answer
247 views

how to empty a list without removing the list

According to the documentation, the SSJS function associated with the object list are : add, remove, retrieve and subscribers https://developer.salesforce.com/docs/atlas.en-us.mc-programmatic-content....
Teaiki's user avatar
  • 3
0 votes
1 answer
141 views

ignoring empty values

I have a function to convert comma seperated values out of a text field into the fitting currency format. It is working when the field is filled but it stops the whole "Mail calculation" when it´s ...
Maik's user avatar
  • 109
1 vote
1 answer
106 views

Unexpected result in validation rule

I have a validation rules as follows: a <> related__r.b When a is null/or empty, the validation rule fails to trigger regardless of the value in b. I fixed the logic with the following: OR(a ...
d0001's user avatar
  • 518
2 votes
3 answers
12k views

Null List VS Empty List

I have a basic question about how a list is loaded. Consider these scenarios: List<Lead> leadList1 = [SELECT Id FROM Lead]; List<Lead> leadList2 = new List<Lead>(); List<Lead&...
Olivia's user avatar
  • 3,429
0 votes
1 answer
3k views

How to check if map is empty in Visualforce page on rendered

<apex:outputPanel rendered="{!map.size > 0}" > this doesn't work. gives the error: Unknown property 'map.size'
Tam's user avatar
  • 13
7 votes
3 answers
24k views

Null check OR isEmpty Check

I have checked many posts but still not clear. A SOQL query returns a list but if SOQL finds no records then it will return an empty list or it will be null? When should i go for isEmpty check or ...
R Suri's user avatar
  • 209
0 votes
2 answers
2k views

How To Verify that a List/Field is not empty?

These are the methods I use to check if a field is empty: p.Call_Summary__c != null p.Call_Summary__c!='' And these are the methods to check that a list isn't empty: CClist != null CClist.isEmpty(...
Json's user avatar
  • 1,587
3 votes
0 answers
326 views

Why is an empty apex:attribute neither null nor blank but still an empty string?

Consider this simple component: <apex:component access="public" layout="none"> <apex:attribute name="myString" type="String" /> {!ISNULL(myString)} {!ISBLANK(myString)} {!...
Semmel's user avatar
  • 2,272
0 votes
1 answer
63 views

Public list variable is empty

I have a class with 3 methods (1 static and 2 normal) - A,B,C methods. B is the static method. A calls B method, B calls C method. There is master list variable which is updated in C method. In ...
sfdcFanBoy's user avatar
  • 4,055
3 votes
1 answer
5k views

Checking fields for Blank or Null

I am building a CSV file from an sobject list in a batch class. There are certain fields that are appearing as "NULL". When I am checking them for NULL values using IsBlank , I am getting an error ...
Mahmood's user avatar
  • 5,934
2 votes
2 answers
3k views

Plain and empty Sandbox

We want to have a plain empty sandbox - one without any configuration metadata or data from Production. Is it possible to have such a sandbox? Please advise.
Vimal Desai's user avatar