Questions tagged [reference]
The reference tag has no usage guidance.
46
questions
2
votes
1
answer
2k
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>
&...
0
votes
0
answers
979
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
368
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
3k
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 ...
3
votes
1
answer
9k
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
850
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
710
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
841
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
197
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
800
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<...
3
votes
0
answers
200
views
getReference databinding for maps
seems I have found a bug which prevents data binding in case of arrayed Maps. Maybe you can help me how to get around this. I have a list of Custom Objects, I iterate over. Each of the components, I ...
4
votes
1
answer
651
views
Creating child relationship with reference fails via Composite Tree REST API
In my setup, Leads can have multiple Affiliates (custom object Affiliate__c), which is implemented through a child relationship and where each Affiliate consists of a name and the two related objects: ...
0
votes
2
answers
2k
views
How to get the value from object if having lookup reference ID in apex
I'm getting the JSON response by using the following code.
LiveText__Conversation_Header__c val = LiveTextConversationMap.get(key);
System.debug('Value One'+JSON.serialize(val.valueOne));
System....
1
vote
1
answer
1k
views
Dynamic Field References in Lightning Component
I recently posted a question regarding a component I am building. That post has the code I will be referencing.
I have been able to make the necessary edits and now I return an sObject to the ...
2
votes
1
answer
577
views
Getting error while relating child to parent using external id
I am referring to this link for relating parent data with external id.
Link: Click here
Sample code which I am trying:
ysr_NS_test__Object_Child__c childObjectReference = new ...
0
votes
1
answer
189
views
Aura Lightning Component - position affects page
we're building a Lightning Community site, and we found a really peculiar and weird behavior. I'll try to isolate the problem to better explain it (I won't report the code at the moment, as this doesn'...
1
vote
2
answers
1k
views
Reference field is null while running a test class
I have some code in an extension that works fine when it runs on the record, but I'm getting a strange null value on a relationship field when running the test class. This code runs on a button click, ...
2
votes
1
answer
353
views
reference to undefined property "{!$RemoteAction"
This is my Javascript
$scope.getRemoteCase = function() {
var caseID = [];
var caseID = $scope.caseIdInfo;
alert("caseID" + caseID);
Visualforce.remoting.Manager.invokeAction(
...
0
votes
0
answers
95
views
Invalid Cross Reference Key, can't access component
I was working on my component, saving, testing, etc.
But then this happened:
I can still access to the controller and helper but not the component.
Below are two screenshots (can't post more than ...
1
vote
1
answer
32
views
correctly referencing a case's thread in VisualForce
External case links look like this for our company
companyname.force.com/s/case/weirdnumber
the peeps who setup Salesforce set that external email to send
companyname.force.com/s/case/{!relatedTo:...
1
vote
1
answer
714
views
createdbyid lookup field reference, is it possible?
I am trying to setup a lookup relationshiop for createdbyid as I have done for contact and account , as I am loading in migration data
for example for a custom object field i have called ...
0
votes
1
answer
67
views
Avoiding email2case spam when customers email helpdesk email and CC their coworkers
Users are emailing [email protected] and CCing their coworkers. Then when the coworkers Reply All, there is no Ref ID (the unique ID that references the case) and another case gets created.
Anyone ...
0
votes
1
answer
341
views
How to remove reference link (__r field) between objects?
I am trying to find a way to unlink reference between two objects.
We have an object of Academic_Institution__c and Previous_Academic_Institution__c. If "CEEB_Code__c" exist Academic Institurion is ...
0
votes
0
answers
85
views
acct.owner.email in Apex returns null [duplicate]
I have a simple class that loops thru the new versions of a list of Accounts.
However acct.owner.email returns null, while acct.ownerid returns the owner id.
Can I not transcend the owner ...
0
votes
1
answer
954
views
after update SELF_REFERENCE_FROM_TRIGGER recursive save [duplicate]
I'm new to salesforce (apex - trigger) development and I'm currently reading through the manual and other threads on here on how to do this stuff, but I wanted to put this out here in case it was a ...
1
vote
1
answer
2k
views
Pass Parent reference to Dynamically Created Lightning Component
I'm trying to create a lightning component ("filterPanel") that would dynamically create some child components ("customFilter")
I would like to pass the parent to children to avoid communicating with ...
2
votes
1
answer
335
views
Salesforce process builder - When removing active account from hierarchy, failed but works when added to hierarchy
I currently created a process which checks if a parent account is present, has been changed and checks if a parent field contains a certain value. If these conditions are met, update other fields in ...
1
vote
1
answer
2k
views
Can't Reference the Owner in the Process Builder but can in workflow
I am trying to reference the Owner in process builder and cannot. However, it works in workflow. I'm trying to use all of the new features for all of my development so obviously the simple answer is ...
2
votes
1
answer
127
views
What do the arrows represent in Developer Console / Related panel
I originally thought these arrows just matched the "Referenced by"/"References" column, but today I discovered that this isn't the case since they are sometimes different (see image). So in that case, ...
1
vote
1
answer
1k
views
Inserting Multiple Records into a custom object which has a reference to another object
I have the following REST webservice for inserting multiple records into a custom object Tickets.
@RestResource(urlMapping='/MultiTicket/*')
global with sharing class MultiTicketRestController{
...
6
votes
1
answer
1k
views
Circular Lookup Reference
We have two objects "Project" and "Project Members". Project is child of some other object with master-child relationship.
So, we can't have "Master-Detail" relationship between "Project" and "Project ...
0
votes
0
answers
1k
views
Displaying a Lookup/Reference field type on a Visualforce page
I'm struggling to find this answer due to the ambiguity surrounding the many scenarios the keyword Reference can fit in to.
I have multiple Reference types in my custom object. They are lookup ...
-1
votes
1
answer
3k
views
Object Reference Limit
I came acros the below limit, Can I know because of what it is giving this limit. Also, Please let me know, Can we increase the limit after logging a case in SFDC support and Is this limit Edition ...
2
votes
1
answer
180
views
Lightning Documentation - Method reference with examples
Is there anyway I can look for all the methods available under the components and how to use it? Like, what are the methods available under component, event objects?
EDIT:
I need methods under ...
0
votes
1
answer
1k
views
Error: SObject row was retrieved via SOQL without querying the requested field - how to access fields of the referenced objects
I have a SOQL to retrieve values for a custom object which has reference to another custom object(Ticket__c). I am gettign the following error-
System.SObjectException: SObject row was retrieved ...
1
vote
1
answer
63
views
Field Reference error inVisualforce Email Template
i tried to create an email template with a generated attachement. All is good, but i have a probem with one field...
My table User, have a field ManagerId, who is a reference.
I need to get the name ...
1
vote
2
answers
833
views
Not able to fetch reference field data in SOQL
Here is my query:
List<object1__c> lstRecords = [SELECT field1__c, field2__r.Name FROM Object1__c];
populateData((List<sObject>)lstRecords);
//I need to pass sObject, since this function ...
2
votes
1
answer
269
views
Trigger Reference between Task and Custom Object
I have 2 triggers and i would like to have the following:
When I create a Task from email to salesforce, i want the attachments in the email not saved to the task but to the customer document which ...
3
votes
1
answer
2k
views
Visualforce Remoting Javascript Uncaught Reference Error
Am using the following buttons on visualforce page:
input class="buttons" id="forecastButton" type="submit" value="Forecast" onclick="refreshRemoteChart"
input class="buttons" id="exitButton" type="...
1
vote
1
answer
389
views
page reference not redirecting properly and stripping parameters
I am trying to create a url in my class
it gets created corectly and i am able to see it in debug log
but when i pass it to the pagereference it does not redirect correctly. and it strips the ...
5
votes
1
answer
12k
views
How to make a "join" between two tables?
I have a table Product2, witch contain products.
I have a table PricebookEntry, witch contain price for products.
How can i make a request for someting like :
SELECT Id, desriprtion, title, [...]
...
2
votes
2
answers
8k
views
Apex: pass variable by reference
I am wondering if there is some convenient way to pass a variable to the method 'by reference', to change the actual variable in the method, not the copy of it. It would be nice to have the equivalent ...
1
vote
1
answer
84
views
Trouble getting Ids passed into a set for use in a method
Having trouble getting a trigger to pass values into a method. Does it have something to do with using __r for a few fields? When I look at the debug for actIds set, it is null. However, when I ...
2
votes
0
answers
557
views
Mass Lead Conversion Error
I have written the common lead conversion snippets within for loop and I got this Error. Yes following code creates Account and Contacts properly but it doesnt create any Opportunity.
ERROR :
...
44
votes
3
answers
162k
views
How to fix insufficient access rights on cross-reference id?
I am getting the error:
INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: []
Scenario is, I am inserting an Opportunity and then Opportunity Line ...