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
0
votes
0answers
13 views

Cannot Create Lookup Relationship on Custom Object

I'm trying to create a lookup relationship field however it's giving me an error saying it cannot create a Master-Detail relationship, which is not what I selected. Is there any reasion for this ...
0
votes
0answers
24 views

stripinaccessible stripping fields for system administrator

I have a generic function to validate CRUD before DML which uses stripInaccessible(). public static SObjectAccessDecision validateCRUD(AccessType access, List<SObject> records, Boolean ...
0
votes
1answer
591 views

External Id issue::: INVALID_FIELD, Foreign key external ID: extid::3073631 not found for field

I'm getting above error message when I try to create child records based on the External Id of the Parent Record. Here is the scenario. Please note that both reference1 and reference2 are related to ...
0
votes
0answers
30 views

How to populate count/sum of certain fields (Number datatype) in a custom object?

Custom object "A" should have certain fields like "Number of Contacts with training date" and "Number of Contacts Last Trained". Currently "A" has look-up ...
1
vote
1answer
25 views

Soft-Delete in Salesforce for All data[For Auditing]

We have a requirement to maintain every data(even deleted also) for approx 10-15 yrs with its Audit history. We have Salesforce-shield is enabled so maintaining Audit data is taken care of by it. ...
3
votes
2answers
543 views

Unable to create Master Detail Relationship

I have some custom object - TestObj1, TestObj2, TestObj3.... TestObj1 - Only have 2 Master-Detail fields(With TestObj3 and TestObj4 Objects) TestObj2 - I have Master-Detail with TestObj5 now Why ...
0
votes
1answer
38 views

Add products on custom objects vs. junction object - please help!

My organization awards scholarships. I have two objects: scholarship and recipient. I need to be able to track the awards that each recipient receives, without creating a new record each time the same ...
0
votes
1answer
480 views

External Lookup Relationship

I want to create a master detail relation ship on my contact. But instead of master detail i am able to see External Lookup Relationship. what is the use of External Lookup Relationship, and where is ...
0
votes
1answer
14 views

How to display master variables in visualforce

I have a master-detail relationship with master object Service__c and child object Service_Task__c. The relationship API is Service_Task__r. I am using a custom controller. My visualforce page is ...
0
votes
1answer
26 views

How to insert new records into the custom object using Data Loader which has “Master-Detail” relationship with Account?

I have an Account object and a custom object "B" where Account is Master and "B" is Child. I already have Account data and I am looking for inserting records in "B" using ...
0
votes
1answer
21 views

Roll-Up Summary field filter limited in number of added criteria

I have two objects object A ( Master ) and object B ( Detail).I am trying to create a rollup summary field on master A object of Select Roll-Up Type Count. However, when I try to add a criteria to the ...
1
vote
1answer
69 views

Error when attempting to change a relationship from a lookup to a master/detail in sandbox

Cannot add a master/detail relationship because the division and/or owner fields are in use: DatasetData: null What sort of metadata is "DatasetData"? It sounds related to WaveDataset, but I believe ...
0
votes
2answers
456 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
49 views

LWC Display a field based on the selected parent record

On a new form, I have a master-detail relationship field <lightning-input-field field-name='contactrel__c' onchange={handleContactChange}></lightning-input-field> {DoNotCall} I would ...
2
votes
0answers
26 views

Running into error Invalid field:Contact__c in related list:Foo__c.Account__c when deploying Account layout

Custom object Foo__c has master-detail relationship with object Account through field Account__c. Custom object Foo__c also has master-detail relationship with object Contact through field Contact__c....
1
vote
2answers
444 views

Required fields are missing in master detail relationship

I Have a trigger on IT_Asset__c object. And trigger runs on update. The problem is in the error: Required fields are missing: [Account]: [Account] I stuck on this error, because i don't understand ...
0
votes
2answers
25 views

how to update parent field from child

I got 2 objects Service_Request__c(Parent) and Service_Line__c(Child). I'm trying to do is update a field of parent object from child.based on the following condition. In the following code, I'm not ...
0
votes
1answer
73 views

Upserting records via Simple_Salesforce API on a field with Master-Detail relationship

I'm trying to use Python's simple_salesforce library to upsert on an object called Member Plan that has a required field called MemberId which is a Master-Detail relationship with the Account object. ...
0
votes
1answer
25 views

Mass upsert Master Detail records at the same time

I have two custom objects with Master Detail relationship. I need to be able to bulk upsert these records simultaneously. For example: If the master records don't exist, create them. Otherwise, ...
0
votes
0answers
26 views

Master-Detail Relationship - Process Builder

I have a Custom Object = A, another Custom Object = B in a master detail relationship and the Account Object. I want to be able to make checkbox = true on the Account, depending on some criteria on ...
0
votes
1answer
107 views

Insert related record to account when field is matched with child record

I have a custom object named Merged_Account__c which has lookup to Account object. This child object has name field and it has similar values as that of Account name field. Now, when the name fields ...
0
votes
1answer
36 views

Field Not Writable - Master field on Child object

I have the below functionality inside a for loop, the highlighted field is a master field in the child object that is populated in this piece. For the first iteration it populated the value but the ...
1
vote
1answer
418 views

Updating an existing Object fails with error INVALID_FIELD_FOR_INSERT_UPDATE

This is the exact error : from smartSync SFLogger ERROR com.salesforce : Sync type:syncUp id:6 FAILED cause:Server call for sync up failed error:Error Domain=CSFNetworkErrorDomain Code=400 "Unable ...
2
votes
2answers
37 views

If I convert master-detail relationship to lookup relationship will there be any data loss?

We are planning to convert an existing Master-Detail relationship to lookup relations. I wanted to know if there will be loss of existing association when the field type is changed from M-D to lookup. ...
0
votes
1answer
35 views

After Deleting Parent Object in Master-Detail relation, what happens to the triggers we have created in child object

In a master detail relationship in child object if we created trigger on child object after delete.when parent is deleted will the trigger execute?
1
vote
1answer
1k views

How do i Upsert record in Parent- child relationship from custom to custom object Using External ID

We have data integration Job for SQL SERVER - SFDC using Talend data integration tool. SFDC environment: Full sandbox Account We have two custom object. In that, Master-Detail relationship from ...
0
votes
1answer
11 views

formula field on master record that displays a text field on the max child record

I have a custom object, Recoveries Placement, related to the Case object in a master-detail relationship. I need to surface a text field from the MAX Recoveries Placement record on the Case layout. ...
1
vote
0answers
15 views

Joined Reports with 2 unrelated child objects

I'm trying to create a joined report with a custom object (object A) as the base. It is the Master in two Master-Detail relationships (Object B and Object C). Object B and Object C are NOT related. ...
0
votes
0answers
13 views

Use flow loop to add the parent to a list

I have a master-detail relationship between Account and Property Agreement: I'm using a "Get records" element to browse through the child records and I need to add the parents to a list. I tried ...
0
votes
2answers
58 views

Mobile SDK SmartSync SFParentChildrenSyncUpTarget INVALID_FIELD_FOR_INSERT_UPDATE fields = OpportunityId

Using Salesforce Mobile SDK 7.2 for iOS with Swift 5. Attempting to syncUp an Opportunity Line Item that has been updated on the device results in the error: errorCode = "...
1
vote
1answer
1k views

Lookup Filter with related fields that are more than one relationship away from the lookup object

I want to add a lookup filter for the lookup between Package Version and Release. So I just can choose Releases which are linked to the same Program as my related Package. This is not possible ...
0
votes
0answers
152 views

Update checkbox on the father object depending on the child values - with a trigger

I need to update the 'Is Cloud Customer' check box in the account object when at least one of the Child's as the Installation type field containing the word 'Cloud'. If none of the Child as 'Cloud' ...
4
votes
1answer
203 views

Does Lookup Skew affect only master-detail relationships or also lookup ones?

I've been encountering and reading a lot about data skew issues, particularly lookup skew, and I've noticed that most information I've found doesn't explicitly indicate whether this affects master-...
0
votes
0answers
27 views

Joined reports with master-detail relationship

I'm having problems trying to make a report of some custom objects, they're arranged like this: A (detail) <-- B (master) --> C (detail of B)(master of D) --> D (detail) Any ideas of how to get ...
0
votes
1answer
131 views

How to loop over child objects of master object in batch object

I have a batch process to update Accounts with address info from the Cust_Address__c object. I use a Junc_Account_Address__c object as a junction. How do I loop through the accounts to update the ...
1
vote
2answers
21 views

Question regarding soql many to many relation update

I have a many to many relation. Account obj, AccountAdress junction, Adres obj. The junction object has a startdate an enddate to make an address active for an Account. I want to use a batch process ...
1
vote
1answer
1k 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 ...
0
votes
0answers
53 views

Auto Populate Master-Detail relationship when creating record in salesforce community

I am implementing a salesforce community. In that I have included a standard list view. So it enables New button and I can create a record using that. When creating an record the user have to fill a ...
0
votes
1answer
32 views

update all child record when parent record is updated

I have created trigger on parent object (Vendor__c) to update child records(Transaction__c). Logic : when the Vendor Manager field is updated on a Vendor record, look for Transaction records ...
7
votes
2answers
17k 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 not ...
1
vote
1answer
35 views

Master-Detail Relationship causing problems with creating Related Records

We have a custom object to log our Activities with Customers. Until very recently, it had a lookup to that account. To better serve our reporting needs, I changed that lookup to a master-detail. Now, ...
0
votes
1answer
19 views

I can't convert my Master-Detail field to a Lookup field because the Change Field Type button is not visible

I have deleted all Roll-up Summary fields in the Master object including those in the Deleted Fields but the Change Field Type button is still not showing. Do you have any idea what I can do?
2
votes
1answer
153 views

Working round the lack of formula fields of type “Lookup Relationship”

When you have a master-detail chain of objects several levels deep, sometimes a lookup field to the root object on each child object is helpful for easy navigation or to show deeper records than the ...
1
vote
2answers
180 views

trigger to update field on parent object based on field in child record

so i have 2 custom objects, rep and role history. rep is the master and role history is the detail. rep has a field "rep type" that needs to be systematically updated to reflect whatever is in the "...
0
votes
0answers
80 views

Error on inserting Child record of Master Detail Relationship

Error on inserting Child record on custom object which is having Master Detail relationship with other Custom Object. I have two custom Objects x and Y which are in Master Details Relations. There ...
0
votes
0answers
782 views

How to use the wire service to get field from child Object? [duplicate]

This seems to be pretty simple but I kinda lost right now. I want to create a LWC based on two custom objects which has a master-detail relationship. I have a 'master' object Product__c Name Id etc ...
0
votes
1answer
28 views

How to Access field from Detail object in Master object?

I have a customer object as master and Document object as Detail which has a Status__c field. Since its a Master-Detail there can be multiple Documents to the custom object. I want to maintain a ...
1
vote
1answer
129 views

Sharing Setting on MAster Detail Field is not being enforced - Bug or correct SF behaviour

There are two Objects 'Parent' and 'Child'. Two User Admin and LocalUser. As per the profile of LocalUser : Parent Object has Read permission Child Object Has CRU permission OWD for Parent Object is ...
2
votes
1answer
161 views

Apex Test Class: Populate parent relationship in a Master-Detail

I have the following code in a test class parent__c parent = new parent__c(); insert parent; child__c child = new child__c(); child.parent__c = parent.Id; insert child; In the DataBase, the ...
0
votes
1answer
49 views

How can I change this method to query my master detail object?

I am new to Apex trying to do some practice assignments and have gotten stuck on this junction object query. Task: Edit the current getUser() method to do the following: Return a custom object (that ...

1
2 3 4 5
7