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
2answers
35 views

Can I get the mini layout hover to appear on any link, like it does for outputField for a lookup field?

I am trying to get the <apex:outputField> works as it works for a lookup field, which is a link pointing to the object and when you hover on it, it pops up with a dialog of the object info. ...
0
votes
1answer
22 views

Rollup via Lookup Issue

I put together a trigger that will perform a rollup summary (SUM) on a record that is associated via lookup. The trigger works perfectly if I want to include all the lookup records in the calculation. ...
0
votes
1answer
20 views

Lead Conversion: Lookup fields

I'm trying to convert leads, but I am having trouble when it creates opportunities. My opportunities have lookup fields that I would really like to auto populate (and be required). I can't use a ...
1
vote
1answer
43 views

Can you pull Data from a row based on date

I am trying to lookup a row of data based on a date and I am getting an error when I try to pull content based on the date column event if I put in the actual data instead of using the "Now()" date ...
1
vote
1answer
19 views

Trigger to send email based on Multi-Select Picklist

I have an object called Project__c. It has a multi select picklist field called "Markets__c". So a Project can have multiple markets. On the other side, Contact object has a field called "Market__c". ...
0
votes
1answer
13 views

Edit Master-Detail lookup field

i created a master-detail relationship and definitely added a lookup value and saved the new record on the detail side. Now i wish to change the lookup field value to refer to some other value in the ...
0
votes
0answers
16 views

Salesforce1 Lookup Component

I am disappointed by the almost total lack of usable lookup components out there for Salesforce1, given that the app does not support inputField for lookups or dates. Dates are pretty easy with JQuery ...
1
vote
1answer
31 views

Is it possible to populate a field of type Auto Number External ID?

I'm trying to populate a Lookup using External ID which is Auto Number field. It is giving the error: Compile Error: Field is not writeable: Opportunity.Opportunity_Number__c Opportunity_Number__c ...
0
votes
1answer
30 views

How to display the complete row from the data extension?

I want to display the complete row from the data extension on the web page. %%[ VAR @Rows,@email SET @email = QUERYPARAMETER("email") SET @data = QUERYPARAMETER("Trigger") SET @Rows = ...
2
votes
1answer
42 views

AMPscript LookupRows Function Not Working

I am using a Landing page to display the desired row from the Triggered sends using the LOOKUPROWS function. As below %%[ VAR @Rows SET @Rows = LOOKUPROWS("abandon_cart","firstName","XYZ") ]%% ...
2
votes
4answers
41 views

Remove lookup value once selected in a record

If I select a value on a lookup field on a particular record, is there a way that this selected lookup value gets hidden and does not display in another record? Lets say I have an object Object1__c ...
3
votes
1answer
29 views

InputField with lookup relationship not working within a table

My issue is after putting a lookup input field into a table, although it displays properly and by clicking the lookup button it can successfully open the lookup dialog, it can't select - When I click ...
0
votes
1answer
26 views

Self look up and Reporting Requirements

For one of my object (for e.g. Bug), we want a self lookup to the same object to store child records (for e.g. Child Bugs). After that I created a custom report type on Bug with child object Bug. I ...
0
votes
1answer
57 views

Display Parent, child and grandchild's records

Once a parent(Contact) is selected I have to display a list of related records from child, grandchild and grandchild's child in one single page block. All the objects are in a lookup relationship with ...
0
votes
0answers
16 views

Data Load into Accounts (Std Obj) with a Lookup to Custom Object

The issue is that I am not able to map the LookUp Field with a value from the CSV as the Lookup Field is not displayed for Mapping. Tried Import Wizard, Data Loader, Workbench, Jitterbit ... None of ...
0
votes
0answers
25 views

Lookup Field Icon Doesn't Show Up On Sites

I am developing a site under my organization and a Case Management panel in it. I prepared a page called NewCase and basicaly built a template that includes Case fields in it. But lookup fields ...
1
vote
1answer
23 views

Lead trigger test fails - newbie alert!

Trying to write a trigger to set a lookup field (Account) on the Lead object, which is based on Account ID as a string that is passed through from an external form)... I have a working trigger (100% ...
1
vote
2answers
58 views

Need Help with Validation Rule(s) on Stage Changes

Need help with validation rules: Just found out our salespeople are not required to move their opportunities stage by stage. In other words, they can go from ‘Set Meeting’ to ‘Negotiation’ and bypass ...
0
votes
0answers
22 views

Contact's child records transfers

I have few custom child objects (lookup relationship) of Contact. My requirement is if I change the Contact owner from User A to User B, I want the child records of that Contact to be transferred to ...
1
vote
2answers
59 views

Change lookup dialogue's record display format

How to change the lookup dialogue's record display format. Whenever I click on a lookup field to display the list of records, it only displays me "Recently Viewed" records, however I need to view all ...
1
vote
0answers
15 views

Average of number of rows in a custom object with reference to Another custom object field

I created two custom objects (Orders & Order Items) Orders - List of Orders with Total Price and Other details Order Items - List of Items in an Order with reference to the Order Id in Orders ...
0
votes
0answers
42 views

I must be misunderstanding lookups

I feel I must be completely misunderstanding lookups, but regardless of where I search I can't find an answer to my problem. I have 2 existing objects. A standard object (Idea) and a custom object ...
0
votes
1answer
35 views

Contact's child records transfer

I have few custom child objects (lookup relationship) of Contact. My requirement is if I change the Contact owner from User A to User B, I want the child records of that Contact to be transferred to ...
1
vote
1answer
26 views

Account Reference returning null value causing and causing 'Owner Cannot Be Blank'

I'm trying to write some APEX to get the Owner of an Account (Account__c) referenced by a Lead and set that Owner as the Lead Owner. I'm running into an error where the variable contains a null ...
1
vote
1answer
21 views

Creating a lookup on Parent object's field

Can we create a lookup on one of the Parent object's field i.e create lookup on Child Object (Field B) to Parent object's field (Field A) such that at the time of record creation, Field B gives the ...
1
vote
1answer
82 views

REST API: How to insert values for picklist and lookup field types?

Introduction Hello, I'm working on synchronising data from a MySQL database into Salesforce using the REST API. I've got as far as inserting basic text values, but for complex field types such as ...
1
vote
2answers
45 views

How can I create an owner lookup field similar to change owner on any record

We have a request for a field to show a referral from internal sales users. I thought rather than a picklist that we would have to constantly manage, maybe there was a way to use the built in user ...
0
votes
2answers
41 views

GetChildRelationships not finding contact lookups for custom object

I have a custom object with many custom fields. Some of these fields are lookups to contacts. I have a visualforce page on which I need to list all contact fields for this custom object. I am using ...
3
votes
1answer
65 views

Access Id of Contact from lookup field

I'm working on an Opportunity trigger and trying to pull the ID of a Contact that's connected via a lookup field on the Opportunity object called "Inbound_Contact__c". However, when this gets ...
2
votes
2answers
57 views

Lookup Populate with Javascript

Greetings and thanks in Advance! Have a visualforce page that allows a user to create a related lookup object. <apex:inputField id="newCompetitorAccount" ...
1
vote
1answer
123 views

Related List not visible for selection from Page Layout

I have a custom object called Partner__c It has two lookup relationships to Contact standard object as shown below. But in Page Layout I am unable to see the Contact object available in the ...
0
votes
0answers
122 views

Add custom lookup field in VisualForce page

I want to create a VF page that displays a Custom Object's Lookup field. I create the object in my apex controller class using the new keyword and would like to add a lookup field to write another ...
0
votes
0answers
19 views

Lookup editable only in edit mode [duplicate]

I created a custom lookup field, but when I add the visualforce page (the lookup) to my object page, he stays editable in the details page. I want he stays read only at details page and editable on ...
2
votes
0answers
81 views

Using a Lookup Relationship in a Formula Field

I want to update a field on the the account object based on a field being updated on the contact object, in this case a date / time field. So far, I have setup a lookup relaionship field on the ...
0
votes
1answer
23 views

Custom Lookup Design

We have a Custom Object called "CaseEvents" which is a child to the parent standard object "Case". Case-CaseEvents is 1:M relationship. I would like to perform the following configuration a) ...
1
vote
1answer
56 views

Accessing lookup fields within trigger context

I have a custom object Customer with a few fields. One of the fields is a Lookup field that refers to a standard object Account. I'm writing a trigger that should fire before each insert/update. The ...
0
votes
1answer
43 views

Lookup Window From SelectList Option

Here's the deal: I have a search field that searchs the object selected from the list, presenting the results below in a table. But in my next step, i want to add the lookup icon next to the text ...
1
vote
1answer
76 views

VisualFlow - Field Lookup

I'm creating a flow and was wondering if there exists the capability to lookup records on the input screen. On the standard record creation page, some fields have a lookup icon, shown in the ...
1
vote
2answers
107 views

Hey I am developing an auto complete field instead of lookup and i want to save that field in controller on click. how can i do this?

Hey I am developing an auto complete field instead of lookup and i want to save that field in controller on click. how can i do this? I tried storing that value on click method but i am not even able ...
1
vote
1answer
38 views

Test Code for Apex Trigger - Trigger works but Test Code fails

I have this trigger code to pull down a contact lookup relationship from Account to Opportunity. Code below: //trigger to update relationship_manager on contact based on account trigger ...
0
votes
3answers
78 views

Prepopulate custom field in Contact Object Based on its Related Account Object

We have a custom field named "Region__c" in the account object. The same field is also present in the Contact object. When we select an account form the contact edit view we want to populate the ...
1
vote
2answers
71 views

Making a lookup readonly?

I tried to make a lookup read only from page layout and tried it from profile. But I am not able to make it read only on my standard page. Is it possible to make a lookup read only. Because we have ...
1
vote
1answer
97 views

How to Populate text field values onto a lookup/picklist?

Subscribe system object has a text field "legacy ID". 1 account can have many unique legacy ID. I have a new object Sub Details wherer I want to populate a picklist/lookup containing all legacy ID ...
3
votes
3answers
146 views

Custom object list view filter criteria does not return results

This is a pretty basic question but I have a list view that I created on a custom object that should be returning results but is not. Object B has a lookup field to Object A,. So lets say I have 2 ...
0
votes
1answer
42 views

lookup realtionship in triggers between two objects

for example in a lookup relation,customer object is a parent,bike object was child, both have same amount__c field ,when we enter the amount__c value in customer obj automatically update the amount ...
1
vote
1answer
49 views

set custom field value to other field of same object

I am trying to set the value of one object in a custom object to be the same as the value of another object before deleting the first object. When I use the assignment operator, nothing happens ...
1
vote
0answers
39 views

Change custom lookup on object through trigger

I'm trying to create a trigger that will remove a custom object called customer when another customer with the same first name, last name and title (MR, MRS, Miss) is added, so only the second entry ...
3
votes
1answer
31 views

External SalesForce Forms

Is it possible to create external SalesForce Forms that can populate fields in the same way as inside salesforce? We offer online teaching and the idea is that teachers, after every lesson, can fill ...
3
votes
1answer
42 views

Mandatory to create Junction object?

I have attached a screenshot of the schema. I have order, order_lines and shipment_lines related as in the following picture... Is it mandatory to create a junction object to get shipment lines for ...
4
votes
3answers
94 views

How to construct mileage expense formula without hard coding the mileage rate into the expense field

I have created a "mileage expense" formula field which calculated the "miles" field by the mileage reimbursement rate - $.56 - hard coded into the formula. Mileage reimbursement rates change at least ...