Tagged Questions

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
0answers
3 views

Territory management and Lookup

I have a confusion regarding Territory management. I have an Account ACX and User Max, that is assigned to a Territory, Territory-Brazil. I have a custom object that has a lookup to Account. When I ...
1
vote
1answer
26 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
13 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
45 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
19 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
56 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 ...
3
votes
1answer
75 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 ...
0
votes
1answer
181 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
28 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
83 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
26 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
38 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
49 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
66 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
62 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
57 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
44 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
45 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
58 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
182 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
41 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
50 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
115 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
28 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
70 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
36 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
158 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
231 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
30 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
49 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
508 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
121 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
229 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
129 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
150 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
414 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
234 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
1k 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
79 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
317 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
734 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
23 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
183 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
141 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
670 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
81 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
738 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.
8
votes
2answers
975 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 ...