This type of relationship closely links objects together such that the master record controls certain behaviors of the detail and subdetail record.

learn more… | top users | synonyms

4
votes
2answers
44 views

profile object permissions for a detail record

When readng through trailhead salesforce I came across a line which I am unable to digest. The line says - "You can’t set profile object permissions for a detail record". What does this mean? In my ...
2
votes
1answer
19 views

Do roll up summary calculations count against the CPU limit?

Hopefully a straightforward question - if I insert/update/delete records into an object that is a detail of another object, does the server performing the roll up summaries count against the platform ...
0
votes
1answer
23 views

N>Help with Passing Values from one Object picklist to another Object text

I have 3 objects Contact, mList and mEvent. mList is a junction object which has master-detail relationships to both Contact and mEvent. The mEvent has a picklist field called Group_Level__c (values ...
1
vote
2answers
32 views

Unable to create Master-Detail relationship field

I am configuring a many-to-many relationship between custom object and Contact. For this purpose I created a junction object. Next, I have to create 2 Master-Detail relations. One for custom object, ...
3
votes
0answers
28 views

Re-parenting Master-Detail relationship in managed package

I have installed a managed package in my org and unfortunately one of its master detail field(of one object created by managed package) is not allowed for re-parenting. i.e., "Allow reparenting" ...
4
votes
2answers
33 views

Is it possible to query the lookup object fields of child object?How to do it?

We have a parent object say ParentA with its associated child object as ChildA with a custom field customerName of type lookup(Account). Now I would like to retrieve AccountNumber, which is field on ...
0
votes
1answer
22 views

Lookup Filter with related fields that are more than one relationship away from the lookup object

I want to add a lookup filter for the lookup between Package Version and Release. So I just can choose Releases which are linked to the same Program as my related Package. This is not possible ...
4
votes
1answer
24 views

Look up to Master-detail through MetaData API: “cannot add master-detail relationship due to existing data rows”

Trying to change the existing relation between A(Parent) and B(Child) from Look up to Master- Detail. Deploying "B__c.A__c" using ANT. Ran a query on B and made sure all B__c.A__c is populated (As ...
0
votes
1answer
36 views

Call Child Object Fields Using Visualforce for Master-Detail Relationship

I am attempting to create a visualforce table section on the Account object. The Card Spend object is a child via master-detail to the Account object. I keep getting "Error: Invalid field ...
0
votes
0answers
11 views

Is field master detail [duplicate]

is there any way I can find out if a field is a Master Detail? Right now I have implemented a code that throws a false positive in a required lookup field. Map<String,Schema.SObjectField> ...
0
votes
2answers
58 views

Delete trigger error message on deleting a Master object record

I got two objects Business_Unit__c and Project_Portfolio__c having Master detail relationship and the junction object is, Business_Unit_Project_Portfolio_Lookup__c. I want to display an error message ...
0
votes
1answer
27 views

Detect if related list exceeds a specific number

I have two related objects example Teacher and Student. Inside my parent object Teacher I have a field maximum_number_of_student.What I want is that if I add a new student the code will check if I ...
2
votes
2answers
41 views

Unable to query child record through inner query

I have custom objects called 'Project' and 'Status Report'. Project is a parent and Status report is child in a master detail relation ship. With in trigger i wrote below query and getting the below ...
0
votes
0answers
18 views

Create & Retrieve Nested Records with iOS SDK

How can I create and retrieve nested records with the iOS SDK? Is this even possible? I have 2 objects with master-detail relationship and I'd like to be able to create and retrieve them in one ...
2
votes
1answer
39 views

Any reason not to use Lookups instead of Master-Details for Junction object?

To build n-m relationships one needs a Linker/Junction object with two references. The Salesforce documentation recommends two Master-Detail relationships. Is there any reason why not to use two ...
0
votes
1answer
31 views

Can a master-detail relationship be added to an object deployed in managed package?

I have been trying to find out how adding a new master-detail field to a released object (Object released in SF Managed Package), would impact the upgrade process. As far as adding master-detail ...
0
votes
1answer
16 views

Is there a way to update a <apex:detail> in a visualforce page with a custom save extension?

We have a VF page that were using, and we are displaying the related lists with the standard tags. Is there anyway we can use a save button feature that can go through and get the related records and ...
4
votes
1answer
111 views

How to implement Lookups in Lightning Components?

Assume you have a Lookup or Master-Detail relationship defined in the metadata and now you need a simple UI. In Visualforce lookup-controls on the UI run out-of-the-box using <apex:inputField ... ...
0
votes
0answers
32 views

*URGENT* Master detail field is not populated by using the same trigger which is working fine with Lookup

trigger FetchID on CustomObject1__c (before insert, before update) { List<string> CompanyID = new List<string> (); for(CustomObject1__c agc: Trigger.new) { ...
1
vote
0answers
31 views

Hide Related list on parent Page layout for users not in Opportunity Team

I need to hide related list on opp page layout for users who are not an opp Team member. The related list is a custom child object XYZ[Detail] of opportunity[Master]. How to implement it ? Please ...
0
votes
2answers
52 views

How to prevent trigger firing on the detail object when master object is inserted/updated

Hi I have 2 custom objects and have a master-detail relationship between them. Master : Certification Slot Detail : Certification Slot Detail I write a trigger on Master object for a ...
2
votes
1answer
514 views

Inner SOQL child to parent query

I have written the below parent to child inner query which works : List<master__c> masterObj = new List<master__c>([Select id, (Select ID FROM detail__r) FROM Master__c]); Which ...
1
vote
2answers
44 views

Auto Update Child Relation

Suppose I have an Appointment Object, which has Date, Specialization (picklist), and Patient(Master object-record type of standard object, Contact) I have another object, Visit, which also have the ...
0
votes
1answer
96 views

External Lookup Relationship

I want to create a master detail relation ship on my contact. But instead of master detail i am able to see External Lookup Relationship. what is the use of External Lookup Relationship, and where is ...
1
vote
1answer
59 views

Compare two parent objects

I have a junction object which has a master detail relationship to account and market. This junction object can only be created from account. When user clicks new, Account will already be prefilled ...
2
votes
1answer
45 views

Restrict access to sibling records (in community)

I have a sharing/permission issue I cannot work out simply. My structure is a top-level object called "Project", which has a Master-Detail (because we need roll-ups) to a child called "Assignment" ...
1
vote
2answers
38 views

System.NullPointerException parent child relationship

I have a child object of Parent Account name Vendor . I want to create multiple vendor on one account record. I have created master detail relationship between these two. When i want to ...
2
votes
1answer
35 views

how to create a salesforce rollup field thats not on a master record in pro edtion

I have a object called key account with all the accounts that belong to this key account connected - the connected accounts have a sales total field which i what to add into a total on the Key ...
5
votes
2answers
69 views

How to denormalise a Master-Detail relationship

Contacts have Specialities (skills) to sell so I have a Master-Detail from Contact to Speciality. We sell Product (1/2 day, full day) for those Contacts so the Product has a lookup to the Contact. ...
1
vote
2answers
130 views

SOQL query, Master detail relationship for custom objects

I have to object Student and Student Object, based on student id passed throug query string I am retriving Student data using query, I have observed that, for the Student detail field the id is ...
3
votes
2answers
61 views

Dont see Master-detail relationship type field on Entitlement object

Why cannot I see Master-Detail Relationship as an option when I try to create a new field in Entitlement object? (See image)
2
votes
2answers
178 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 ...
0
votes
4answers
161 views

query flat list of records including parent and child fields

I have two custom objects in a master detail relationship where Proposal is parent and Question is child. I need to create a page where all the questions in the DB are shown along with certain data ...
1
vote
2answers
111 views

Referencing a Custom Field in a Master-Detail Relationship

I have a new custom object (let's call it fancyobject) that I want to have use Accounts as parents (i.e. there will be many fancyobjects for each account). The purpose of this is to upload data from ...
5
votes
2answers
237 views

Please help me turn this SQL query into SOQL query.. I'm stuck

I've been trying to figure out how to turn this SQL query into a SOQL query. Every time I think I am getting better with SOQL something comes along and erases that thought. Account is the parent ...
2
votes
1answer
82 views

Can Conga Use One Template Multiple Times in one solution?

We have to produce an official document from information contained in two custom objects that have a master-detail relationship. I can have one template for the master object and another template for ...
1
vote
1answer
44 views

Master details relationship

In the master Details relationship If the parent recors is deleted child record is also deleted right . My requiremen is if parent record is deleted child record does not deleted . so how can i ...
1
vote
2answers
805 views

How many master-detail relationships per object?

All I see online is that each object can have 2 master-detail relationships, but on the Salesforce App Limits PDF : https://na5.salesforce.com/help/pdfs/en/salesforce_app_limits_cheatsheet.pdf It ...
1
vote
3answers
140 views

Apex update trigger - updating Detail Fields

I have a situation where I have a two objects called Premises and Location. I have a master detail relationship from Premises to Location. I want to write a trigger so that whenever a recored is ...
0
votes
0answers
72 views

Inline Visualforce page on master object page layout with detail object fields

I was wondering if there is a way to create a Visualforce page to be used inline on a master object's page layout that has fields from a detail object. For example, Object_A will be the master object ...
2
votes
1answer
299 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 ...
0
votes
0answers
40 views

Querying Master Object From Child Object PHP Toolkit

I am a bit new to salesforce and coding. I have integrated my salesforce through php toolkit and is trying to update opportunity and account through a web form. Uptil now I am successful in updating ...
2
votes
3answers
1k 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 ...
1
vote
1answer
94 views

Field not writable after Database.rollback() and clone()

This is my custom save method: private void saveNewMode() { Savepoint toBeforeState = Database.setSavepoint(); try { insert parent; for(ChildA__c prs : childrenA) { ...
1
vote
2answers
112 views

Creating custom object for class roster that would pull a list from contacts

I am helping a local non-profit organization that does leadership training. They need to create a roster that will pull a list of contacts for the roster, and also store few topics that they worked ...
1
vote
1answer
35 views

Why Roll-Up Summary enabled automatically some standard object?

This article might be old one but I need to know clearly. Actually we can't be create MD relationship in standard objects only custom object am I rite? Roll-Up Summary support in only MD relationship. ...
1
vote
0answers
24 views

Lead with Companies

I want to create a tab called Company that will be connected with the Leads. More specifically if a company has multiple leads I want to categorize them. Lets say that the company has Company Name ...
5
votes
2answers
2k 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 ...
0
votes
1answer
144 views

DML Exception handling

In a master-detail relationship, if there is an update of the detail, presence of roll-up summaries causes master record's updation. If the update on master fails owing to any validation rule, is ...
1
vote
2answers
535 views

Error: Didn't understand relationship 'Contract__r' in field path

So I have read other responses to the error like mines but nothing seems to fix the issue maybe someone can look at my code and help. I have in my controller class (trying to do an add and delete ...