Timeline for Batch class associated to work object
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 9, 2018 at 19:05 | comment | added | Naveen Singh rajput | im running the batch after creating the records like for example i create 10 records first then i run the batch | |
May 9, 2018 at 19:02 | comment | added | David Reed | You've written a batch class, not a trigger. Assignment of record types at the time of record creation can be handled through the user interface or other automation, but a batch class is not the way one would do this. It's also not what you describe in your question. I don't think I can help any more unless you can communicate more clearly about your problem. You may want to work with Trailhead to build your fundamentals. | |
May 9, 2018 at 18:59 | comment | added | Naveen Singh rajput | okay . what i wanted to tell u is that i have created two new record type of name parent and one child.so whenever have to create a new work order i need to select one of them and i want that id(parent/child) to populate in Parent_Work_Order__c. | |
May 9, 2018 at 18:55 | comment | added | David Reed | The Id of your batch job has nothing to do with this issue. | |
May 9, 2018 at 18:54 | comment | added | Naveen Singh rajput | Id batchJobId =Database.executeBatch(new WorkOrderBatch()); isthis correct ? | |
May 9, 2018 at 18:37 | history | answered | David Reed | CC BY-SA 4.0 |