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.

learn more… | top users | synonyms

0
votes
0answers
10 views

how to get around global search error message

I receive the following message when I go to save enhanced lookup. You have enabled Global Search and the following search settings only apply to Sidebar and Advanced Search in Portals. To ...
2
votes
1answer
33 views

How to search on object lookup on custom field

I have a lookup field that displays the standard "name" field (renamed to Service ID) of a lookup object. However, this "Service ID" field stores the autonumberID of the object record and is not ...
2
votes
1answer
25 views

Need to populate an email referencing the latest data in a data extension

I'd like to insert content based on a user's last entry within a Data Extension; that is, if a user looked at five products over five days, I want to use the most recent product to insert content. ...
1
vote
0answers
35 views

Is lookup field supported in Salesforce1?

I am new to Salesfore1 & mobile development and facing one issue.. I am trying to create one publisher action with custom VF page as content source. Within my VF Page there was a custom field ...
2
votes
1answer
18 views

Limit for Related Look-up Lists

Suppose let's say I have 100 custom objects, and they all have a look up relation with Contacts. Are so many related lists supported? If so, can anyone give the max number of look-up lists supported ...
1
vote
1answer
86 views

Issue displaying lookup inputField through wrapper class results

Im having trouble getting the Financial_Account__c lookup field to display properly on my visualforce page. I am loading a wrapper class that contains Financial_Account_c and Holding_c. The Holding__c ...
3
votes
1answer
60 views

Do cross object formulas only work if the lookup field is on the same object as the formula field?

I have recently been using cross object formulas (I'll use COF for notation) for the first time, and as far as I can tell the only way to use fields from another object is if the lookup is from the ...
2
votes
2answers
44 views

Prevent DMLException when lookup's external id is unknown

Imagine a Custom SObject X with a lookup field for Custom SObject Y. Y has an external ID field EID. As described in this answer, I can create a record X like this: Y y = new Y(EID = 1); X x = new ...
1
vote
1answer
81 views

Roll-up summary on Lookup Relationship when multi-currency is enabled

I have one serious problem which i'm finding it difficult to resolve please help out..!!! I have Lookup relationship between Account and Opportunity(Custom Object) and i have enabled multi-currency ...
0
votes
0answers
26 views

Lookup Filter is not available for Production?

In our fulldev sandbox, on the Case object I have a Product2 lookup field, with lookup filters. It works perfectly. Why does it not deploy to Production? When I edit the lookup field, there is no ...
2
votes
1answer
29 views

Tracking Changes to Lookup When Parent is Deleted

Question Is it a known issue that field history tracking doesn't detect changes to a lookup field as the result of the parent object being deleted? Background We had a big data integrity issue and ...
0
votes
1answer
21 views

How to access and display the field in VF email Templates from the junction objects

I need to display a field in an Visualforce email template.The Field is from a junction object1. Case has a junction object (junction1) which is related to another Junction object(Junction2) thereby ...
2
votes
2answers
152 views

Test class failing for simple default lookup value trigger

I'm having trouble with what should be a simple test class for a simple trigger. The trigger inserts the ID of an account named Retail into a lookup field on the opportunity named Project__c if that ...
1
vote
1answer
53 views

How to populate related list records in VF page?

I Need to populate the related records(from Custom objects) or contact associated with the Account like multipicklist view in Vf page so the user selects the related records from the list.On a button ...
1
vote
1answer
61 views

Update Lookup field to connect to child object

I have a lookup field to a child object on the Account object i want to update with a record Id for a child object. I want to compare the text value in either the Billing State/Province field (or if ...
2
votes
1answer
108 views

Enhanced Lookups (All Fields)

Are custom lookup fields searchable with the (All Fields) Search Enhanced Lookup on a Custom Object? In this example: I have a "Well" (Custom Object) record that has a look up relationship to a "Rig" ...
0
votes
0answers
66 views

Image is not Displaying properly?

I have used this formula to show different image based on stages. CASE(Stage__c, "S1" , IMAGE("resource/1386053185000/StageColorPink", "pink",15,15) , "S2" , ...
1
vote
1answer
35 views

Reporting on multiple lookup fields in a custom object

Sales personnel take a physician (contact) around to community practices (accounts) in order to assist them in getting referrals. My task is to help them enter this information efficiently and then be ...
1
vote
1answer
189 views

Autopopulate field based on lookup record

I have two related object Reservation(custom) and contact(standard) by lookup relationship. In my vf page i need to display the following : 1.Lookup field. 2.Firstname 3.Lastname 4.Phone 5.Booking ...
1
vote
1answer
70 views

Remove User type picklist on lookup field in Visualforce

I imagine this isn't possible, but is there any way to remove or override the User type pick-list that shows up when User look-up field is associated with an apex:inputField? See screen cap: I'm ...
0
votes
2answers
50 views

creating a formula field that takes value from another object

I have 2 objects: Object A and District_Stats__c. There are 4 useful fields in District_Stats__c: District_Num__c, Month__c, Year__c, District_Rev__c. In Object A, I have District_Num__c, Month__c ...
3
votes
1answer
113 views

What are the implications of using a reparentable master-detail relationship instead of a lookup?

Since the Summer 12 release of salesforce it's been possible to set the "Allow reparenting" attribute on master-detail fields. This somewhat blurs the traditionally clear line of when to use a ...
2
votes
2answers
479 views

How to add a lookup field value to an sObject list

Since I started coding in Apex, I've gotten used to working with lists of IDs of objects not the objects themselves. This time around, instead of creating a List of account ids, I created a List. ...
4
votes
1answer
121 views

Nested SOQL Query On Object w/ Lookup To Same Object

I have an object, Widget__c. This object is very simple, but it has a lookup to Widget__c as well, as each object can be nested within another. Now, I need to query and get the entire structure of ...
2
votes
2answers
128 views

Render Opportunity name from LookUp Relationship

I have a Custom Object that has a reference to Opportunities, I originally had it set up with a Master-Detail relationship but then after reading this and noting that parent objects can't be ...
2
votes
2answers
51 views

How to stop invalid records showing in a filtered lookup

I have a custom object with a parent / child relationship to the account standard object. On the custom object I also need to be able to record the relevant contact. I have added a lookup to the ...
2
votes
2answers
728 views

Visualforce page for new Lookup Page

I have followed the instructions of this blog post (http://blog.jeffdouglas.com/2011/08/12/roll-your-own-salesforce-lookup-popup-window/) to try and create 2 separate vf pages in order to override the ...
0
votes
2answers
141 views

How can reference a custom object to a Opportunity object?

I have a custom object named Order, its fields same with Opportunity and I set lookup between them, what I need is when I create an Order record, a related Opportunity record is also be created ...
5
votes
2answers
232 views

New page - Parent lookup pre-populated?

I'm attempting to create the New button functionality on a visualforce page that will be hosted as a section of detailed page layout. This vf page will surface child records of a parent detail page ...
1
vote
1answer
735 views

UPDATE … Default Value in a lookup field

I'd like to create a trigger that automatically assign a value to a lookup field. I've tried to emulate what I've read on these 3 posts (but without success) ...
1
vote
2answers
111 views

How to add multiple entries into a related list?

I have 2 custom objects: Package and item. Each package can have multiple items, and I know that when I create a new package. I tried to have a lookup field on package to display items. - But that's ...
6
votes
2answers
152 views

Can an ID in a lookup field ever be invalid? Anywhere?

Salesforce documentation gives the following rules for non-mandatory lookup fields: When the target is deleted, by default fields that reference it are set to null. You can tell it to prevent ...
6
votes
1answer
78 views

Modify “New” Object Layout through Lookup

When using a Lookup field, you can create a new object utilizing the "New" button. My first question, what is this functionality called officially by Salesforce? Can you turn it off? Secondly, ...
2
votes
1answer
463 views

Custom Search functionality based on Account lookup in a VF Page

I have a Custom Object in which a lookup field(Acclook) is related to account has been created. On a VF page We have an Inputfield which is a lookup(Acclook) for account. Once we click the Search ...
2
votes
1answer
72 views

View Custom Object Field on Account Layout

I've created a custom object, customObjectA. One of those fields in the object has a Account(lookup) and another text field, lets call it fieldA. I'd like to have fieldA appear on the Account layout ...
2
votes
1answer
91 views

Can I create a field that updates with data from another object?

If I have a Shipping object that includes many fields, but the two for this purpose are Mailing_State and Rush (which is a checkbox) and I'd like to create another field called Time which holds the ...
1
vote
1answer
99 views

Order Price roll up in Account

I am trying to write a code for the below scenario but could not get is working correctly.. Account has a lookup relationship with Order object. (1:N relationship). Order has got a currency field. ...
6
votes
2answers
627 views

Salesforce1 - How to Enable the Standard Lookup Field Search on a Mobile VF Page

We have created a couple of VF pages that are Mobile Enabled. These VF Pages have 2 Lookup fields each. The problem I"m having is that on Android, I cannot open a search to find the records and on ...
5
votes
2answers
216 views

How to popup your own lookup?

I have a page full of apex:inputfield tags. On one of these inputfields I'd like to popup my own lookup window. What should my approach be? It seems that apex:inputfield is bound to a data field, ...
5
votes
2answers
2k views

trigger to autopopulate a lookup field via related record

There is a custom object. Every record has many fields. One is a lookup field in which we select an opportunity from lookup. What we want is another lookup field – Account__c which has to be ...
2
votes
1answer
34 views

How to display the Contact phone and contact email id in a custom object

I have a custom object 'Custom case'. I have selected a contact in the field 'contact name' using a lookup relationship. When the user selects a contact in that field corresponding that particular ...
3
votes
1answer
129 views

Fetching SObject Id from changes in Lookup fields using History tracking

I have set history tracking for my Custom Object and set a Lookup field for my referenced Object. CustomObjectX_c[Field1,Field2,Account_c] Here Account__c is a lookup field to the Salesforce ...
2
votes
1answer
357 views

How to pass default value for lookup in salesforce standard view page

I have a lookup field in standard page. when I click on a custom button in other page need to pass the default value for lookup field in my standard page. If I pass some field id and values in url ...
2
votes
1answer
163 views

Matching Custom Object's Data Using Lookup Defined by Multiple Fields?

Is it possible to setup a Lookup during data upload to a custom object that populates information such as a "Person ID" by finding matches of the "first name" and "last name" column combos in the data ...
3
votes
1answer
392 views

Lookup filter on visualforce page

I have a Custom Lookup field for Account and Contact on visualforce page After Selecting Account from 1st lookup field when i click the 2nd lookup field for Selecting Contact it should display ...
9
votes
2answers
347 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 ...
1
vote
1answer
536 views

ActionSupport with lookup field: is ActionRegion required?

I have a VF page based on the Case object. I have the standard contact lookup field on this page. When the user enters a contact, I would like to retrieve immediately the contact mailing address ...
7
votes
2answers
746 views

Can't get ID from lookup field using ActionSupport

I have a Visualforce page for creating new Cases. During this process, I want to retrieve the contact's mailing address whenever the contact lookup field is changed. I'm using ActionSupport but it's ...
6
votes
2answers
127 views

Lookup Filter “OR” Condition

I would like to start using a filter on one of our lookup fields. The lookup field is simply a lookup to a contact. However, I need the filter to have an OR condition (e.g. only allow contacts from ...
6
votes
2answers
556 views

Create a record in an object with lookup fields through java soap

I am pretty new with Salesforce and I am doing an integration where I have to update Salesforce with data from a Business System. I have a problem when trying to create new records in an object with ...