Questions tagged [master-detail]

This type of relationship closely links objects together such that the master record controls certain behaviors of the detail and subdetail record.

Filter by
Sorted by
Tagged with
5
votes
1answer
5k 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 master-...
3
votes
0answers
147 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
6k 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
5k 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.
16
votes
2answers
3k 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
2answers
1k 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 "...
6
votes
2answers
4k 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
3k 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
705 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 ...
2
votes
0answers
180 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 >-< ...
2
votes
1answer
4k 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 ...
9
votes
1answer
16k 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 ...
3
votes
1answer
1k 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
984 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
2k 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
1k 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 ...
3
votes
1answer
1k 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 ...
7
votes
3answers
6k views

Master-Detail Relationship Limit

Salesforce says "As a best practice, don't exceed 10,000 child records for a master-detail relationship." here : http://na1.salesforce.com/help/doc/en/relationships_considerations.htm What does "for ...
-3
votes
1answer
127 views

Detail Object in a M-D relationship as part of M-J-M relationship

Can a detail object in Master-Detail relationship be made master object in a M-J-M relationship (Master - Junction - Master). My opinion : No. If answer to above question is No, can we have L1-J-L2(...
1
vote
1answer
691 views

Filter on Child Records (in a M-D Relationship)

Scenario: Two custom Objects having a MD relationship as Opportunity Mgmt (Master) - Deal (Detail). I have a Standard User Lookup Field "Solution Lead" in Deal Object. The OWD for Opportunity Mgmt is "...
0
votes
1answer
710 views

Can I reference a custom object from a standard object

Say I have a custom object, Division, that has two fields: name and address. Say I want to make 2 custom fields in User (standard object): field 1 is the User's Division: a picklist, populated by ...
1
vote
2answers
772 views

Non-selective queries and lookup/master-detail relationships

Does including a where clause that refers to a field on a related object in a query mean that the query is selective? An example: We have Object A and Object B. Object B has a field that is a lookup ...
1
vote
1answer
4k views

Deleting all child records of an object without knowing child record ID with the API

I have two objects with a master-detail relation ship. Invoice and Invoice Lines. I am basically syncing this up from an external program into Salesforce. During updates, a lot of changes may be ...
3
votes
2answers
2k views

Is there a viable workaround to allow reporting on the history of a child in a master-detail relationship?

I am already using a workaround to allow reporting on approval process steps (field updates to the record, track the history of the field), except that now I can't report on the field history that is ...
5
votes
2answers
3k views

How to report on a master-detail relationship

I have a custom object named Milestones (with a field named MilestoneType) that has a Master-Detail relationship to Contact. I want to build a report where I can pull all contacts that have a ...
5
votes
3answers
5k views

How do you use an external ID in the import wizard to import child objects of a master/detail relationship?

OK, I need to import a few thousand records and import wizard seemed like a good choice. First I did some accounts - that went smoothly. Next I went to import some custom objects that have a master/...
13
votes
3answers
8k views

Can you convert a Master-Detail relationship to a Lookup if it's referenced in code?

I've got a Master-Detail relationship on a custom object where the parent is the Account object. There are no roll-up summary fields on the Account object, and there are no formula fields on the ...

1 3 4 5 6 7