Questions tagged [parent]
The parent tag has no usage guidance.
55
questions
0
votes
0
answers
15
views
Is there a work around for Creating multiple Parent and Child Records in a Single Statement Using Foreign Keys for the same SObject?
Im working on inserting multiple campaign records with a self-relationship. I was hoping to do this with one DML statement using the method described here: Link
I know in the first paragraph it says ...
0
votes
1
answer
24
views
Unable to pass data from parent to child component aura
I'm working in a lightning aura component and I'm trying to pass variables from parent to child but it's showing undefined. If I display it in logs before passing it to the child component variables ...
0
votes
0
answers
25
views
Deleting Records Of Other users
I have created two custom objects,Team(parent) and Team member(child) having Master detail relationship. I set OWD to public read/write for these objects. I created a test user and gave create,read,...
0
votes
0
answers
479
views
Custom LWC tree grid Issues - The child rows shown for all Parent rows
I am trying to implement a custom lightning tree grid for one of my requirements. The standard tree grid does not support inline edit (any workaround?)hence a custom one I am trying out with.
I am ...
0
votes
1
answer
884
views
How to add URLs to link to other Salesforce objects in LWC?
I have some review objects that are linked to some Case objects in a master-detail relationship.
I want to be able to create hyperlinks in my custom LWC components that link to the specific case such ...
0
votes
1
answer
2k
views
How to update the fields in Case object once sent the email from email message
I have working to convert the workflow into flow. But am stuck with connecting the parent and child objects which was email and case on while creating the flow.
Am not aware how to connect these two ...
0
votes
1
answer
979
views
Is the "Delete this record also" option for Lookup relationships available only after getting the 'Cascade-Delete' option enabled for your org?
When creating a new Lookup Relationship on a custom object, there should be 3 behaviours to choose from when the parent object record is deleted (according to documentation):
Clear the value of this ...
1
vote
1
answer
942
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
1
answer
81
views
Report Filter: Parent Case Number behaving oddly
This seems like it should be simple but I'm stuck - I don't know Salesforce very well so hoping someone here can help. I have a set of parent cases, and each of those has a number of child cases. ...
0
votes
1
answer
195
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
1
answer
303
views
Query Parent records of an Object
I would like to ask a question regarding the best management of large data.
I have a custom object Product Configuration under Opportunity where it has a lookup field (parent Configuration) to itself. ...
0
votes
0
answers
286
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:
...
3
votes
2
answers
2k
views
In a SOQL Query for Event, is it possible to filter by an field related through the RelatedRecord?
Some of our Events are related to Opportunities.
Some of our Opportunities are related to Accounts which are PersonAccounts.
Some of our Person Accounts have a value for PersonMobilePhone.
Is there ...
0
votes
1
answer
1k
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?
3
votes
2
answers
9k
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
1
answer
389
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
0
answers
874
views
Calling parent Mehtod From Child Lightning Component
I have a Parent Component inside that I have a method-
parentMethod : function(component, event, helper) {
alert("inside parent");
var payload = event.getParams().response;
...
0
votes
1
answer
2k
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 ...
4
votes
1
answer
2k
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
0
answers
178
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
2
answers
5k
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 ...
2
votes
2
answers
1k
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
1
answer
83
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 ...
7
votes
1
answer
240
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
1
answer
106
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
1
answer
3k
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
2
answers
564
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
2
answers
619
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 ...
3
votes
1
answer
4k
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
2
answers
4k
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
1
answer
1k
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
1
answer
230
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
1
answer
71
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
1
answer
736
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 ...
6
votes
3
answers
4k
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 ...
10
votes
1
answer
10k
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
2
answers
4k
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
1
answer
2k
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: ...
1
vote
1
answer
1k
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
0
answers
554
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
1
answer
2k
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
2
answers
480
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
1
answer
1k
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
1
answer
266
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
1
answer
607
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
1
answer
2k
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
3
answers
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
2
answers
163
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 ...
5
votes
2
answers
16k
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
1
answer
2k
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 ...