I have one Object for which we are doing bulk data update from Mulesoft, there is nothing which we are doing in salesforce for the same. Now due to some validation, few records are getting failed. I need to handle those failed record and update one custom field Failed_Record_Reason__c with some value like 'Validation Failed'
I'm trying to do the same using trigger, but not sure how I'll get the failed record with the reason for their failure. As I'm not doing any DML operation in trigger