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

1
vote
1answer
13 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
14 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
28 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
20 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
1answer
36 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
37 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
1answer
28 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)
1
vote
2answers
60 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
61 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
51 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
174 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
31 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
27 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
109 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
96 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
44 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
116 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
19 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 ...
1
vote
2answers
153 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
55 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
75 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
28 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
22 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 ...
4
votes
2answers
342 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
76 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
218 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 ...
1
vote
1answer
193 views

How to create required Master-Detail Records before insert?

I have a custom Registration object with a Master-Detail lookup to a Contact Record (The Registered Contact). Often, when creating a new Registration Record the Contact record does not exist. The ...
0
votes
0answers
22 views

Master detail filter on transaction object based on M-D relation of master data

I have two custom object having Master detail relationship. These objects contain master data in my org Say Challenges and Actions. Here Challenges is master and Actions is detail object. Now i have ...
1
vote
0answers
67 views

Visual force Page throwing error on New record

I have a related list on a master record, when I clicked NEW on the child record it is suppose to bring the visual force page(which by the way works fine for edit), but instead it gave the error ...
2
votes
1answer
146 views

Visibility of records in a junction object - AND based or relationshipOrder based?

I have a question about junction object record visibility. I will start with a snippet from an SFDC document: ...
1
vote
0answers
132 views

Apex Sharing for granting record access to other users

There is a scenario in which an opportunity is created by a Sales User.Hence in this case the Opportunity Owner is the Sales User. This opportunity needs to be teamed up with other sales user so that ...
0
votes
1answer
102 views

Is there a way to create a master-detail to the Campaign Member object

TLDR; Is there a way to build a joint object between the campaign member and account objects? If not, what are some other methods to design the SFDC database to capture the specific individuals that ...
1
vote
1answer
89 views

Access Denied on Master Detail record

Here is my situation. I created the following objects as System Administrator. Object A - custom objects with only standard fields Object B - custom object with only a Master-Detail field to the ...
1
vote
2answers
94 views

How to integrate contacts with a custom object

I have a custom object that I wish to use the standard contact object so I do not need to reinvent the wheel by making my own Name, Address, Email etc fields. I made a master/detail on the custom ...
0
votes
2answers
45 views

Salesforce Community: Unable to update Contact's Child record

I have setup communities in my partner Org and trying to maintain vacation for all my Contacts. Below is the object properties: Account (Private) Contact (Controlled by Parent) Vacation (Custom ...
0
votes
1answer
295 views

Change account owner with external id on user - partner wsdl (C#)

Using the partner WSDL Is it possible to update the owner of an Account by passing an external id through the Account.owner field? It is my understanding that this field is actually an Id field and ...
1
vote
2answers
188 views

Need Help on Roll up Summary Fields

I have two objects Test Plan ( Master ) and Test Plan Script ( Detail). Test Plan has 2 roll up summary fields - "Scripts passed" and "Scripts failed" where summary type = count and filter condition ...
0
votes
1answer
245 views

Junction Object Lookup field

I have the following structure: Authority__c-----------------ContractToAuthotiy__c --------------------Contract__c StartDate__c (Date) Authority__c (MD Lookup) ...
0
votes
1answer
110 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
36 views

Issues on a LIST button

I have a list button that on clicking take me to page /apex/abc . In that page I have a input field called account : order__c.account__c that is a master detail child to Accounts and a button. My ...
0
votes
1answer
108 views

How to create Rollup summary between standard and custom objects where the detail object displays the total amount of opportunities.

I have two objects 'Opportunity' and 'Project'. I want to create a Roll-up summary where the sum of all opportunities raised to a particular project can be displayed in that Project object. The ...
1
vote
1answer
90 views

Updating master record with contents of detail record

I have a master detail relationship between accounts and a custom object, memberships. The membership object contains fields for start date, end date, membership package (picklist) and subscription ...
0
votes
2answers
159 views

Rollup Opportunity fields on Custom object

I have custom object that is between Account and Opportunity. I need it to roll up some of the field from the opportunity, but I can't because the opportunity cannot have another master, and rollups ...
1
vote
0answers
183 views

Add new record, then add master-detail record on save

I have a master-detail record that works like this: Contact > ContactEmail > Email (based on this many-to-many document: ...
1
vote
1answer
243 views

Filter By Owner in list views Not working

I am facing this issue and I can't seem to find any solution. I have a custom object, Subscription and I want to control the list views. If I create a list view with All Subsctiption Details, I can ...
1
vote
1answer
100 views

Account visibility for Territory management

I'm facing a problem after creating a new MD relation account__c for a custom object subscribe__c for territory management. When I click on the lookup button for account__c field, I get a list of ...
1
vote
3answers
992 views

Is it possible to have more than 2 many-to-many relationships on an object?

Since we are limited to two master-detail relationships on any given record, is it possible to have more than 2 many-to-many relationships for a given object? This seems like a rather large ...
1
vote
2answers
287 views

Apex Managed Sharing Rule to share master object after insert of detail object

I am developing a team model like Opportunity Teams for a custom object (e.g. CustomObject). I have developed the necessary objects and fields. I have also developed a Visualforce page to create the ...
1
vote
1answer
308 views

Master detail field is blank on visualforce page

I have a page that should allow me to select a case number from a master detail field but when the page is loaded the field is not there, only the label. I have tried to add an additional look-up ...
4
votes
1answer
287 views

Child Record delete invoking Parent trigger

I have written a trigger on Parent__c Object (after insert,after update-This trigger creates a child__c record depending on few conditions). But when i am deleting child__c record, it invokes this ...