Questions tagged [lookup]

This type of relationship links two objects together. Lookup relationships are similar to master-detail relationships, except they do not support sharing or roll-up summary fields.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

Prepopulating lookup field on flow

I need some help with a flow which I have developed to create a survey (custom object) record. This flow is being launched from an action button on a party event custom object. The idea is to capture ...
1
vote
1answer
22 views

Possible to create a lookup field on custom object that points to scheduled jobs table?

Wondering if this is possible since I couldn't find anything online. This would make it easier to click and see history for the job.
0
votes
1answer
29 views

Get Name of Account and User instead of ID

LOS__c is a lookup to Account and Interface_Manager__c is a lookup to User. In the following SOQl I am trying to get the Name of the Account that LOS__c is looking to, and name of the User that ...
0
votes
1answer
59 views

Why can't I make multiple LookupRows in Salesforce Marketing Cloud?

On a CloudPage, I want to accomplish 3 loops. In each loop, I want to retrieve the total number of records from a Data Extension and insert a new record. Here is the code I came up with. %%[ SET @...
0
votes
0answers
24 views

Look Up field auto Population on cases which is a related list to Cases

I have a Claim Request (Custom Object) as a related list on Cases object. Below is the Scenario. When a Claim Request Record is created by a user and is submitted for approval, based on the Approval ...
0
votes
0answers
16 views

C# WSDL - Create several linked objects

I'm working with the enterprise WSDL on a Salesforce org that has lots of objects that use the IDs from other objects to link them using a lookup relationship. Currently, I'm trying to create an ...
0
votes
1answer
28 views

System.DmlException: Upsert failed. First exception on row 2; first error: CIRCULAR_DEPENDENCY, attempt to violate hierarchy constraints?

I created the self lookup relation field to the custom object.By using apex code while upsert the bulk of records with external id but i'm facing the following error Line: 44, Column: 1 System....
0
votes
1answer
53 views

Using Lookup to find most recent entry in Data Extension

I'm trying to achieve the same result of this post (Using Lookup to find latest entry in Data Extension), using EmailAddress as the lookup field, but for some reason the triggered email is coming as "...
0
votes
1answer
62 views

How to enter date and lookup field into an object

I rewrote the code, through anonymous works. I only have a problem with the date and field Log__c (lookup). public class ExampleExchange { @AuraEnabled public static List<Exchange_Rate__c> ...
1
vote
2answers
35 views

Populate Lookup field with Process Builder upon record creation

Is it possible to populate a lookup field with Process builder when it is creating a record? A NPR record must be created by the process builder if the Contract status changes to a certain value. ...
0
votes
1answer
58 views

Bulkify a Trigger

I have written a trigger on Tenant_Details__c object which has a lookup relationship to Room_Details__c object. Every time a new record is inserted, I want to update a field in Room_Details__c and ...
1
vote
0answers
21 views

Odd Lookup Issue in Saleforce Classic

I have an odd issue where a user cannot add a campaign to an opportunity in Salesforce classic. The related lookup search returns no results, though the org wide search returns records, and the user ...
0
votes
0answers
24 views

How to create a multi-select lookup relationship between two custom objects?

While coding for Force.com please tell how to create a multi-select lookup relationship between two custom objects? [![I am trying to achieve something like this][1]][1]
1
vote
2answers
114 views

Case Object with 2 Self Lookups to Cases - Considerations

We have functionality around Moves(Shipping request from one location to another) , claims and service requests for one of our clients. we are planning to put all 3 of them in Salesforce Case object ...
2
votes
0answers
26 views

Trouble with DISTANCE in SELECT SOQL [duplicate]

I saw this question, but the answer doesn't help me. I have a case where I want to measure the distance between a given lat/long and "My Object's" Site's geolocation coordinate. The code is like: ...
0
votes
1answer
29 views

Update related record with batch class

I'm running a batch class over the Timesheet object and for the timesheets that meet the criteria, I want to update the related Contact record. I have a jstcl__TG_Timesheet__c object with a field ...
0
votes
0answers
30 views

If lookup field is not blank, populate a text field

So I have two fields: one lookup field to account and one text field name address. I want to check if lookup field is not blank then update the address field. But im keep getting error everytime I ...
0
votes
0answers
16 views

Deleted record not removed from lookup

Record A has a lookup to Record B. Record B is deleted. For some reason, the lookup on Record A isn't cleared. When I click the link to the lookup in the SF ui, it brings me to a "record deleted" page ...
3
votes
1answer
79 views

Does Lookup Skew affect only master-detail relationships or also lookup ones?

I've been encountering and reading a lot about data skew issues, particularly lookup skew, and I've noticed that most information I've found doesn't explicitly indicate whether this affects master-...
0
votes
0answers
18 views

How to lookup Employee object to Contact object in Flow Builder?

I'm creating a flow in flow builder, in that I want all the fields in contact object to be looked up in employee object (Like, email, address, phone number, first name, last name,...)
0
votes
0answers
19 views

Avoid Auto focus on lightning input field of type Lookup

I have a Table that I populate with list of objects through Aura Iteration . One of the column is a lightning:inputField of type look-up , it is inside a lightning:recordEditForm. The problem is ...
0
votes
1answer
53 views

Ampscript “lookup” don't work for synchronized data extension “Case_Salesforce”

I am trying to extract data from synchronized data extension "Case_Salesforce" to show on an email. Is it possible to do this? I am using lookup function to achieve. I can get synchronized data ...
2
votes
1answer
50 views

How to pass lookup value searched in flow to a lightning component

I have a lightning flow. In my flow I have used a lookup screen component for a lookup field. I am storing the Id in a flow variable. Now I have a lightning component just below the lookup, to which ...
0
votes
1answer
52 views

How to Pass or Set Automatically Value to the Custom Lookup Component in lightning Components(Aura)

I have one Custom Lookup Component I want this Field to be set automatically when I'm Passing the Id but it is not happening. Here you go <aura:attribute name="selectedLookUpRecord" type="...
1
vote
0answers
45 views

I want to use fields of custom compound Address field in Lightning component and controller

I have a custom object Address_book__c,lets say "A" which has differnt custom address fields like shipping_street__c and I have a lookup field from another custom object(say "B") on this "A" object. ...
0
votes
0answers
24 views

Lookup component in Flow not returning search results

I am trying to build a flow with a lookup component, Please refer to the below image for the lookup Component details in the screen Here Fee_Allocation__c is the name of the Object which has a field ...
0
votes
1answer
170 views

Flow Builder - Lookup Input Component No Records Returned

I am trying to use the lookup input component in a flow to find a user record by email. Lookup component setup screenshot below where EmailAPIName = Email and UserAPINameConst = User and are both of ...
0
votes
1answer
75 views

Lightning input Field Lookup Drop-down

I have a Table and in each row lookup lightning input field , the problem is that the drop-dawn on the field are not over the next row so I cannot this it how it is : How it is suppose to be : I see ...
1
vote
1answer
34 views

Schedulable Apex Class to update fields in Lookup record

I have a Custom (Managed) object called Individual Email Result (et4ae5__IndividualEmailResult__c) which contains a Lookup field to a Contact record (et4ae5__Contact__c) and I want to create a ...
0
votes
0answers
13 views

How to auto populate CPQ Quote in Email Message object Related To lookup field?

I have created CPQ Quote in my edition. Based on my requirement i need to send listed Quote data in selected Template using Email Message. Once clicked save & Email Button in Send an email screen ...
0
votes
1answer
35 views

Multiple records to be selected Via Lookup relationship Salesfroce

I have a custom object Patient. Requirement- New field with below details: Field label: "Linked Patient ID"; Field type = Lookup to Patient, should allow multiple values to be selected. Where ...
0
votes
1answer
23 views

Do I need two lookup components used on one page to create different events?

I need two similar lookup components on one page of an App. So far, I have used the code in Create Re-Usable Custom Lookup Component However, these two components must listen to different events, ...
1
vote
1answer
107 views

Winter 20 - change in behaviour - “New” button on Lookup search results

It seems there might have been an undocumented change to the behaviour in lookups in Winter '20? Previously, when clicking the "New" link at the bottom of search results, I'm pretty sure that a "New" ...
2
votes
2answers
246 views

Create a LWC lookup field without creating new record

I have a custom lwc that isn't directly linked to an object instance. On this lwc, I would like to use the lwc lookup input to lookup a related object and get its id. I'm struggling to do this, as ...
0
votes
1answer
24 views

AMPScript LookUp not retrieving any value

I've added a Lookup in my email to retrieve the language of the customer but, despite there is data, the function doesn't retrieve anything (I tried with different values or Data Extensions but with ...
1
vote
0answers
27 views

Reparent child records from different child objects

I have a situation where I have a parent object with around 15 lookup child objects. In a certain business scenario, the parent record will be replaced by another parent record, so that all these ...
1
vote
1answer
199 views

Must provide either 'fields' or 'layoutTypes' on a flow screen lookup

I'm trying to build a flow with a lookup component. However, I'm always getting the error : Must provide either 'fields' or 'layoutTypes' when providing childRelationships param. Here are the ...
2
votes
1answer
100 views

Working round the lack of formula fields of type “Lookup Relationship”

When you have a master-detail chain of objects several levels deep, sometimes a lookup field to the root object on each child object is helpful for easy navigation or to show deeper records than the ...
0
votes
1answer
22 views

How can you access the fields of a lookup of a lookup of a lookup?

So lets say objectA has a lookup of objectB which has a lookup of objectc Is there anyway of doing: objectA.lookUpToB__r.lookupToC__r.fieldOfC__c ? or anything similar? Im trying to avoid ...
0
votes
1answer
57 views

Prevent user clicking outside Custom lightning component

I have a parent custom Lightning Component which includes a custom lookup component inside, for Account Edit/Create. I want when the user starts typing (and results start to appear in a drop-down list)...
0
votes
0answers
11 views

How to Show Specific Options for Lookup Field in Visualforce Page

Is there a way to specify what values are available for a lookup field that is on a custom visualforce page? The requirement is to only show certain values on a page that is creating a new object, so ...
0
votes
0answers
17 views

Importing custom object records with self lookup relationship to the custom object records on the same CSV file

I want to upsert some custom object records in a CSV file that has a lookup relationship to the another records on the same CSV file using sfdx upsert command. My CSV file: Name,Code__c,...
0
votes
0answers
17 views

Relate multiple contacts to activities in custom visual force page

In our Salesforce org, under "Activity Settings", the feature "Allow Users to Relate Multiple Contacts to Tasks and Events" is enabled. However, this seems to work only standard page layout when I ...
2
votes
0answers
31 views

Can Lookup Field be part of Composite Index?

I have an sObject say student( ..., student_name text,favourite_teacher lookup,marks integer) By the documentation , lookup fields (favourite_teacher) will be indexed by default. Is it possible ...
0
votes
1answer
188 views

How to dynamically set a lookup field for the force:inputField component

I am trying to set the value of a 'force:inputField' lookup field dynamically, but it is not working. On click of the edit button, the record edit page gets open, but the Account value does not get ...
0
votes
1answer
341 views

Pre populate Lookup field - lightning component

I am creating a new lightning component to use as a new Factfind area. I have a lookup field on the backend that links to opportunity and I am displaying this using an lightning:inputField. However ...
0
votes
0answers
15 views

How to close a standard lookup popup after Selecting a value

I need to close the standard lookup field popup after selecting the Link. Am calling the lookupPick method in my javascript. function lookupPick(param1, param2, param3, param4, param5, param6){ ...
1
vote
1answer
81 views

Ampscript: combining IF with Lookup or LookupRows?

We send emails to our dealers, and for each brand a dealer sells we have a record in a 'Brands' synchronized data extension. So if one dealer sells multiple brands, there will be multiple records for ...
0
votes
1answer
24 views

Can you update a lookup record field in apex? Such as object.relationship__r.field__c = x?

quick question here that's in the title. Is there any way to update the relationship record field in apex without looping through that object after querying a list of ids. Example snippet below that ...
0
votes
1answer
95 views

Lookup Contact Data and show Content Block by Id only if value is true

I am new to Salesforce and AMPscript and I am trying to set a condition to populate %%=v(@BodyContent)=%% with contact data (not journey data, therefore, I will need to use the Lookup) with a content ...

1
2 3 4 5
18