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
27 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
20 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
2answers
45 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
56 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
37 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
27 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
29 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
40 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
43 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
52 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
70 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
85 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
38 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
110 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
82 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
130 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
156 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
1answer
638 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
48 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
109 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
34 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
62 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
59 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
103 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 ...
1
vote
2answers
131 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
86 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
74 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
69 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
91 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 ...
5
votes
2answers
282 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
67 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
79 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
195 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
48 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
89 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
44 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?
4
votes
2answers
471 views

“maximum depth of master-detail relationship exceeded” Can't change from Look up To Master Detail

I have two Object, Current Relationship is Look Up I am trying change it to M-D. In change Field Type the field itself is "Grayed Out" with this Info. My Intial requirement was Master-Detail because ...
1
vote
1answer
497 views

Display parent as lookup field on child in visualforce page

I have two objects SFDC_PTO_Request__c (child),Employee__c (parent) with Master-Detail relationship. I need to display parent on child record while inserting on visualforce page which was a lookup ...
2
votes
1answer
47 views

Significance of getRelationshipOrder() in Master-Detail DescribeFieldResult?

For Master-Detail relationship fields, the DescribeFieldResult has a method called getRelationshipOrder(), which, according to the docs: Returns 1 if the field is a child, 0 otherwise. At first ...
3
votes
1answer
64 views

How do I deprecate/delete a master object part of a junction object which is part of a managed package?

Here is the scenario: As part of a managed package, we have 3 objects. Object A & Object C are Masters and Object B is the junction object between A & C. We packaged it all up and all good up ...
2
votes
1answer
913 views

Relationship between Account and Opportunity and Account and Contact

On Opportunity there is a lookup relationship to Account.But why it behaves as Master-Detail as we can create Rollup Summary Fields on Account. Similarly if we delete Account then Contact gets ...
1
vote
2answers
282 views

Insert owner information from master object on the detail object

I am new to coding in Force.com and coding in general. Object structure: Opportunity has a detail object called Pricing__c The OwnerId is only on the Opportunity object There are two lookup fields ...
0
votes
1answer
464 views

Querying a Master Detail Relationship

I am currently learning Salesforce and Apex etc and I am stuck trying to write a trigger which contains a query. Here are my two custom objects: Student__c (Object) Nickname__c Email__c ...
1
vote
2answers
285 views

Access master object record in trigger of child objectI have three objects

Award Users Nominee nominee is the juction object and one more object AllResult I want that when a record is inserted in nominee object, the same record gets inserted in AllResult Object as well. ...
4
votes
1answer
271 views

Soql query on parents other child object

I want to write a soql query , My scenario is as follows. I have three objects objectA,objectB,objectC. objectA is the parent object for both objectB,objectC. objectA - objectB (Master-detail ...
4
votes
2answers
610 views

SOQL Outer Join Multi Level Master Detail Relationship

I am working with a 3 Level Master Detail Object Relationship: "Level 1" has "Level 2" detail records "Level 2" has "Level 3" detail records I am trying to Query "Level 1 records" and using an ...
1
vote
2answers
370 views

Master-Detail Relationship on Custom Object from Managed Package

Is it possible to add Master-Detail Relationship on Managed Custom Object? currently I am getting below error
5
votes
1answer
2k views

Why can't I create a master-detail relationship between Product and my custom object?

Trying to create a master-detail relationship between my custom object (detail) and the standard product object (master). Initially it said I couldn't create this because I needed to make sure all ...
4
votes
1answer
96 views

How to decide whether to use Text or AutoNumber for the detail object in master-detail relationship?

I am trying to decide whether to use Text or AutoNumber for the detail object in master-detail relationship. What are the considerations that may affect this decision?
3
votes
2answers
377 views

How to create a master-detail object picklist to picklist trigger

I am new to creating triggers and would love some assistance in creating a trigger that can mirror a picklist values. I have two identical picklists called "Test_Status__c" on both the Account object ...