Questions tagged [reference]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
29 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 ...
0
votes
0answers
10 views

Marketing Cloud Content Build Reference Block not visible when sent

I have an Email in Marketing Cloud that we've added a Reference Content Block to. It displays great in Edit Content mode but as soon as we "preview and test" or ultimately send test emails ...
0
votes
1answer
25 views

How to get formula field to generate text rather than Salesforce ID?

I'm trying to write a formula field in a new custom object to refer to the text in a field of my Order object. However, in the order object, this text is a link. So the formula field only generates ...
0
votes
0answers
15 views

Modules of Modules - Lightning Web Components Referencing

Is there any way to reference modules of modules in LWC or must all components live in the parent folder as stated in the docs: "A component folder (bundle) must live in a parent folder that defines ...
4
votes
0answers
404 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
1answer
3k 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
178 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
139 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
176 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
1answer
258 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
963 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
1answer
842 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
249 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
118 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
440 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
195 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
87 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
22 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
203 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
56 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
103 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
53 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
596 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
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 ...
2
votes
1answer
276 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
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
1answer
42 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
961 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{ ...
5
votes
1answer
552 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
866 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
1k 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
172 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
832 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
51 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
328 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
202 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
378 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
6k 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
2answers
5k 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
82 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
474 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 : ...
43
votes
2answers
79k 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 ...