
trigger deleteServiceLine on Service_Line__c (before delete) {
//to store the id of the record that triggered the flow
String varServiceLineID;
if (Trigger.isDelete) {
//grabs id of the record and stores it in a variable for later use.
varServiceLineID = Trigger.Old[0].Id;
//displays the value that is stored in the variable
System.debug('this is the ID I am fetching is: ' + varServiceLineID);
}
}
4 réponses
Hi J
Follow the link (https://andyinthecloud.com/2014/10/26/calling-flow-from-apex/)to know moreRegards
RD