Skip to main content

Questions tagged [child-to-parent]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

How Deep is Implicit Sharing?

When raising a Case and: Case.Account = Account Coke Case.Contact = Related to/Member of Account Pepsi Then, Case.Contact will have read access to Account Coke, right? I will now introduce a custom ...
Arvin's user avatar
  • 3
0 votes
1 answer
39 views

SOQL query to get Lead attributes from Account via converted account relation

I'm trying to get the Leads columns from the Account object. This is the type of query I want to run, but it doesn't work: SELECT Account.Name, (SELECT Name FROM Account.Leads) FROM Account If I ...
Matthew Blewitt's user avatar
2 votes
1 answer
45 views

SOQL query Child to Parent

I have two standard objects (Case & EmailMessage) where EmailMessage has a lookup field to Case. I'm using a simple SOQL query to get EmailMessage fields along with Case Status, but it is throwing ...
Yahya Hirech's user avatar
1 vote
0 answers
56 views

Child component need to re render after value changes in parent component

I have 3 components. Grand Parent --> Parent --> Child. When ever data changed in Child LWC I need to Re-render the Child LWC which is inside Parent LWC. I have tried GET SET methods also. But ...
Aryan's user avatar
  • 27
0 votes
1 answer
78 views

value not passing from child to parent component

@api label; uniqueId; @track placeholder; connectedCallback() { // Increment the static variable to get a unique ID unkDateInputId += 1; // Set the unique ID property using the ...
blackFire's user avatar
0 votes
1 answer
193 views

LWC js controller getFieldValue() on parent field, I still get the whole record and have to reference the object and field again

Below is a portion of my LWC js controller. I'm trying to write a function to see if a field in a parent record of an Event record has a certain value. I'm baffled by what is returned by ...
Ken's user avatar
  • 448
0 votes
1 answer
567 views

LWC Custom Event Issue

I have a LWC Component A(Child), Whose javascript is dispatching an event like this: dispatchRefreshImageDetails(imageId) { //imageId contains Full Image URL as from content version object. ...
Ravi Kumar's user avatar
-2 votes
1 answer
118 views

What object should my record-triggered flow be on?

If all child records have a picklist value of Authorized, then update parent record to Pay Request; if not all child records have the same picklist value of Authorized, then update parent record to ...
user avatar
0 votes
0 answers
71 views

Salesforce Batch – Limitations (semi-joins, governor limits)

I need to write a Batch class to delete records from Child to Parents objects: Child__c --> Parent__c --> Parent_Of_Parent__c Every object has approximately 5 million records to delete, so I ...
Alessia's user avatar
0 votes
0 answers
110 views

How to get xml properties chosen on child to pass to parent in LWR Experience Builder Site

I have a parent wrapper for two cards in my markup with the cards nested within the parent wrapper. How would I be able to still click on the card to dynamically change the card details? With them ...
Darryl Le Roux's user avatar
0 votes
1 answer
1k views

Advice for validation approach LWC

Hello guys I have being working on a LWC custom form that includes several child components, where each of them contains lightning-inputs, lightning-comboboxes, etc... And in the parent component I ...
TechGuy's user avatar
  • 117
1 vote
1 answer
6k views

Pass various data from Child to Parent LWC

Hello everybody I have a child LWC inside of a Parent LWC. In the child component I have some input fields that I pass to the parent component. In one of them I have a combobox field so when the user ...
TechGuy's user avatar
  • 117
1 vote
1 answer
422 views

LWC Local Server says Couldn't find the custom component when I pass attribute using Custom Event from child to Grandparent

Im trying to do a simple operation which is pass an attribute from child to grandparent in LWC using Custom Event where I set the Bubbles and composed attribute to true to pass it through the ...
Amax1's user avatar
  • 121
0 votes
2 answers
180 views

Didn't understand the attributes present inside anchor tag of child component

html file of child component <template> <p>I am Child component</p> <div class="vertical-menu"> <template for:each={navList} for:item="list&...
Oswald's user avatar
  • 11
0 votes
1 answer
112 views

Trigger to update parentId from cloned account

I am building my first account trigger which will clone the triggering record. On the cloned account I will update a field on it called 'Master Record' and set it to true. I also need to set the ...
cjohn's user avatar
  • 1
0 votes
1 answer
262 views

Get the AccountId in the callout Apex class (below)

@all, In the below apex class I need to get the related AccountId from the custom child class "Pending_address__c", tried multiple times but is shows null value, currently I am hardcoding it ...
Shesha Kumar's user avatar
1 vote
1 answer
935 views

Pass DataTable Selected Row from Parent to child Record Page

In my Lightning App Page I have an LWC with a data table of related Child Records. For the Child records I have built a custom Record Page. I have embedded the Child Record Page on my Parent App Page ...
Jeff Callahan's user avatar
0 votes
0 answers
1k views

How to set default picklist value on Custom combobox using LWC

Child lwc JS : setSelection() { const selectedItems = this.getSelectedItems(); let selection = ''; if (selectedItems.length < 1) { selection = this.placeholder; this.selectedOptions = []; } ...
Farkous's user avatar
  • 27
1 vote
0 answers
391 views

This is a parent-child communication question from LWC combobox!

I'm a beginner at lwc! When you select an object from a combo box created by a parent component, you want to load the fields corresponding to the selected object into the combo box created by the ...
Yeonbi Ji's user avatar
0 votes
1 answer
181 views

Querying parent's related list from the child object

I just wonder if this is possible and cannot find anything online about it, so imagine the following scenario: Let's say we have a parent object named Parent__c and it has 2 related lists of objects: ...
SkyAnthrax94's user avatar
0 votes
1 answer
181 views

Multibrand Parent & Child BUs - Contact management & profile center

A potential client has a Parent BU, in which seats the data of one of their brands, and a Child BU in which seats the data of the other brand. They currently have an issue of unsubscription, since ...
Elodie Lapp's user avatar
0 votes
2 answers
114 views

Account Hierarchy value assignments when some child values need to take precedence over others

We use a 4 level account hierarchy in our org that basically looks like this Global National National Metro Metro Metro Metro Unit Unit Unit Unit ...
Carryonplease's user avatar
0 votes
0 answers
46 views

Display Lookup fields in lwc component [duplicate]

I wrote my lwc code in vscode. Then I wrote in apex class a method that returns list<MyCustomObject__c> =[Select ...]; I used child-to-parent relationship so I used Child__r(Lookup(child) in ...
nicole tannous's user avatar
0 votes
1 answer
2k views

Get RecordID when i click on button in Lightning Data-table(Child component) and dispatch it to parent component to display related case

I'm a beginner, learning Child to Parent Component communication. Need to get the recordID of account onclick so that i can use it to display cases related to that particular record. On the Click of ...
Naveen's user avatar
  • 65
0 votes
1 answer
5k views

In LWC JSON.parse(JSON.stringify(array)) not working as expected

I have an LWC that calls the backend, which makes a callout and returns the response wrapped inside an inner wrapper class with @AuraEnabled member variables and this wrapped class's @AuraEnabled ...
nSv23's user avatar
  • 554
-1 votes
1 answer
2k views

Access lightning-record-edit-form fields from parent LWC

I have a child component with a lightning-record-edit-form that should work as a standalone component and as a child component as part of another flow. The form takes inputs from users and then, with ...
Michael Imas's user avatar
0 votes
0 answers
781 views

Listview for my records if I appear in any child records

Suppose we have an A SObject, A has a user child SObject. Now we want to build a list view to show my A records if I am one of the child users linking to the A record. And this needs to be done using ...
Lance Shi's user avatar
  • 13k
0 votes
1 answer
2k 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 ...
priyasfdc's user avatar
0 votes
1 answer
421 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 ...
Ravi Bansal's user avatar
1 vote
1 answer
2k 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 ...
Tejas's user avatar
  • 57
1 vote
1 answer
400 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 ...
Ashutosh Srivastava's user avatar
0 votes
1 answer
1k 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. ...
Akshay Vasu's user avatar
0 votes
0 answers
165 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 ...
Sairam Sravanaboina's user avatar
2 votes
1 answer
1k 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=&...
Rose 's user avatar
  • 123
1 vote
1 answer
3k 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 ...
CodeMonger's user avatar
1 vote
1 answer
1k 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 ...
dwaynej2346's user avatar
0 votes
1 answer
4k 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, ...
AjFmO's user avatar
  • 292
0 votes
1 answer
1k 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 ...
user13956399's user avatar
0 votes
2 answers
1k 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 ...
Rohit's user avatar
  • 50
0 votes
2 answers
4k 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 ...
Ruklani Attanyake's user avatar
0 votes
1 answer
218 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 ...
CPS's user avatar
  • 365
0 votes
0 answers
254 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 ...
kikalz's user avatar
  • 39
1 vote
1 answer
672 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-...
Sudesh Shirole's user avatar
0 votes
1 answer
1k 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="...
SK2889's user avatar
  • 921
0 votes
1 answer
928 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. ...
salesforceninja's user avatar
0 votes
1 answer
4k 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 ...
Ruklani Attanyake's user avatar
1 vote
0 answers
145 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 ...
Joelio's user avatar
  • 937
0 votes
3 answers
1k 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 ...
Michael Stallings's user avatar
0 votes
0 answers
177 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 ...
Niveth Kumar's user avatar
0 votes
1 answer
293 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 ...
Isha's user avatar
  • 163