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

1
vote
1answer
13 views

Lookup dialog must return records related to the junction object

In my requirement I have a junction object between Account and Contact. Now there is a requirement that on the case object, where standard lookup field of contact and account are present, when I have ...
1
vote
1answer
18 views

Pull OpportunityContactRole value into VisualForce Template related to an Invoice

We're setting up a workflow to notify the finance department when an Opportunity owner flags an invoice as "ready to be sent". I've got a VF email template, relatedTo="invoice", and I want to pull ...
1
vote
0answers
14 views

Look up field not getting updated

I experienced this issue sometime back and do not remember a fix for it..I am trying to update a look up field for an object on a custom object. When i try to save it, the history says shows that it ...
0
votes
2answers
23 views

Is there a safe way to autofill values into a lookup field

I have junction object called Application and its related to contact and custom object postion. We also have a interview object which has a lookup to Application. position and contact. When i click ...
0
votes
1answer
23 views

Unable to configure Lookup Filter

I,ve one Parent object 'Patient' and Child Object 'Patient Services' and another Parent object 'Job'. On Patient Services Object one Look up field Named Patient related to Patient object & ...
1
vote
1answer
35 views

Newly created field not appearing on object filter criteria

I've created a new field in the Order object, it's a text field that is filled with a Name from another custom object. I want to use the text field in the filter but it doesn't appear in the list of ...
2
votes
1answer
25 views

Visualforce lookup to Account

I am developing a page which will allow a user to select an Account and it will use that Id to construct a URL. I have no objects in my org with a lookup field to Account, and therefore I cannot use ...
2
votes
1answer
21 views

Is there a way to have a lookup / free text field in Salesforce?

We would like our Staff (interal salesforce users) to be able to populate a field based upon a lookup of data in a custom object when submitting a Case. In contrast we also have an online form for ...
1
vote
1answer
20 views

Lookup field value in controller extension

I am creating a page where I am able to create a new case related the contact. In my controller extension in createCase() method, I am unable to populate the contact field( Lookup object on case). ...
0
votes
0answers
12 views

Dynamic picklist change based on Account value in opportunity page (standard) of Salesforce

Have a requirement where we need to remove a value from the picklist based on the Account name that is getting chosen. For example i have a picklist that has - A,B,C,D as choices. But , if i choose ...
0
votes
0answers
13 views

activities with multi select look up

I need help with finding a solution to a multi-select lookup in activity (Event in particular). Literally it should be a clone of the field Name (who -> Lookup(Contact,Lead). Activities does not ...
1
vote
1answer
17 views

Creating Visualforce account information form with account lookup

I am creating a VF form with account information input fields as well as other custom fields. I would like to create a lookup field for the user to select the account to work in. I am able to create ...
1
vote
1answer
34 views

Difference between dependent lookup and lookup filter

What is the difference between a dependent lookup, required lookup filter and optional lookup filter. I found those three concepts in many tests of salesforce and i didn't understand it.
0
votes
0answers
24 views

Custom Salesforce Lookup (Lookup/Create Account within Visualforce page using a visualforce page/class)

I have designed two lookup pages based on Jeff Douglas' article Roll Your Own Salesforce lookup, one for contacts and the other for accounts. The goal is to be able to create a contact and either ...
1
vote
1answer
24 views

Do standard lookups always follow: FieldName = RelationshipName + “Id”?

Can we say that all standard lookups/master-details/polymorphic fields follow a consistent naming convention across all standard objects? I'm talking about this pattern: field name = field ...
0
votes
0answers
17 views

Proxy Lookup for Event on junction object

We relate multiple Events to a Business_trip__c via a Trip_meeting__c object that has a Master-detail to Business_trip__c and a text field for the EventId which is used in visualforce pages and the ...
0
votes
2answers
41 views

Trigger lookup just not working

I am trying to populate a lookup field based off of a list of records in a different object. The problem is the 2 objects are not related but they have a field that is the same. Is it possible to do ...
0
votes
1answer
41 views

Get field values from an Account via look up.

In a custom object I have a look up for account. so once the account is selected from the account list the object will be somehow connected to the account. I need 2 fields in that custom object that ...
1
vote
1answer
18 views

Lookup object return null in trigger

For all this time, what I understand that I can get through look up field object such as Owner Name directly without need to write query, but after writing this code, it seem like I understand it ...
5
votes
1answer
47 views

What happens to Master-Detail after deleting (Managed Package)

When I delete a Master-Detail relationship in my managed Package Will it be replaced by a Lookup, like this Knowledge arcticle says? Will there still be a Master-Detail relationship in our customers ...
1
vote
1answer
27 views

Not Possible To Use Multiple LookupRows in a single HTML paste?

First time poster. I'm trying to use multiple LookupRows in a single HTML Paste. While I don't see anything in the documentation saying that this isn't possible. %%[Set @DE1Result = ...
0
votes
1answer
28 views

How to retrive time from standard look up field in opportunity

Hi i got a requirement like to get time in standard look up called CreatedBy in opportunity page. Is it possible to retrieve only time from that field. Because it is Look up relationship of user.I ...
1
vote
1answer
39 views

How to Give Default value to a LookUp field using Formula Editor

I have an action on which i have one Lookup Field "Year".Year is an object with only two records - 2015 , 2016. I have this value to be predefined as 2016 when user clicks an action While creating a ...
0
votes
1answer
49 views

Add new button to Custom Object Lookup dialog box

I have a number of lookup fields on an object. When I click the magnifying glass to select items from the lookup the Account and Contact object lookup dialogs have a "New" button next to the go. ...
1
vote
1answer
28 views

How to display lookup field using <apex:inputField [closed]

How can I have a lookup field <apex:inputField value="{!myobject.name}"/> //displays the name <apex:inputField value="{!myobject.id}"/> //displays id
0
votes
1answer
18 views

Match “custom ID fields” from Acc. and Cust.Obj and update lookup field with ACC Name by ID

i facing following issue: We Have Obj. Account and Obj. B__c. On Object Account we have a ID__c which stores an ID. Now we get this ID from an external System written in an text field on Obj. B__c ...
0
votes
0answers
47 views

How do I create a many-to-many relationship to the same object?

I have a need to create a hierarchy of products, where one product is the 'base' product and other products are used to make up a final item. For example the 'base' product is a chair, but the ...
3
votes
1answer
20 views

Update a drop down on a flow based on input on the same screen

In a flow Is it possible to update the choices of a drop down list on the same screen as the input? For example I have text field; enter zip code, this then filters a drop down list to allow users to ...
0
votes
0answers
17 views

How can I have an Account Field update if the Account has ever been quoted equal to or greater than a set number?

I am looking to have the Account record's field, let's say a checkbox for "High Profile," update if the Account has a Quote Total greater than a set number -- $10k, for instance. Thanks
3
votes
0answers
47 views

trigger to populate manager's manager in a lookup field

Way too new at coding to be able to figure this out, hoping someone has done this and can help me out or get me started. Need to use the managers' manager on an approval process for a custom object ...
0
votes
1answer
24 views

Changing all Contact owners in an Account when user lookup field on Account changes

I have a user lookup field on the Account that I want to control ownership for all the Account's Contacts. So for example, if the Account is owned by User1, and my user lookup field says User2, all ...
-1
votes
2answers
61 views

Apex input field of Type lookup is taking “Name” instead of “ID”

I have a inputfield of type lookup. It should contain Id of the reference Account but it takes the Name. Alert is showing name of the Account, where it should return Id. Please Advise. ...
1
vote
1answer
55 views

AMPscript: Using date in LookupOrderedRows is not working

I would like to use date LookupOrderedRows() My code: SET @DetailRows = LookupOrderedRows("ST_Import_date", 1, "ID ASC", "Import_Date", Format(now(),"MM/dd/yyyy")) When I try to get the rows with ...
1
vote
3answers
127 views

Check lookup field is null in apex

What is the best approach to check if a lookup field is null in apex? rec.lookupField__c == null; // OR rec.lookupField__c == ''; // OR String.isBlank(rec.lookupField__c ) // ? I ...
0
votes
0answers
33 views

Pass input field lookup value to standard controller

I have below Page code which I am unable to put values to the new record instance that gets inserted with commandbutton click. Can someone please let me know? Apex page <apex:page ...
1
vote
1answer
24 views

User lookup in my custom object is not showing the list of users available!

i have a custom object called ticket__c . it contains a field called user which is a lookup field for user object . while creating a new object onclicking the user lookup , it goes to a page but no ...
0
votes
1answer
27 views

Seeing all records in lookup dialog

Could we make the standard lookup dialog more usable. When new users enter the org and try to create a record with a lookup field in it- since they are not aware of the existing parent record names it ...
2
votes
1answer
46 views

Find the max owner for a given record

Schema I have a scenario where two records are related via Lookup. A -> B(has Lookup[A]) So parent A can have many related children B objects. Since A and B are related through lookup and ...
2
votes
3answers
73 views

Iterate over queried lookup fields

Example: Opportunity Opp = [SELECT Name, Status__c, Zone__c, Invoice__r.Amount__c, Invoice__r.Date__c FROM Opportunity WHERE ID ='006a12nlfoenlew']; I need to iterate over each field and see if ...
3
votes
1answer
132 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
1answer
47 views

Lightning icons are not loading as big grey boxes on VF page

I am developing a VF page using both apex and lightning tags where possible. I have been trying to create a lookup field using the code sample on the link ...
4
votes
1answer
97 views

Spring'16 issues with lookup-fields on <force:recordEdit> in standalone LightningApps and LightningOut

I'm trying to use <force:recordEdit> on a Visualforce page via Lightning Out. But there seems to be some rendering issues. Using a standalone Lightning App it looks like this: Using ...
0
votes
1answer
27 views

Change “what to do if lookup record deleted” for existing field

I'm looking at this question Don't delete record if it has a parent and the answer doesn't work; clicking Edit doesn't make the option to change the behavior available on the screen. The field is ...
0
votes
0answers
50 views

lookup field on opportunity of custom object in not updating through process builder

I have created budget custom object and related it to opportunity through budget look up field. so all opportunity come under opportunity related list on budget object. Like this: When I am trying ...
2
votes
0answers
29 views

Custom Lookup For Multiple Field in PageBlockTable

I want populate custom lookup in table for multpile fields For single Teacher lookup it is working fine I am reffering to Jeff Douglas Custom lookup How to implement the same in Page block table? ...
1
vote
0answers
42 views

When updating the ParentRecordId lookup field in a PartnerNetworkRecordConnection, is it normal for ParentRecordId not to update on the other org?

In my Salesforce to Salesforce connection, each time a case is inserted and/or updated in my source org X, a PartnerNetworkRecordConnection is created (after insert and after update) to forward the ...
0
votes
1answer
16 views

criteria for lookup

I created a lookup for sales people in the opportunity objects and I want them to be grouped according to the picklist in the account. However, when I create a lookup, the criteria should only be in ...
1
vote
1answer
21 views

How can I edit a draft version of an article with apex?

trigger CloseArticleFeedback on aft__Article_Feedback__c (before update, before insert) { for (aft__Article_Feedback__c f : trigger.new) { if (f.aft__Feedback_Status__c == 'Closed') { ...
0
votes
0answers
21 views

Lookup inputfield in Visualforce with multiple item match

I have a visualforce page with a user inputfield (lookup) and is bind to an object at the controller. Whenever there are multiple matches to my search text, the first item in the list is always ...
5
votes
1answer
89 views

How to access the lookup field's hidden Id with javascript

I have a visualforce page to do some CRUD operations on a custom object, which contains a lookup field to the account. I need to do some client side validations with javascript based on the Id of the ...