You need to sign in to do that
Don't have an account?

Link child records to parent object record
Hi,
I have a scenario where I have few records in a custom object. The custom object is in lookup relation with Account. In the child records I want to update the lookup filed using apex class.
I have created a custom page where I have a checkbox to select recods. The selected record should be assigned to any parent record by clicking a button. I have attached the image of my custom page for your reference.
Can someone tell me how to achieve this scenario..
I have a scenario where I have few records in a custom object. The custom object is in lookup relation with Account. In the child records I want to update the lookup filed using apex class.
I have created a custom page where I have a checkbox to select recods. The selected record should be assigned to any parent record by clicking a button. I have attached the image of my custom page for your reference.
Can someone tell me how to achieve this scenario..
QuickBooks Helpline Number
QuickBooks Helpline Number
Add a search box to this page for the user to search and select an account. On your 'Get Records' (i would name it 'Link Records') on press event, get all selected Ids from list.
pseudo code:
for ( record rec: selected_list){
rec.Account__c = selectedAccount.Id
}
System.Database.Update(selected_list) ;
Read more: QuickBooks Support Phone Number (https://tinyurl.com/rz8g44h" style="color:#0563c1; text-decoration:underline)
QuickBooks Support Phone Number (https://rb.gy/dhihmk" style="color:#0563c1; text-decoration:underline)
QuickBooks Support Phone Number (https://richardscarry56.shortcm.li/tbY36f" style="color:#0563c1; text-decoration:underline)
QuickBooks Support Phone Number (https://bit.ly/2VQeu8q" style="color:#0563c1; text-decoration:underline)