Questions tagged [empty]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
98 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 ...
0
votes
1answer
419 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 ...
0
votes
2answers
114 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 ...
0
votes
1answer
119 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....
0
votes
1answer
88 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 ...
1
vote
1answer
68 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 ...
2
votes
3answers
6k 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&...
0
votes
1answer
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'
7
votes
3answers
20k 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 ...
0
votes
2answers
925 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(...
3
votes
0answers
266 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)} {!...
0
votes
1answer
60 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 ...
3
votes
1answer
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 ...
2
votes
2answers
2k 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.