Questions tagged [child-to-parent]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

Trigger on Child Object Creation and Getting Parent/Related Records

I am attempting to create a trigger on a custom object called "abacus__Ledger_Entry__c" that is related to Opportunity. I then need to retrieve values from the trigger object or other ...
0
votes
1answer
21 views

How to get value on a custom field of child account as account name of parent of parent account?

Suppose, I have a child account as "Child Account" and it's parent account as "Parent Account" then there is one more parent account of parent account which named as " Parent ...
0
votes
1answer
33 views

In LWC, How do I dynamically show the records of a listview if the listview is selected from a picklist

I obtained listviews using getListUi wire adapter. I populated these listviews into a picklist. What I'm trying to achieve is if I select a listview from the picklist, the records need to be updated ...
0
votes
0answers
26 views

Using the Bulk API, can I create both Custom Objects and their parent Person Accounts concurrently? [duplicate]

Our org uses Person Accounts. Each Person Account will be a parent record for at least on Bank_Detail__c record. We have an externally hosted website which will collect information about our pending ...
1
vote
2answers
37 views

Child to Parent Query: Updating Parent Fields via Apex

I'm new to apex and still trying to figure things out. I'm attempting to pull the Parent data from the Child to then update. I keep receiving the error "Variable does not exist: Location__r". Please ...
0
votes
1answer
353 views

LWC - Place a component within another component - Parent/Child Components

I currently have two components that are functioning independently from one another. I would like to place one of the components within the other to allow them to appear as one component but be ...
0
votes
0answers
20 views

Take all value from childe component

I have a question, cuz i have two components, my parent and childe. Child component contains all types of input, and this imputs throwing new customEvent onchange so every single time when i type ...
-1
votes
2answers
68 views

Dataloader Upserting: the Child overwrites the parent

I'm using Dataloader to Upsert a Child Account to Parent Account using an external ID. When the Upsert is complete, the Child overwrites the parent, it's not not connecting the Child Account to the ...
-1
votes
2answers
58 views

Dataloader Upserting Child Account to Parent Account using External ID: [duplicate]

I'm using Dataloader to Upsert a Child Account to Parent Account using an external ID. When the Upsert is complete, it's creating a new account, it's not not connecting the Child Account to the ...
1
vote
1answer
21 views

Question on Child-Parent SOQL Limits

I'm reading the documentation on SOQL limits in prep for my Salesforce Dev 1 cert. I'm not sure I understand the description of the limit on child-parent relationships for custom objects. It states: ...
0
votes
0answers
17 views

Creating Map by taking Parent Id as key and Child fields as values correnponding to key [duplicate]

I have an sObject(Daily_Revenue__c) which has look-up relationship with opportunity objects. Now, I am trying to create a map which should contains Id of Opportunities as keys and Revenue__c field of ...
1
vote
2answers
46 views

Unable to fetch parent details from javascript button

We have a custom button called send an email at the activity level. It will work based on the case fields. Now i have a requirement to check some conditions based on a field called total active units ...
0
votes
1answer
87 views

Query to find all the subscribers from a child business unit who joined during a specific time frame

I am trying to query all the subscriber from a child business unit who joined during a specific time frame. Here's my SQL below Select s.SubscriberKey, s.EmailAddress, s.DateJoined ...
0
votes
1answer
98 views

How to fill a map with child Id and Parent record

I am trying to learn about the maps and for this I am trying to do an exercise. For I have the Order and Opportunity objects, the Order object has an Opportunity__c field that relates to Opportunity. ...
0
votes
1answer
20 views

SOQL to get Assets with AccountId different from Parent.AccountId [duplicate]

I need to get all Assets X with X.ParentId != NULL, and the X.Parent.AccountId != X.AccountId. SELECT AccountId,Id,ParentId,Parent.AccountId,RecordTypeId,RootAssetId FROM Asset WHERE ParentId != NULL ...
0
votes
1answer
23 views

How to retrieve parent filed value

Let's say a have a code User tempo = [select contact.name from user where id= :UserInfo.getUserId() limit 1 ][0]; how can I take contact.name value from tempo?
0
votes
1answer
76 views

Adding BUs to Corporate Edition (Marketing Cloud)

Client has been using a Corporate edition of Marketing Cloud and acquired a new separate business... so, we need to add a BU to Corporate Edition. Do we need to add 1 business unit or 2? Support ...
8
votes
2answers
633 views

Another approach to child-to-parent communication: passing functions?

Looking to socialize a new child-to-parent data communication mechanism my colleague has proposed that we use in our LWC project. His approach involves passing arrow function expressions from the ...
0
votes
1answer
122 views

Update child component when data in parent changes

I have a child component that receives an array as a property: <lightning-layout-item padding="around-small"> <c-multi-pick-list label="Product Family" options={productfamilyoptions}>&...
0
votes
1answer
90 views

Control picklist values visibility

I have a custom object called "A". I have a custom object called "B". Custom object "B" is related to custom object "A" via lookup field. In custom object "A" as well as in custom object "B" I have ...
0
votes
1answer
67 views

Prevent child deletion when parent is status in Approved or Review and show error message on Parent

I have Master detail relation ship. I have written a trigger on child object to prevent the deletion of child when parent is in Approved or Inreview status and throw error message which is working ...
0
votes
1answer
38 views

How to delete child lookups from the parent after reparenting

Im a beginner and still learning to write apex.. Im creating a new object from the old object. I want to reparent the Lookup to the new object and delete it from the old object. //map of ids of new ...
0
votes
1answer
107 views

Can you query two levels up in a hierarchy?

Hard to explain, but we have opportunities of many different types. I need to only get opportunities of a specific type, which i have done. Now I need to only get projects that have opportunities of ...
1
vote
1answer
29 views

In Test class no result for Order.Account.RecordTypeId

In a test class, I want to update Account information depending on the record type. The information to update comes from the Order object. I have created a test account with the according record type. ...
0
votes
1answer
189 views

How to pass event.preventDefault(); from child to parent

I have a wizard with a child object. The child object has an event.preventDefault(); (Step 2 wizard). How do I pass this to the wizard (parent) to prevent going to the next page (step 3) of the wizard....
0
votes
1answer
23 views

Don't leave Parent Page after adding a new Child object

I have an object: Parent and an object: Child on my SalesForce, the issue is that when I am on my parent object and I click on 'create new child' then I create this child, after confirming that child ...
0
votes
2answers
399 views

How to set multiple objects as parents for a custom object

I have requirement where a custom objects needs to have multiple objects as its parents. For example a custom object must have master-detail relationships with Account, Opportunity, Case etc. We can ...
1
vote
1answer
86 views

Do really row counts from parent-child relationship sub-queries contribute to the row counts of the overall code execution?

Most of us know this is a very basic question but I little confused here again, As per the documentation here, it says that parent-child query row count is added to the overall row count in the ...
2
votes
1answer
2k views

Lightning component - pass data from child to parent

According to this salesforce developer blog when passing data down from parent to child component, you can use attributes (or exposed methods) and when passing data up from child to parent you can ...
0
votes
2answers
348 views

How to update parent field with child field value FOR EXISTING records

There are two Objects with master-detail relationship (Contact and Certification__c) I need to copy a textfield(Name) value from the child object(Certification__c) and paste it on it's Parent's(...
0
votes
2answers
199 views

Getting a record's sibling records in SOQL with a single query

I've looked high and low and cannot find an answer to this question. Lets say I have a custom object called Appointment__c which is a child of the Case object, I have a VisualForce page that is ...
0
votes
1answer
88 views

Need help on trigger which is used to update parent record when child record value changes

Hi i have written trigger in which SC_Problem_Management__c is parent object and SC_Problem_Case_Link__c is child object having master detail relationship. I want to update status field of parent ...
0
votes
0answers
1k views

DUPLICATE_VALUE: Maximum number of duplicate updates in one batch (12 allowed)

I am getting this error when Leads are updated in bulk. Actually, it happens when the Lead Object Process criteria try to update a checkbox field on an Account. So when more than 12 child lead ...
0
votes
1answer
38 views

Options for entering parent-child data

At the risk of having this question tagged as too general... We are implementing SF in our organisation. There are several instances of parent-child relationships, for example, entering a student's ...
0
votes
1answer
2k views

How to access aura:id of a tag present in child component in a parent component controller

I have created a form where more than 10 radio groups were being used, so instead of using lightning:input tag several times , I made a child component of the radio group . And used it several times ...
1
vote
2answers
49 views

Combine and Query 2 Child object to a Parent Object

I was wondering can you combine 2 child objects to a parent object. SELECT SourceIp FROM LoginHistory WHERE UserId IN (SELECT Id FROM User) SELECT City FROM LoginGeo WHERE CreatedbyId (SELECT Id ...
0
votes
1answer
209 views

Bubbling up an Account hierarchy to capture top most Parent Id from query

Based on some of the answers I've browsed I think this might involve 2 queries. I feel like this is probably a pretty common problem so I was hoping someone would have a quick answer or at least be ...
0
votes
1answer
105 views

Result of a soql parent to child soql request

I would want to know how I can display the result from a soql child to parent request? My request is: $query = "SELECT FirstName, LastName, (select Retreat_Booking__c.Retreat__c from ...
5
votes
1answer
126 views

Prevent New Child Record without triggers

I am trying to find the best method, that will work both in classic and lightning, to prevent a user from creating a more than 1 child record from a parent object; e.g pressing 'New' on a related list....
0
votes
1answer
247 views

Copy field from child to parent

Can you help me, on how to continue copying from Participant to Account wherein fields are the Year and Goal, I am struggling in last part which is the year and goal this is as follows child is ...
0
votes
1answer
1k views

Finding records of an object type that has any attachment

I need to find whether records of a object type have any attachment on them or not. I see that below query doesn't work. SELECT Id, ParentId FROM Attachment WHERE ParentId like '001%' . Is there a ...
1
vote
1answer
28 views

SOQL - For Loop upon childrens, nothing fetched

I'm having trouble fetching courses__c from the Certification__c object (who is the mother). The code works, for the certifications : I fetch only but every Certification__c that have related Courses....
0
votes
1answer
116 views

parent to child soql not working

i am at a wits end, any help greatly appreciated I have a child object named acf_address__c , that is a child of the contact object the child relationship name on the acf_address__c is called ...
1
vote
1answer
173 views

Custom Report Type with Multiple Parents?

Is there any way to build a custom report type that links to multiple parent object types? For example, my Opportunity links to a Contact and to an Account directly, but I can't figure out how to join ...
0
votes
1answer
38 views

Need list of specific contacts from account in custom object list view. How to set this up?

We are set up where there is an account, and a 5-10 contacts that are related to the given account (they show up in the contact listview) and there is a custom object called proposals under contact. ...
-1
votes
1answer
60 views

How to update parent object field with the difference of the child object field value

I have a trigger on child object which updates the parent Obj field 'Qtyremaining' when there is a value in the child obj field 'Invoice_Quantity__c'. So the value of Parent "Qtyremaining = quantity -...
0
votes
2answers
2k views

Process to update parent account when child record changes

I have to update a Contact lookup field (Current_PC__c) in Account object when a field (National_Member_Primary__c) in Contact object changes. I have created a process for this however it is not ...
0
votes
2answers
140 views

How to populate owner name instead of id from a child object

Here i am trying to get owner name value from child object incident , OwnerId is populating correctly but when i tried with Owner.Name, value is coming null in debug log. Please find my piece of code ...
1
vote
1answer
1k views

Updating parent component record name from child sub-component edit via event

onites. I have encountered an issue with updating a record from a child sub-component. The parent component passes the attribute when it instantiates the child component but whenever there is an edit ...
0
votes
1answer
495 views

can control child record picklist value show hide based on parent record type

Case (parent object) Details Summary (child Object) Relationship (Master-details) Can control child record picklist value hide based on the parent record type. On case object there are many ...