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
38 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
49 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
24 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
96 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
34 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
109 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
78 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
53 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
46 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
85 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
48 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
50 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
58 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
34 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
159 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
107 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
121 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
64 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
74 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
71 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
107 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
132 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
150 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
75 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
2answers
436 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
173 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
212 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
236 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
79 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
159 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
47 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
87 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
66 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
166 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
305 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
101 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
101 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
93 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
177 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
487 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.
4
votes
1answer
99 views

Inserting a child record using a trigger based on an external ID

I have a trigger that inserts a new child record (Training Session) below Training Module using a third object (Scheduler). Training Module contains an external ID called Training_Module_ID, but when ...
2
votes
0answers
100 views

Parent Lkp Id empty when custom New page is used in Salesforce1. Why?

I have a master detail Child__c object with a custom page override for New and Edit. This page is used in desktop and mobile Salesforce1 context. My problem: the page doesn't work in Salesforce1 as ...
2
votes
1answer
229 views

Salesforce1: How to reference the Parent Id on “new” action?

I have a mobile app with two Objects which are linked via Master-Detail. I have overwritten the new page for creating an child record with an custom visualforce page. This page should create an ...
0
votes
1answer
64 views

How do I create a master detail or lookup relationship to ContentVersion?

I've created my custom object, I want to add a lookup or (ideally) a master detail relationship to ContentVersion. However when I go to create a New Relationship on the custom object, I don't see ...
2
votes
1answer
156 views

Passing related objects in tests

I have the following visualforce page: <apex:page standardController="Whatever__c" extensions="WhateverExt" action="{!autoRun}"> <apex:form > <apex:outputField ...
2
votes
1answer
54 views

What are the limitations or point to be remembererd while sharing objects with master detail relationship between to salesforce orgs

I have 2 orgs which are connected through salesforce to salesforce connection. I updated the lookups to master detail and now the objects are not getting shared. Can anyone help me on this?