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
2answers
28 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
79 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
20 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
65 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
9 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
48 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
42 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
62 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
25 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
20 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
127 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
40 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
142 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
109 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
19 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
55 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
81 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
96 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
67 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
66 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
69 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
37 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
202 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
132 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
164 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
74 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
31 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
81 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
78 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
122 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
148 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
187 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
85 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
610 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
204 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
250 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
251 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 ...
1
vote
2answers
1k views

Cannot set sharingModel to ControlledByParent on a CustomObject without a MasterDetail relationship field

I am trying to deploy an update to a custom object. The object and classes associated with it work perfectly in my sandbox, but when I try to deploy, I get the following error: Cannot set ...
0
votes
1answer
93 views

Auto-accept shared child records with Salesforce to Salesforce does not work

I'm trying to share child records (in a master-detail relation of a custom object) to an external org via Salesforce 2 salesforce. So I've set up the connection, published the object on the source ...
2
votes
1answer
181 views

Junction object confusion

I have 3 objects order, order_lines and shipment_lines . So order has many order lines and many shipment_lines. So I want to display order_lines and shipment_lines fields on a single related list on ...
3
votes
1answer
51 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 ...
1
vote
1answer
91 views

Master-detail: submit a child record with no master ID, let BeforeInsert trigger populate it?

I have a child object in a master-detail relationship. If I insert a child record with no parent ID value, but I write a BeforeInsert trigger to populate the parent ID, will Salesforce allow the ...
1
vote
1answer
69 views

Related list availablity

I have custom object X which is look up with Account and custom object Y which is detail of X(master). Now I have to make Y appear in related list section of only those Accounts, whose reference ...
2
votes
1answer
195 views

How to preserve relationships upon data import?

I've set up lookup and master-detail relationships between objects in Salesforce, and I have SQL-exported CSVs of legacy data which mirror these relationships. How do I preserve the existing ...
2
votes
2answers
340 views

Relate records from the same custom object

I have a custom object called 'Events'. I would like to create a relationship that allows Event records to be related to other Event records. Is this possible using standard customisation?
1
vote
1answer
103 views

SOQL Query on Opportunity-Account(Master detail)

Account acc; if(o.AccountId!=null) { acc = [select id,GUP_GUID__c,OwnerId from Account where Id = : o.AccountId]; } List<ECP__c> ecpList = [select id ...
1
vote
1answer
107 views

Master field editable on VF page (reparent detail to new master)

I am trying to create a standard clone button type functionality for a custom object which has a master detail relationship with Account and lookup with Contact. On click on the custom button a vf ...
2
votes
0answers
107 views

Create Master and detail records in single insert without external ID

I can't seem to find a direct answer for this... I am hoping to create a master record and one or more detail records in a single API call. Most resources have suggested the use of an external ID, but ...
1
vote
2answers
220 views

Is it possible to have multiple parent with one child relationship in Salesforce?

I have one object that contains fields that stored decimal and it already have Account as parent object.Because I want to Roll up Summary to do calculation on that (SUM) those field,I need to create ...
6
votes
2answers
560 views

Master Detail Relationship

I have master-detail relationship between A-B object. A is master and B is child . Now the requirement is , that A must be public and B must be private. what's the best way to implement this.