We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [operators]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
22 views

Not equal to comparison operator does not work

I have a list of opportunities that I fetched via SOQL query. I am trying to check if any of the fetched opportunities is 'Closed Lost' or 'Closed - Lost'or 'Completed' or 'Closed Won'. If not, then I ...
1
vote
1answer
28 views

Assigning operators for Date fields and comparing with today(), Scheduled Apex Code

Exam_Date__c = 01/01/2018, Expiration_Date__c = 01/31/2018 (usually 30 days gap) I want to send an email 7 days prior to expiration, on say eg. 01/25/2018, likewise. I used the following formula in ...
5
votes
1answer
129 views

Docs about comparison operators saying case-sensitive

Above all sorry about the title, couldn't find a good one. Please edit if you think of any I stumbled upon this description about equals operator in Salesforce docs. OPERATOR NAME DESCRIPTION ...
0
votes
1answer
29 views

Ternary Operator error - Error: Compile Error: expecting a colon, found ')' at line

(!GWB_Utility.isNull(cust.FinancialIndicator)?cust.FinancialIndicator == 'Y'? 'Yes':cust.FinancialIndicator == 'N'? 'No':null); Idea - the value will be either Y/N/Null - If it's Y show Yes , N show ...
1
vote
1answer
35 views

Best way to implement a formula

I have a scenerio which is based on a field of a record. This field is a lookup relation ship to another record. Example on my abc__c object I have lookup to xyz__c object. The xyz__c object has a ...
2
votes
2answers
2k views

comparing and assign values to a variable on same line

I saw this kind of logic somewhere in an apex code and got curious about how this can be done. The code is a one liner and does variable check and assignment in the same line. It uses the <> ...
3
votes
2answers
200 views

Operator Precedence in formula field

I have formula field like this: 2*2^3 Result = 64 Expected Result = 16 - I am getting this result in excel I corrected the formula by adding parenthesis. My question is that exponentiation ...
4
votes
1answer
1k views

How do the “includes” and “excludes” operators work in Workflow rule criteria?

Does anybody know how the "includes" and "excludes" operators work when setting up rule criteria for workflow rules? The only documentation I've found on this is located at https://help.salesforce....
0
votes
1answer
24 views

how to evaluate expression to truewhen both the operands are false

<div id="contentToToggle" style="display:{!if(showContent && showContentreplica,"block","none")};"> dont have duplicates </div> { showContent =false; showContentreplica = ...
2
votes
2answers
7k views

Is this ternary operator logic documented?

Ever since... well, the dawn of Apex Code, I've always presumed that the ternary operator evaluated both the true and false branches as part of its operation. Today, while playing around with them, I ...
2
votes
1answer
588 views

Like Operator in a Trigger

I am editing an existing Trigger where I need to reference a field that starts with 'Check In @' So I tried using the LIKE operator but it gives an error: ((t.Subject=='Store Check-In' || t.Subject ...
1
vote
0answers
26 views

Liveagent: Getting the details was not successful

I have two Operators in my LiveAgent. When Operator 2 is on line and Operator 1 is offline all works fine: the calls arrrives to the Operator 2 and the Transcript and another custome object are saved....
1
vote
1answer
40 views

Render condition error throws

I have below render condition that throws error. Can someone let me the correct condition? Please counter is a get set Integer value in controller that increments after a check in for loop inside ...
7
votes
2answers
1k views

Is Changed operator in Process Builder

I am checking whether Order OwnerId is changed or not in Process buider.If Changed update related records. But getting below error when Order.Close_Date__c is updated through Workflow field update ...
4
votes
1answer
213 views

exact equality operator

Found this in a great post on salesforce collections (http://peterknolle.com/collections-eggstravaganza/). Can anyone explain what is going on here that this isn't true? Account acct = [ ...
8
votes
1answer
356 views

Comparing to null with “<>”

I was reviewing some Apex code when I found an expression like this: if (a <> null && b != null) { ... } My gut feeling tells me that <> is an alternative way to say "not ...
2
votes
1answer
135 views

Getting the comma out of YEAR function in salesforce formula builder?

I have a YEAR(CloseDate) which required to be a number field type. And when I try to convert it to text to get rid of the 2,014 comma with something like this... TEXT(YEAR(CloseDate)) or this... YEAR(...
4
votes
1answer
2k views

special characters not displaying properly

Special characters such as ≠ or ≥ are displaying as question marks on a single customer's site. My app is a managed package and these characters appear correctly on all other instances, so I figure ...
2
votes
4answers
143 views

Approval process with AND( OR() ) doesn't seem require all

I thought that should be able to wrap a bunch OR conditions with an AND that would require TRUE from each OR such as this. AND(OR(ISPICKVAL(Apttus_Proposal__Opportunity__r.Sales_Typ__c, "New"), ...