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
1
vote
1answer
366 views

Lookup Layout only showing recently viewed records instead of all the records

In the lookup layout only recently viewed records are showing up, though all the other items are accessible to the user. Where to change the setting for the same, in order to display all the records ...
0
votes
1answer
45 views

fetching records on vf with two object with lookup relation in them in salesforce

i have two object Timeslot__c and Commercial_Slot__c i have a field name timeslot which is lookup in commercial_slot__c on timeslot__c i am feching timeslot records on vf page and also want the ...
1
vote
1answer
574 views

Easier way to find a CloudPage by ID on Marketing Cloud

Within MarketingCloud cloud Pages, you can use redirect links using the page ID as wrote in the line below RedirectTo(CloudPagesURL(457)) How can I easily find CloudPage with id 457 through the ...
0
votes
1answer
373 views

Adding Custom Lookup Field to Email Activity History Record

Our business is Project-based. The Campaign object has been renamed Project and we use the Project Code (aka: Campaign.Name) as the key index for all records to relate them to the particular project. ...
1
vote
2answers
469 views

Add an already existing record to a related list - Continued

I am very new to visualforce and I was trying to create a page like the one described here. In my case though, I want to be able to add a custom object record (Opportunity_Property_Info__c) to a ...
2
votes
1answer
1k views

Visualforce lookup field with apex:inputField in LEX?

Simple story: As a sales user, I want to mass assign leads to a teammate, so I can better distribute our total workload. The constraint is that I need to do this in Lightning Experience, in which the ...
0
votes
1answer
437 views

Selecting multiple values in lookup in vf page

i need to select multiple values in lookup input field of Vf page, how is it possible. Please let me know guys if you have any work around also.
1
vote
1answer
492 views

Reproduce Lightning standard Lookup with SLDS in Visualforce

I have a VisualForce page that was created and used the SLDS to look like lightning. The code I have in this page for 2 lookup fields is practically the one below: http://aljs.appiphony.com/#!/...
1
vote
2answers
449 views

Lookup filter with permission set criteria got error Field $Permission.XXXX does not exist. Check spelling

I want to filter user lookup with criteria: only users have permission set name 'manager_user'. So to achieve that, i do as follow: Create a permission set name 'manager_user' Create a custom ...
0
votes
2answers
288 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....
3
votes
2answers
9k views

How to get to which object the field has reference

I have a wrapper class which contain some Object name. Now I am looping through a base object and want to check is the base object have lookup to any of these object. But when I pick the describe of a ...
0
votes
0answers
8 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
24 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 ...
1
vote
1answer
85 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" ...
0
votes
1answer
21 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, ...
0
votes
1answer
407 views

I have one lookup field in contact object and need to disable new record to be creating

I have one lookup field in contact object and need to disable new record to be creating. I just wanted to hide/disable the New record creation button from lookup in sfdc.please suggest
1
vote
1answer
429 views

Enable partner user to be 'manager' of another partner user

I am currently using Communities and I am trying to add a partner manager as the 'manager' of another partner user's, user record in Salesforce, using the lookup manager field. I cannot see any ...
1
vote
1answer
92 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 ...
0
votes
2answers
413 views

Data Extension Lookup returns nothing

I have a DE called content with the following 2 columns - language | text I need it to return the text from the text column when the language is en This is what I have, It validates and runs but ...
2
votes
2answers
82 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
24 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 ...
7
votes
2answers
14k views

Is it possible to convert a Master-Detail relationship to a Lookup?

I'm going through the Trailhead training (here), and see the following two snippets which seem to disagree: "It’s possible to change a lookup relationship to a master-detail relationship, but not ...
3
votes
1answer
438 views

Remove Recent Item suggestion for Visual force lookup

This is my VF Page: <apex:page standardcontroller="account" doctype="html-5.0"> <apex:form > <apex:inputfield value="{!account.FAccount__c}" html-autocomplete="off"/> </apex:...
1
vote
1answer
546 views

Problem with lookup field mapping while building my own SOAP envelope in SAP PI as part of integrating Salesforce and Oracle through SAP PI

We are integrating Salesforce and Oracle through SAP PI and as part of this, daily records from Oracle will be fetched by SAP PI and will be upserted to Salesforce. The standard salesforce SOAP API is ...
0
votes
1answer
473 views

Associating Asset records with Opportunity Product records

Our org has been storing serial numbers in an arbitrary text area field in the Opportunity Products object, delimited by arbitrary characters (commas, newlines, spaces, etc). This is very bad for a ...
0
votes
1answer
549 views

How to Populate lookup field values between case and custom object

I have Standard Object: Case, which has look up field VIN__c(Field) with Custom Object VEH_Veh__c. My aim is when i select Vin number(VIN__C) from case, such that model,brand from VEH_Veh__c should be ...
0
votes
1answer
372 views

Marketing Cloud Creating A Dynamic Look Up using AMPScript.

I currently have 2 Data Extensions that are being imported via FTP into Marketing Cloud. DE1 that contains user information with a primary key Vehicle_Model_ID. DE1 is used to collect the profile ...
0
votes
1answer
530 views

Trigger to copy ID from text field to lookup field on same object (Account)

Text_ID__c - text field with id of an Opportunity A_Opportunity__c - lookup field to Opportunity Both fields are in standard Account object. How can I populate the lookup field with the id in the ...
1
vote
1answer
794 views

Auto populate lookup field based on a field value and show on page layout

We have an 'Outcome' object with lookup to 'Volunteer hours' object. We created a Lookup field in the 'Outcome' object, that should be auto populated based on a field value and show on page layout. Is ...
5
votes
2answers
7k views

How do you set a default value on lightning component force:inputField which is a lookup?

I have a lightning component (Summer 16) which contains a "Task" attribute as follows: <aura:attribute name="task" type="Task" default="{ 'sobjectType': 'Task' }"/> Further down the page, ...
3
votes
1answer
656 views

How to use soql queries on multiple look up relationship object to retrieve specific data

I have 4 custom objects (as shown in the schema diagram). And they are associated using a lookup relationship. Now the objective of my question is to retrieve Product profile(product) for a given ...
2
votes
1answer
47 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
384 views

How to update the lookup field with passing the string value of name?

This line doesn't update adobeevent.LightiningEd__Webinar_Attendees_Status__c = userNode.getAttributeValue('Name', null); LightiningEd__Webinar_Attendees_Status__c field is the lookup field Name ...
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 ...
1
vote
1answer
1k views

Can't set the value of a lightning:inputField for a field of type User

I'm trying to set a default value on a lightning:inputField component. The fieldName references a User value. This is the code: <lightning:recordEditForm aura:id="recordEditForm" objectApiName="...
0
votes
1answer
40 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
10 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
15 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
12 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
27 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
406 views

AMPScript Lookup fails to find record

Having trouble with lookup not returning what's expected %%[ /* Find LO Info */ /* Find OwnerID - Look in contacts first then leads */ Set @rsContacts = LookupRows("Contact_Salesforce","ID",...
0
votes
1answer
1k views

How to display picklist values based on Lookup value on VF page?

I created a custom VF page to create custom object record. I have a Account lookup on page. So whenever a user selects value from the lookup I would like to show dynamic picklist options on VF page ...
12
votes
3answers
3k views

Do child/parent relationship names need to be unique?

Don't all child relationship names on an object need to be unique ? I know they need to be unique if it's a relationship name on a parent to child relationship, but I thought they still needed to be ...
0
votes
1answer
92 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
1k views

Lookup filter does not appear to be working

I have a lookup filter that is not filter. Here is what the user sees: So I was assuming that records where the Duplicate Assigned field is True would not appear. So if the user still accepts the ...
0
votes
1answer
135 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
13 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
44 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
20 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 ...