Questions tagged [child-to-parent]
The child-to-parent tag has no usage guidance.
80
questions
0
votes
1
answer
53
views
How to reset child combo box values on button click in parent LWC
I have Parent component LWC where I am displaying account records in html table and having filters for picklist where I have used combo box(Util combo box) . When I select the values in picklist it ...
0
votes
1
answer
30
views
Update Parent Id In Existing Child Record
I am a new APEX learner.
I created two custom objects : Book & Author, where Author being Parent and Book being child object.
I created Child : book record 'Harry Potter' with Parent : 'J K ...
1
vote
1
answer
212
views
Update JSON value in child component sent by parent component LWC
Im passing a JSON from parent component to child component in LWC and I want to update the JSON in child component how can I do that?
I think @api decorator is the cause that the JSON cannot be ...
1
vote
1
answer
68
views
Operating between two parents of a junction object
I have say object A, B and C with A and C as parent object and B as a junction object.
What I want is- whenever a B is created between A and C, a field named field__c on A should be transferred to C ...
0
votes
1
answer
242
views
Batch class for deleting child record when parent record is deleted
I have written this code for deleting child records when parent record gets deleted. But when i execute this i dont get any error nor the records are getting deleted. Kindly help me where i have done ...
0
votes
1
answer
108
views
Populate Case Subject in Chatter feed post
We are using salesforce cases and Case owners have been using Chatter to ask questions about the case. The problem is that chatter messages sent from cases only show the case number in the email. ...
0
votes
0
answers
38
views
Why Am I getting NoErrorObjectAvailable error when ever i try to refer to the custom event of child in parent
PARENT.HTML
<template>
<lightning-layout multiple-rows>
<!-- Top -->
<lightning-layout-item size="12">
<lightning-card title="Find a ...
0
votes
1
answer
301
views
How to reset values of a multiselect combo box on click of a button in LWC
In my parent component I'm calling child component as:
<c-multiselect-picklist multi-picklist-values={picklistValues} onselect={handleChange}
preselected-string={selectedPicklistValue} data-id=&...
0
votes
0
answers
154
views
Related list of child object not showing in parent Object
Correct me if im wrong,
In my knowledge I have to create a look up Account field in the child object for the related list appear in Parent Object (account) but it is not showing in Parent.
Is my ...
1
vote
1
answer
715
views
LWC How to Get Parent Value
How do you get the parent value? I am trying to get Order_Bill_To__r.Comm_Model__c without using APEX. I thought I could do this using __r however when I run this it says that [LWC component's @wire ...
1
vote
1
answer
349
views
Issue with lightning-record-edit-form event order of execution between Parent and multiple Child LWCs on Submit
I'm new to LWCs development. I'm having an issue understanding the order of execution for the lightning-record-edit-form component when a Parent lwc has multiple Child lwcs. Each Child component ...
0
votes
1
answer
1k
views
Trying to refresh child LWC Data from parent component new values
I'm trying to pass the new data from a parent LWC to a child. The data is a list of wrapped objects with the following properties: string, string, list, list.
I'm able to send and it renders perfect, ...
0
votes
1
answer
182
views
trigger to avoid child record deletion based on conditions on parent record
child=past_information__c ,
parent=consultant__c
prevent deletion of child records were parent has type__c='employee' and status__c='approved'
my code :
trigger avoidDeletionPastInfo on ...
0
votes
2
answers
194
views
Query child records when relationship is with same object
I have a lookup field on case which points to case object. (Field: Parent__c). I want to query child case records from a parent case using an aggregate query. Below is the query I have used-
[SELECT ...
0
votes
2
answers
1k
views
Passing Data from Child to Parent in Aura
I am trying to open a modal once clicking on a button which is in the parent component. For that I have used aura:method in the child component and calling that child component in the parent component ...
0
votes
1
answer
64
views
Why ExternalID field of parent Account is null?
I have the next code on my test Class:
parentAcc.ExternalId = '001';
insert parentAcc;
System.debug('parentAcc ExternalId' + parentAcc.ExternalId);
childAccount.ParentId = parentAcc.id;
insert ...
0
votes
0
answers
60
views
I want to create a Text String in a Parent Object of Multiple Products sold on a specific Opportunity using a Formula Field - Help?
Parent Object - Opportunity
Child Object - Opportunity Product
I have a field for each product on the Opportunity.
For example if Opportunity Products X and Y were added to the Opportunity as ...
1
vote
1
answer
127
views
Parent LWC cannot set a child JS Property
Main LWC HTML:
<template>
<c-product-code-entry onproductidchanged={passProductIdToDisplayPanel}></c-product-code-entry>
<c-stock-display-panel></c-stock-display-...
0
votes
1
answer
290
views
Fire a Child LWC Method From Parent LWC
PARENT COMPONENT
parent.html
<lightning-button variant="brand" label="Select" title="Select Family"
data-id={fam.accountId} onclick={handleSelectFamily}
class="...
0
votes
1
answer
446
views
Update child record when parent record is created - possible w/ process builder? [closed]
I could not find any info online on whether or not is possible to update a parent record when a child record is created in a lookup relationship in process builder or if it would have to be a trigger. ...
0
votes
1
answer
934
views
Access child object fields on custom classic email templates
In my use case, I have 2 objects called 'Object A' and 'Object B'. 'Object B' contains a master-detail relationship to Object A. I have an email alert which has been set up on 'Object A'. In the ...
1
vote
0
answers
44
views
how to report a missing relationship from the child side of a lookup with custom object?
I have 2 custom objects:
Candidate & Worker
Candidate has a field that is a lookup called "Tech Screener:" and allows me to select any worker.
Lets say I have 10 candidate records. I ...
0
votes
2
answers
170
views
Flow Logic to Search/Loop Down Tree of Children Accounts
I want to thank anyone in advance for anything they can contribute to this issue I've run into. My goal is to dispatch email's when an Opportunity stage changes. The email's need to dispatch to the ...
0
votes
0
answers
92
views
Trigger on child to update parent's field causes a process to fail
The certification object is the child and contact is the parent. They do not have a master-detail lookup relationship.
The code seems to run here and there, but I get this error, i checked everywhere ...
0
votes
1
answer
104
views
Access parent object field in before delete trigger using SOQL?
We have a before delete trigger on QuoteLineItem and are trying to access one of Quote's fields using soql query on the quote line item with help of the id, but we are not able to get the field from ...
0
votes
1
answer
470
views
SOQL lookup query between standard and custom object does not work
Good morning,
In the custom object Equipment_maintenance_item__c there is a lastModifiedById lookup field to the User object.
My understanding is that User is the parent object, and that to query it ...
0
votes
1
answer
130
views
Parent / Child SOQL WHERE condition where child field match with parent field
I wasn't able to find the answer on the forum: I have an easy query which involve a where condition with parent/child relation.
Here is what I'm looking to achieve:
Select Id, ProductCode, EAN__c, ...
0
votes
0
answers
130
views
Update Parent object record from multiple Child records?
We have a custom object (domain) with subscription dates.
I'd like to have a field on the account object but bring in the subscription date from each domain that is associated with the account.
Ie:
...
0
votes
0
answers
72
views
Align table rows and columns in two different Lightning Components (Parent-Child)
I am new to Lightning Components and I have 2 Lightning Components (parent-child) where Parent iterates records of the child component.
<lightning:card title="Energy Profiles">
...
0
votes
1
answer
214
views
SOQL 4 level Relationship
I am new to SOQL and working with a 4 Level parent - child Relationship:
Level1 (Parent)
Level2 (Child)
Level3 (Grand Child)
Level4 (Great Grand child)
I am trying to pull records from Level1, Level2 &...
0
votes
1
answer
2k
views
Count child records of parent (under certain conditions) using process builder
I have an object called Closings that signifies when a purchase is completed. When a purchase is completed the status of the Closing is set to "Exchanged".
I want to create a field within ...
0
votes
1
answer
310
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 ...
1
vote
1
answer
2k
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 ...
1
vote
2
answers
1k
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 ...
3
votes
1
answer
6k
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
0
answers
24
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
2
answers
97
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
2
answers
141
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
1
answer
106
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: ...
1
vote
2
answers
56
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
1
answer
732
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
1
answer
868
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
1
answer
119
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
1
answer
25
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
1
answer
354
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
2
answers
1k
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 ...
2
votes
1
answer
1k
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
1
answer
904
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
1
answer
558
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
1
answer
188
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 ...