Questions tagged [reference]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
549 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 ...
user avatar
  • 1,456
2 votes
1 answer
3k 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":&...
user avatar
0 votes
1 answer
241 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 ...
user avatar
  • 1
1 vote
2 answers
390 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 ...
user avatar
5 votes
0 answers
707 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 ...
user avatar
  • 320
1 vote
1 answer
4k 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: <...
user avatar
  • 320
3 votes
2 answers
186 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 ...
user avatar
  • 1,000
0 votes
1 answer
526 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<...
user avatar
  • 355
3 votes
0 answers
190 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 ...
user avatar
  • 31
4 votes
1 answer
472 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: ...
user avatar
  • 61
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....
user avatar
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 ...
user avatar
  • 1,018
2 votes
1 answer
411 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 ...
user avatar
  • 2,851
0 votes
1 answer
163 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'...
user avatar
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, ...
user avatar
  • 1,119
2 votes
1 answer
294 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( ...
user avatar
0 votes
0 answers
94 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 ...
user avatar
  • 263
1 vote
1 answer
25 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:...
user avatar
  • 465
1 vote
1 answer
498 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 ...
user avatar
  • 415
0 votes
1 answer
61 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 ...
user avatar
  • 465
0 votes
1 answer
205 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 ...
user avatar
  • 864
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 ...
user avatar
0 votes
1 answer
859 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
  • 1,139
2 votes
1 answer
306 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 ...
user avatar
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 ...
user avatar
  • 1,580
2 votes
1 answer
68 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, ...
user avatar
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{ ...
user avatar
  • 365
6 votes
1 answer
930 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 ...
user avatar
  • 2,232
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 ...
user avatar
-1 votes
1 answer
2k 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 ...
user avatar
  • 1,400
2 votes
1 answer
178 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 ...
user avatar
  • 1,544
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 ...
user avatar
  • 365
1 vote
1 answer
59 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 ...
user avatar
1 vote
2 answers
549 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 ...
user avatar
  • 2,243
2 votes
1 answer
238 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 ...
user avatar
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="...
user avatar
1 vote
1 answer
382 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 ...
user avatar
  • 11
5 votes
1 answer
10k 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, [...] ...
user avatar
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 ...
user avatar
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 ...
user avatar
2 votes
0 answers
515 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 : ...
user avatar
43 votes
3 answers
131k 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 ...
user avatar
  • 1,905