Skip to main content

Questions tagged [parent]

The tag has no usage guidance.

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

How to restrict parent accounts availability according to the account type?

I have an account hierarchy, that is dependant on the account type(not record type). 'Role' on the image is a picklist, that is actually 'Type'. I need to limit the list of accounts for the parent ...
SlavaBychenko CT's user avatar
0 votes
1 answer
85 views

How can I determine parent record of file uploaded through related list of notes and attachment?

I have uploaded a file to Notes and Attachment section and I expect ParentId field on ContentDocument record to be populated with the actual Opportunity record Id where I have uploaded this record but ...
Patlatus's user avatar
  • 17.2k
0 votes
1 answer
190 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
  • 430
0 votes
0 answers
25 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 ...
JEbert's user avatar
  • 11
0 votes
1 answer
78 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 ...
Pavan tej's user avatar
  • 1,458
0 votes
1 answer
2k 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 ...
H4shBrown's user avatar
0 votes
1 answer
3k 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 ...
ajmal khan's user avatar
0 votes
1 answer
1k 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 ...
Bloke's user avatar
  • 217
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
0 votes
1 answer
134 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. ...
ssdscott's user avatar
  • 121
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
1 answer
496 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. ...
Giorgos Galaios's user avatar
0 votes
0 answers
290 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: ...
Laura Chickery's user avatar
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 ...
Brian Kessler's user avatar
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?
mouli nandamuri's user avatar
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 ...
Max's user avatar
  • 486
0 votes
1 answer
485 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 ...
Omar Villasmil's user avatar
0 votes
0 answers
933 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; ...
renu's user avatar
  • 1
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 ...
user12347's user avatar
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-...
Padam's user avatar
  • 55
1 vote
0 answers
189 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 ...
George Rosedale's user avatar
4 votes
2 answers
6k 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 ...
MichaelLev19's user avatar
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 ...
George Rosedale's user avatar
2 votes
1 answer
99 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 ...
Daryn's user avatar
  • 251
7 votes
1 answer
303 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; ...
Brian Kessler's user avatar
0 votes
1 answer
122 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 ...
Thomas's user avatar
  • 2,310
0 votes
1 answer
5k 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 ...
Prerna's user avatar
  • 11
0 votes
2 answers
727 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 ...
Shahaf Shavit's user avatar
0 votes
2 answers
708 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 ...
Jai Ganesh's user avatar
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,...
Madhurima's user avatar
  • 1,425
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 ...
user2582622's user avatar
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: <...
Pavan tej's user avatar
  • 1,458
0 votes
1 answer
252 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 ...
Jay Rizzi's user avatar
  • 465
2 votes
1 answer
72 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 ...
David Marciel's user avatar
0 votes
1 answer
834 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 ...
David Mycka's user avatar
  • 1,327
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 ...
M.Iqbal's user avatar
  • 297
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}" ...
itsmebasti's user avatar
  • 6,477
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/...
Zoom_v's user avatar
  • 3,894
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: ...
cloudZigZag's user avatar
  • 1,376
1 vote
1 answer
2k 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 ...
George Rosedale's user avatar
0 votes
0 answers
647 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 ...
Bartley's user avatar
  • 5,277
0 votes
1 answer
3k 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 ...
Renaud's user avatar
  • 1
0 votes
2 answers
508 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 ...
Kai Tribble's user avatar
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,...
Igor Stosic's user avatar
0 votes
1 answer
276 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 ----------------...
cloudZigZag's user avatar
  • 1,376
1 vote
1 answer
647 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 ...
George Rosedale's user avatar
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 ...
Alex Nekrasov's user avatar
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 ...
joralbert's user avatar
  • 177
0 votes
2 answers
165 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 ...
Rock Tober's user avatar
5 votes
2 answers
17k 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.
noBillSide's user avatar