+ Start a Discussion
akkkakkk 

How to perform the Before Update Trigger if the old record then go to update elase create New Record ?

Hi ALL,

this is condition i have Account object and ObjectName__c if the Record Created on the Account object then Created on the ObjectName__c New Record if the existing Record then only update the Record

Thanks
akkk
ANUTEJANUTEJ (Salesforce Developers) 
Hi Aqleem,

I see that this is a similar question posted in https://developer.salesforce.com/forums/ForumsMain?id=9062I000000IWJY with different wording.

I think you can simply have a method that gets all the new records and in case if the record values are new then insert them if there are other records with the same values return those records to the trigger and modify the values in before insert.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.