Skip to main content
10 events
when toggle format what by license comment
Mar 17, 2020 at 16:37 vote accept SfdcBat
Mar 17, 2020 at 16:28 answer added Phil W timeline score: 3
Mar 17, 2020 at 16:28 comment added SfdcBat This is how it looks
Mar 17, 2020 at 16:26 comment added SfdcBat [ { "Id": "7072900001Sf8CmXXXX", "JobType": "Future", "Status": "Failed", "JobItemsProcessed": 0, "TotalJobItems": 0, "NumberOfErrors": 0, "CompletedDate": "2020-03-11T19:15:32.000Z", "MethodName": "XX", "ExtendedStatus": "XXXX" } ]
Mar 17, 2020 at 16:26 comment added manjit5190 It can be that apexJobInfoData is not an Array but a String like '[a,b,c,d]'
Mar 17, 2020 at 16:25 comment added sfdcfox This probably fix your problem, but you could write this.isBatch = !!apexJobInfoData.find(element=>element.JobType === 'BatchApex') instead.
Mar 17, 2020 at 16:24 comment added SfdcBat I have added a console log. It does enter into If loop but there is something wrong with how I am using forEach.
Mar 17, 2020 at 16:24 history edited SfdcBat CC BY-SA 4.0
deleted 41 characters in body
Mar 17, 2020 at 16:22 comment added manjit5190 Can you put a screenshot of the result of apexJobInfoData after logging it via console.log. Maybe it is not an Array but a String that looks like Array. Also, can you add console logs to know exactly at what line does it stop.
Mar 17, 2020 at 15:56 history asked SfdcBat CC BY-SA 4.0