Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [reference]

The tag has no usage guidance.

0
votes
1answer
427 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: <...
1
vote
2answers
173 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
1answer
32 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
0answers
102 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 ...
3
votes
0answers
111 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
2answers
80 views

How to get the value from object if having lookup reference (ID: a9l4C00000009NQZAY) 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
1answer
378 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
1answer
74 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
1answer
67 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
2answers
94 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
1answer
106 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
0answers
74 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
1answer
641 views

Process Builder - Clone - Deleted Or Renamed Field (API Name)

Is there a way to CLONE a Process Builder, where a field used inside has been deleted or renamed, without having to recreate the field (removing it from Deleted Items or creating it from scratch)? ...
1
vote
1answer
21 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
1answer
119 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
1answer
42 views

Avoiding email2case spam when customers email helpdesk email and CC their coworkers

Users are emailing helpdesk@org.com 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
1answer
90 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
0answers
21 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
1answer
340 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
1answer
828 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
1answer
211 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
1answer
886 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
1answer
40 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
1answer
786 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{ ...
4
votes
1answer
313 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
0answers
627 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
1answer
652 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
1answer
141 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 ...
1
vote
1answer
535 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
1answer
50 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 ...
0
votes
2answers
154 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
1answer
183 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
1answer
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
1answer
370 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 ...
4
votes
1answer
4k 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, [...] ...
1
vote
1answer
3k 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
1answer
73 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
0answers
428 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 : ...
32
votes
2answers
50k 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 ...