The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [parent]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
65 views

LWC Parent Component not hitting Apex with RecordId in Child Component

Here are my Components: Child Component html : <template> <lightning-card> <div class="slds-m-around_medium " onload={handleLoad}> <div class="slds-...
1
vote
0answers
25 views

Client MID is now a PARENT MID, but Data Views do not recognize this

We recently added a BU under an existing MID, so now the MID is the "parent" to the newly created BU's MID. However, when we run a simple query and add ent. as a prefix the system does not recognize ...
4
votes
2answers
1k views

How can I check that parent has more than 1 child?

Now I'm trying to use this to check it: List<Tool__c> tools = [SELECT Id FROM Tool__c WHERE Date__c >= 2019-09-11T00:00:00.000Z]; for(Tool__c t : tools){ //And I'll get here 101 limits ...
2
votes
2answers
63 views

Is it possible to change “unsubscribe settings” for Email Studio?

Client has acquired another brand and is setting up the acquired brand as a child BU in Marketing Cloud. When creating the new child BU we reviewed the current implementation and the Unsubscribe ...
2
votes
1answer
30 views

PARENT CHILD SOQL

I have this query which is working but is it possible to only return a list of Accounts where company__c exists. SELECT ID, name, (select company__c from VotingRelatedCompanies__r where ...
6
votes
1answer
127 views

Is it possible to invoke “super” with less ambiguous results?

I have an abstract parent class with some dependency and a default implementation. The constructors might look like: public abstract class ParentClass { protected SomeDependency someDependency; ...
0
votes
1answer
32 views

How to a adress lightning button from parent component

I have a master lightning-component with a next button and a child component button with create. I want to a replace the create button from the child with the next button from the parent. I get the ...
0
votes
1answer
23 views

Access Parent object's field in Child object using formula field

I have a Account Test1 with Address Line 1, City and State. I have another Account Test2 with Address Line1. Test1 is the parent of Test2. In Case object, i have a field where I am populating value ...
0
votes
2answers
71 views

Can two Case sobjects have the same child ContentVersion?

I am trying to delete a ContentDocument under Case sobject safely. In order to do so I will delete the Case's related ContentVersion's ContentDocument, which will delete the ContentDocument and its ...
0
votes
2answers
56 views

Child to parent relationship queries and data sharing [duplicate]

I am trying to use Child to Parent Relationship queries, but the documentation! doesn't cover the parent record's accessibility. Say I am owning a Contact, but I don't have access to its parent ...
1
vote
1answer
519 views

Cant do null check in sub query record

I have done a parent parent to child query List<Opportunity> opportunityList = [SELECT Id, Field__c, (SELECT Account__c,Contact__c,CreatedDate, LastModifiedDate, Description__c,Id,Note_Type__c,...
0
votes
2answers
689 views

Querying child object fields from Parent [duplicate]

Currently, I have a custom object of the name University and have a lookup field to another custom object of the name School Details. I want to query fields of School Details object. How would I do ...
0
votes
1answer
316 views

How to pass parent Id to relatedlist custom button

I am working on custom vf page of the Log a call activity. Now I am not able to pass the lead id to task layout and I am getting following error now .Is there any best way to pass id My Vf page: <...
0
votes
1answer
111 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 ...
2
votes
1answer
59 views

Expected behaviour in a query filtering by parent null field

What should I spect when the account is null in the below code? SELECT Id, name, Account__c FROM AccountChildren WHERE Account__r.someField = true I am having issues debugging the query and I would ...
0
votes
1answer
80 views

Child records fields editable if parent is read only for profile

I have one object - A ( Custom Object) is the master to object B ( Child Object). A is set to read only for P (profile). A is from managed package which was installed by one vendor. Is there any ...
0
votes
1answer
353 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 ...
5
votes
1answer
892 views

Account Trigger find Ultimate Parent Account

There is a field on Account called Account.Ultimate_Parent__c. I want to update(through trigger) this field with correct value whenever Account.Parent field is Changed. Although, Ultimate Parent ...
9
votes
1answer
5k views

Can force:recordData query related parent fields?

Anyone found a way to select parent fields with force:recordData? It would be great to have something like this: <force:recordData recordId="{!v.recordId}" targetRecord="{!v.child}" ...
0
votes
2answers
1k views

How to auto-populate a New child record's lookup field with a parent's field while creating

I am creating a new child record with a lookup field which I want to be populated automatically upon pressing the "New" button. It would be the equivalent as when the linking field between the parent/...
0
votes
1answer
1k views

Insert Parent and multiple child record with same vf page

My query is when I input account details after that input contact detail and click on the save button its not save given error is Insert failed. First exception on row 0; first error: ...
0
votes
1answer
495 views

Pull formula field from opportunity to account

I have a formula field on opportunities that calculates the Tier/Importance of an opportunity by looking at 'product purchased' and 'no. of licences purchased'. I'm now trying to find a way to pull ...
1
vote
1answer
598 views

Accessing ALL SUBSCRIBERS in a Parent BU from a Child BU?

I have two child BUs and as people are deployed they are added to the ALL SUBSCRIBERS list. Their STATUS is limited to the Child BU, so an unsubscribe occurs only at the child BU. Question: If a ...
0
votes
0answers
74 views

show the activities of the child record on the activity feed of the aprent

In Lightning, is it possible to show the activities of the child Account record on the Parent or the Grandparent? Scenario: 1. Account record called "ICME". 2. ICME parent is "ICME Group" 3. ICME ...
0
votes
1answer
1k views

How to do a batch job to update a field in a parent object from multiple child object fields?

I have the custom object Project, which has a child Payers. One project can have more than one Payer. Payer has a field called Billing Percentage. Payer is a child of Account and Project has a lookup ...
0
votes
2answers
179 views

Comparing account.parentId SOQL

Is it possible to to compare the parent id of an account to another account? i.e. SELECT Id from Account WHERE child_account.parentId = parent_account.Id; I keep getting the 'Unknown Error parsing ...
0
votes
1answer
664 views

Copy values to child Object from Main object

I am looking for an option to copy fields from Main Object to Child Object, when lookup is selected: Also when i edit field 1,2,3,4 from Child Object i want to copy that value in Main Object field 1,...
0
votes
1answer
155 views

selected account(parent) name from select option,show its related child(contact obj) on vfpage

using selectoption my all account name fetched if i select anyone account name in that dropdownlist show releated contact(child record) on vfpage error showing that list has no rows ----------------...
1
vote
1answer
280 views

Can I post to a Shared Data Extension, and trigger an email from a child business unit?

My client has several brands, and we're putting all our eggs into a single basket (that is, a shared DE at the Parent MID) With the Shared Data Extension at the Parent level, we run Queries to update ...
1
vote
1answer
728 views

How can I create a hierarchy (parent/child relationship) within the same object?

I have custom object Territory that can have a parent Territory and child Territory. For example, Territory "United Kingdom" with child territories "Scotland", "Wales", "North Ireland" etc. Each of ...
12
votes
3answers
1k views

Parents Whose Last Created Child is a 'Failure'

I have a lookup relation, so I need to filter Parents (id, Name) whose last created Child has status__c Failure. Tried something like: SELECT Id, Name FROM Parent WHERE RecordType.Name = 'rt' AND ...
0
votes
2answers
102 views

Can't Close Parent Custom Object if Checkbox Not Checked on Child Custom Object

I have 2 custom objects: Project__c (parent) and Project_Contact__c (child). The parent has a picklist field called project_status__c with values Open or Closed. On the child object, there's a ...
1
vote
2answers
6k views

SOQL to determine if parent has child records

Simple and short question, what is the cheapest way to query (plain SOQL) if an object has child records? I want to avoid running into limits even if there are parents with millions of child records.
0
votes
1answer
893 views

Parent-Child Update Trigger - Update Field on Parent Object when Field Changes on Child (Booleans)

There are 2 custom objects involved. Project__c is the parent, Project_Contact__c is the child. Both objects contain a field called Survey_Sent__c. Whenever 'Survey Sent' is updated on the child, I'd ...
0
votes
1answer
36 views

How can I use the 15-character identity of a parent object to populate merge fields?

I'm editing a Visualforce Email Template whose sending is triggered by automation (process builder) that starts with the creation of an Attendee object that meets certain criteria. The Attendee object ...
0
votes
1answer
81 views

Fetch child account name from parent

Estimate is the parent and it has Bid Request as a child. In Bid request there is a field "Name" Above the "Bid Estimate" field, display the selected Contractor's name that is associated to the ...
3
votes
1answer
738 views

Trigger on CaseComment

I'm trying to update a boolean field on Case called Boo__c when a new Case Comment is added to the Case and it contains the word boo. trigger OHT on CaseComment (before insert,before update) { ...
0
votes
1answer
509 views

How to prevent firing triggers by roll up summary fields

I have some roll up summary fields on parent object(account) to a child object (opportunities). When I make any changes on opportunities, roll up summary fields are automatically updated, and it fires ...
1
vote
2answers
3k views

Get a list of child accounts for any given parent account using apex [closed]

I have a requirement where i have the following need. If the account is a parent account, i need to loop and traverse through each child account and get a list of child accounts at any level deep. ...