Questions tagged [reference]
The reference tag has no summary.
50 questions
-1 votes
1 answer
42 views
Conditional SOQL WHERE Apex Variable is empty
The filter on custom object reference name for attachment parent works. However, if Ref__c = NULL, items must show if refFilter = '%%' (show all). SELECT Name FROM Attachment WHERE ParentId IN ( ...
1 vote
0 answers
49 views
How do we confirm if a record is referenced every time a related record is viewed
As per Salesforce documentation for For View and For Reference Keywords in SOQL, 'A record is referenced every time a related record is viewed. For example, when a user views an account record, all ...
1 vote
2 answers
439 views
How to reference fields from parent object?
Can someone please explain how to reference fields from parent thru custom lookup? To clarify, I created the example below, where the compiler hates line 7 (but there is no issue on line 3). Line: 7, ...
-2 votes
1 answer
163 views
Retrieving custom reference from a case
Our case definition contains a billion custom fields, and I appear to be fine SELECTing FieldName__c in an API call. But I want to get a field, Case_Assignee__c which is defined as a reference. Using ...
4 votes
1 answer
5k views
new lwc:ref does not work
I am refactoring our codebase with the new lwc:ref approach, and it just does not work for me. I've even copy/pasted the code from the release docs and still getting undefined. <template> &...
1 vote
0 answers
2k views
LWC Error Invalid reference
I have js file in the lwc that keeps giving me the Error Invalid reference, but it still works 100%, i just can't make new changes. I would like to add a validation that there has to be something in ...
-1 votes
1 answer
1k views
Formula field reference sibling record
I have parent object "Contact" with two custom child objects , Contact_Additional_ Info ( Master-Detail) and Program_Registeration ( lookup ). I have already formula field in the second ...
1 vote
0 answers
4k views
How to get references of a standard field [closed]
I'm currently working on cleaning up the opportunity object and I'm facing an issue with getting the field references(Apex, Components, Workflow, Process Builder, Email templates, Reports) of complete ...
4 votes
2 answers
18k views
No apex action available for class.method error
I am getting a very weird error. My LWC Component is referencing two methods from an Apex class. Everything was working fine. Suddenly after a week, I am getting this error: /{"message":&...
0 votes
1 answer
1k views
I need an SOQL query to find all the fields in an Object which are referencing to other Objects
I need an SOQL query to find all the fields in an Object which are referencing to other Objects. For Example Account is an sObject which has different fields which refer to the other sObjects. The ...
1 vote
2 answers
857 views
Reference Field Not Listed in Object Reference
I was just going through the APEX developer guide and came accross this statement: " ... For example, the Contact sObject has both an AccountId field of type ID, and an Account field of type ...
5 votes
0 answers
980 views
Push Queue and create its Users in scratch org
I am trying to create a fresh scratch org and push a source to it through a script. The problem comes with Queues (and probably other sources that reference usernames), they are associated with users ...
1 vote
1 answer
5k views
Lightning web component object reference
I've seen many examples with primitive data types, but I've been trying to propagate array down to my children component and encountered some problems. My parent component looks like this: <...
3 votes
2 answers
282 views
Are objects from For Loops passed by reference or value?
If I have a for loop that loops through results from a database query, is the single record a reference or copied value? The reason I ask is because I am attempting to update these records, but would ...
0 votes
1 answer
897 views
Any pattern for merging fields of multiple objects of same type
I have a class called Texttypes and TextRoller as shown below: public class TextTypes { List<String> goodTexts = new List<String>(); List<String> badTexts = new List<...