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

3
votes
0answers
24 views

Save & New Button for Visualforce page with data on lookup

public class ProductController { ApexPages.standardController m_sc = null; public ProductController(ApexPages.StandardController sc) { m_sc = sc; } public Pagereference ...
3
votes
3answers
91 views

Lookup field value through query is gibberish?

I have a custom object (Team_Assignments__c) with a lookup relation (Team_Member__c) that references the User object. Team_Member__c should be the name of a user. However, my SOQL query for the ...
0
votes
2answers
43 views

SOQL: I need to display a Visualforce list of cases where each row can be expanded to display indirectly related cases

So there are 3 case records types: A, B, and C. A and C cases both have lookups to B cases, but otherwise have no direct relationship. I need to display a VF list of A cases where each row can be ...
4
votes
1answer
25 views

Salesforce URL Hacking - Ability to remove the 'multiple items found' error

I've created the following custom button on my custom object to automatically lookup the contact and account names when the custom 'new' button is selected from a contact's related list: ...
0
votes
0answers
19 views

Subset of Accounts Object

I'm trying to create an object that has a lookup to Accounts that will hold say 5 out of 25 accounts. Then another custom object will have a lookup to only those 5 accounts. My problem is the lookup ...
0
votes
1answer
40 views

Roll up Summary via trigger for lookup relationship

I am trying to get this trigger to work but it is giving me an error and I am not able to figure out why. The error I am getting is "attempt to de-reference a null object) Why trigger? We have a ...
0
votes
0answers
15 views

Override Contact Lookup with Visualforce page

I have been experimenting with Jeff Douglas' "Roll your own Salesforce popup window," http://blog.jeffdouglas.com/2011/08/12/roll-your-own-salesforce-lookup-popup-window/ I have configured it ...
1
vote
2answers
48 views

Can Many to Many relationship be achieved using lookup relationship?

My question is... We normally create master-detail relationship to achieve many to many relationship. Instead of using master-detail relationship on junction object can i use lookup relationship to ...
4
votes
1answer
33 views

Can you create a Lookup to a Task?

I do not see Task/Activity/Event as an option for a Lookup on my custom Lookup on the Case object. I know Tasks are treated differently than other object but I cannot find any documentation stating ...
2
votes
2answers
65 views

Lookup field not populating on Visualforce page

I have a custom visualforce page and controller and am attempting to populate a lookup field on that page. Often the lookup will contain a value already, and I would like for the value to . According ...
1
vote
2answers
31 views

Is there any way to insert data into a lookup field without an associated relationship sObject until the real data can be inserted?

How can I programmatically create an object with a lookup field to an object that would be added at a later time? Is it possible? If yes, what is the best way to do it? I would like to use this to ...
1
vote
1answer
17 views

Auto populate fields based on lookup field value

There is a contact lookup field in opportunity object. When ever user selects the contact value, the shipping custom fields in the opportunity should be auto populated with the mailing address values ...
0
votes
3answers
18 views

Lookup Filter criteria on an object

When you have a Lookup Relationship with defined Filter Criteria, you cannot provide a Profile or User with the option to override or neglect this Relationship. If you are using active Integration or ...
3
votes
2answers
73 views

Auto Populate a Lookup Field based on a field value

We have a custom object "OrderItem__C". This custom object has a lookup field to standard contact object. It also has a field called "Shipping_customer_number__c". We have this same ...
0
votes
1answer
21 views

New Button on Lookup Search Layout

On my Opportunity object I have a look up to Primary Contact. I would to enable users to create a New contact when using the lookup. I would like to have a 'New' Button next to 'Search' search layout. ...
0
votes
2answers
57 views

1 to 1 look up for a field on the same object

I am trying to do a 1-1 look up relationship of the same object. This is the situation: I have a look up in my account called partner (Partner__c) and it is a look up to the same object (account). ...
2
votes
1answer
41 views

How to disable or readonly lookup field in standard page

EDIT: On a standard page. NOT using VF page Is it possible to write a validation rule or any approach to make a field disabled once the user save? I have a page with couple of fields including ...
5
votes
1answer
51 views

Account lookup on Opportunity not filtered correctly from Visualforce page

Visualforce Our organization uses a Visualforce page to override the New Opportunity action. Below is a functional sample of the Visualforce page that specifies the Account lookup field and ...
0
votes
1answer
25 views

Filter Account Lookup by Record Type to match correlated Opportunity Record Type

Notice: The below question does not address the issue we were trying to solve. The real issue had to do with a Visualforce component (see the update). Jenny B's answer provides good information for ...
0
votes
1answer
59 views

Make Lookup fields read only on a VF page

I have a VF page for creating a new record for a custom Object. It looks like this There is a lookup to Service_Contract__c. I needed to autopopulate it (which was the whole reason behind creating ...
3
votes
0answers
26 views

Custom Mapping Parameter File

This is kind of an odd scenario and I was wondering if anyone had seen anything like this before. We have a custom object called Financial_Account__c which stores information about our customers' ...
1
vote
2answers
32 views

How does the default contact name field on case work?

There is a default field on the Case object that uses a lookup on Contact to display the contacts name. I need to make a custom field on Case that displays a custom text field from the Contact ...
1
vote
2answers
42 views

Error on Lookup

i have a new problem, I receive the error message List has more than 1 row for assignment to SObject Trigger.MoveAtt: line 9, column 1 for the following trigger. trigger MoveAtt on Attachment ...
2
votes
3answers
141 views

Simple lookup query failing, I'm not sure why

I have 2 Custom Objects, Parent and Child. Child has a lookup relationship with Parent. If I query Parent__c on the Child object, I get back the Parent object's Id, which is correct, But if I ...
0
votes
1answer
28 views

Lookup filter on a junction object [closed]

I need to make a lookup on Object A that looks up on the Contact object. Filter Criteria: Object A has an event attached to it. The event has a list of contacts. How can I create a lookup filter ...
0
votes
0answers
35 views

2 Lookups of the same object

Facing an issue with 2 look-up fields of same object. When i used both the fields on the same page only one is getting selected. Steps to reproduce - 1. created 2 look-up fields of same object 2. ...
0
votes
1answer
48 views

Update newly created record's lookup field, using Id from just created lookup relationship

I need to create a new Case, populate the Case's lookup Project__c field with the Id of the Project which the Case has been created from, then populate the Program__c lookup field with the Id of the ...
2
votes
0answers
16 views

Salesforce1 Autopopulate Lookup Field [duplicate]

I have a custom button on my related list. I am doing url hacking on the web page to populate a lookup field. This seems not to be working on Salesforce1 . Is there any way to autopopulate a lookup ...
2
votes
1answer
194 views

Setting lookup field to blank using Process Builder

Pretty similar to Set Picklist field to blank with Process Builder, is it possible to do this for lookup fields? The only workarounds I'm seeing is doing this in a separate flow, which kind of offsets ...
-1
votes
1answer
43 views

Lookup for some object

I have a picklist that contains list of viable objects like account and user, for example, and I want, based on value of this picklist, make "lookup" for records of this object. I thought of somehow ...
2
votes
1answer
98 views

Auto-populate lookup fields

I have a standard Object (ServiceContract) which has a Master-Detail relation with ContractLineItem (also a standard object). ContractLineItem further has a master-Detail relation with a custom object ...
1
vote
2answers
38 views

loading XML files in to a Data extension and using it as a look up table

Does anyone know if ExactTarget can load a XML file in to a Data Extension and how do i do it? Do i need to convert the XML in to a CSV file? I want to use the XML as a lookup for an email. Any ...
1
vote
2answers
99 views

Look Up relation Vs Master detail relation

I have small doubt in choosing between look up field and master detail field. I have a custom object say cObj1 which should always be related to some other object say cObj2. So I can opt for ...
0
votes
1answer
53 views

How do I set a Lookup field for an Asset name via a Visualforce page

I am creating a new Case via a VF page in a VF+Tabs Community (not using SFDC stylesheets) and want the user to be able to set the Asset Name to the Asset related to their new Case. The Asset Name is ...
0
votes
2answers
24 views

Picklist return lookup as dependent

I have a request in the case object with fields: Requestor: Lookup user Are you the user affected? Picklist (yes/no) Then if the answer is YES = a field called User affected is filled with the ...
5
votes
1answer
71 views

Why does a lookup to custom object on sites give invalid ID?

I am developing an internal site for all company employees (basically an intranet). I am using a visualforce page but it must be externally available because not all company employees have a ...
0
votes
0answers
34 views

Populate Lookup field to user on one of the object based on multipicklist value criteria of related records

I have 2 object A and B,both have lookup relationship where A is parent. A has one field X which is lookup to user B stores the Sales member records and other details It has fields like ...
0
votes
1answer
21 views

Unable to populate in the lookup section

I have created two objects owner and contractor. I have created ownercontractorassociation as junction object for the above objects. Now when I am clicking on the lookup option, and clicking on the ...
0
votes
3answers
98 views

Populating Lookup field from picklist on same object

trigger Wholesale_State on Account (after insert, after update) { for (Account a : Trigger.new) { if (a.Wholesale_State__c == null) { a.Wholesale_State__c = ...
3
votes
1answer
184 views

Access related object via lookup field in email template

I have one object called Service Request, them I have a lookup field of Account with retrieves me the name. In my email template I must show up: Account: _______ & Account Code:______ My ...
0
votes
1answer
59 views

Lookup filter to display Contacts related to selected Account

I want to apply a lookup filter on Quote object on the lookup field "Contact". The filter should be such the Contact lookup dialogue box should only display the Contacts related to the Account ...
1
vote
0answers
54 views

apex:outputField of a lookup relationship field - is there a way to open in new tab

We are using apex:outputField for some lookup relationship fields and enjoys the benefits of Salesforce supported pop up. But the link will open in the current tab. Is there an easy way to set it ...
0
votes
1answer
84 views

How to retrieve records from two objects which has lookup relationship?

I have Custom object DriverEfficiency__c which has (contact(lookup),Car_Meter_Reading__c,Efficiency_Rating__c,Fuel_Liter__c) fields. The Problem is I need to create a Vf Page to retrieve records from ...
0
votes
0answers
36 views

How to dynamically bind an object to a lookup field? Or how to implement something similar via custom logic?

I am aware that when creating a look-up field, we must specify what it is going to look-up to. So I probably need a custom page to handle this, which is OK. But here is what I am trying to do: ...
1
vote
3answers
53 views

Inserting a record with Lookup value

I'm trying to insert a custom object record which contains various custom fields and also a lookup field. Is it possible to insert the record without specifying the lookup field value? I've tried ...
1
vote
0answers
26 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
55 views

Parent account field determine child account field values

I have a custom text area on Accounts called Geographic_Locations__c. In this text area, I list various US cities, each on their own line. What I am looking to do is to have each line of text ...
2
votes
1answer
56 views

Copying field value from related record to custom object

I've got a custom object with separate lookup fields for Lead and Contact. What I'd like is that when the record is saved with a lead or a contact, a trigger fires and pulls the Lead Source from the ...
4
votes
2answers
235 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 ...
3
votes
1answer
42 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"/> ...