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

0
votes
1answer
30 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
33 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
38 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
47 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
35 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
32 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
33 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
139 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
23 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 ...
1
vote
0answers
27 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
63 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
15 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
56 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 ...
1
vote
1answer
26 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?
3
votes
2answers
63 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 ...
0
votes
1answer
75 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
19 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 ...
2
votes
1answer
34 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
164 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
77 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
101 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
77 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. ...
3
votes
1answer
106 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
249 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
136 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
739 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
62 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
248 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 ...
3
votes
2answers
463 views

Can I Update a Child Record when the Parent Changes with Workflows?

I have two objects in a parent-child relationship: job order (parent) and application (child.) I'm attempting to use workflow rules to update the status of certain applications when the job order is ...
1
vote
0answers
19 views

Report on child records and field in parent only once per child

Say you have a structure like Account 1, Annual revenue = 100,000 Contact 1 Contact 2 Account 2, Annual revenue = 200,000 Contact 3 Does anybody know if a report can be developed to show ...
3
votes
3answers
101 views

Java BulkAPI exception: Field name provided does not match an External ID

This posting is in reference to this webinar and it's associated Java code regarding use of the Bulk API. Salesforce API Series: Fast Parallel Data Loading with the Bulk API ...
1
vote
2answers
35 views

master should be made non editable when there is any child associated to it

i have a situation where I need to throw an error when any use tries to edit the master record. It has one or more child records associated with it. i came up with something, like i had a roll-up ...
1
vote
1answer
99 views

Master Detail Sharing Rule

I know that Details inherits Masters permissions but i am bit confused with the below scenario - Object A - Master Object and profile has Create/Edit/Delete/View all on it Object B - Detail Object ...
3
votes
1answer
471 views

What are the implications of using a reparentable master-detail relationship instead of a lookup?

Since the Summer 12 release of salesforce it's been possible to set the "Allow reparenting" attribute on master-detail fields. This somewhat blurs the traditionally clear line of when to use a ...
2
votes
0answers
78 views

“invalid domain” creating a Master-Detail field on a junction object

I was attempting to set up a Junction Object in an organization with Person Accounts enabled to link Business Accounts with Person Accounts. I set up the Account Master-Detail on the custom junction ...
4
votes
2answers
1k views

query to get child object data

I'm pretty new to SalesForce and my question should be very simple. I'm creating an extension for a standard controller of a custom object called Bill_Account_c. This object has a master detail field ...
1
vote
4answers
503 views

Can we change the child owner in a master-detail relationship?

Can we change the record owner name in a master-detail relationship when we create a new child record.
7
votes
2answers
808 views

Delete triggers don't cascade master to detail, so why not hand-cascade on the master?

I understand from experience that Master-Detail deletion triggers do not cascade. For example if I delete my Account the Contact deletion triggers don't fire. Having devoured the first and second ...
2
votes
1answer
416 views

Adding Custom Objects + Master-Detail Relationships then Rolling Up Objects That Already Contain Data

Is it possible to add custom objects that have master-detail relationships with other objects that already contain records in Salesforce? EXAMPLE: I've uploaded all of my data into the ...
5
votes
2answers
1k views

Custom Related List with Custom Object

I am quite new to Salesforce and have not yet any thing like the following. We have a Paper object which is looking up for authors in Contact object. We want to create to have custom related list of ...
7
votes
3answers
953 views

Upsert Detail object without external Id

I have two related objects (Master-Detail) A -> B (where B is child of A). In addition there is only one B for a parent A. I need to upsert the B object and I only have the A.Id and other fields of ...
3
votes
1answer
283 views

Unable to create Custom Field of type MasterDetail or Formula(Number) through Apex's MetaData API

I am suppose to create a custom Summary object from a base object through MetaData API. The summary object will have some of the fields of the base object and few extra fields. I could create the ...
1
vote
0answers
117 views

Filtering Contact's child custom object data based on its relationship with Contact's Account

My apologies if this question is answered here earlier...but the ones that I read (case/account/contact filtering etc.) seem different then this. I have the following relationships... Account >-< ...
1
vote
1answer
180 views

Can I add a custom message at the top of a page based on some criteria?

Our tech support team uses cases for interacting with customers. Based on some criteria on the parent account, we are looking for a way to show a message to our tech support team indicating that this ...
4
votes
1answer
3k views

INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: [] on opportunity

I have created an object named as "Component" which has Master-Detail Relationship with Opportunity Object. On Opportunity we have a button says "Create Component", when user clicks on it it takes ...
2
votes
1answer
286 views

How to obtain “Related Content” information in SOQL/APEX

EDIT: There were two questions earlier. I figured one out. Please see below We can have Attachment objects on custom object records but can we for example, associate a Salesforce File or Content ...
0
votes
2answers
302 views

Updating Data On PARENT Via Custom Button

This is loosely related to a recent question: Standard Button CODE Available? Does anyone know of any examples/tutorials on creating a custom button which will set values into the PARENT record of ...
2
votes
1answer
333 views

Are you required to have access to all parent-records in order to access the child-record where all relationships are master-detail?

Let's say you have a child object Child__c that has 2 master-detail relationships and assume you don't have Modify/View All access to the child object or overall. Also assume that all object OWDs are ...
3
votes
1answer
242 views

Can you add relationships to knowledge articles?

It seems like the answer to this is no but I wanted to ask anyway. Knowledge articles themselves dont allow a lookup or a mater-detail field. And from what i can tell you cant add a lookup field ...
2
votes
1answer
629 views

Can Detail Objects trigger Master Object Workflows?

I want changes to detail objects to trigger a workflow on the master object. The master object has a rollup summary field which COUNTs how many detail objects have a certain field set. When I change ...