Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. Method does not exist or incorrect signature: [BusinessHours].diff(Id, Time, Time)
  2.  
  3. BusinessHours bh = [SELECT FridayEndTime,FridayStartTime,Id,IsActive,IsDefault,LastModifiedById,
  4. LastModifiedDate,MondayEndTime,MondayStartTime,Name,SaturdayEndTime,
  5. SaturdayStartTime,SundayEndTime,SundayStartTime,SystemModstamp,ThursdayEndTime,
  6. ThursdayStartTime,TimeZoneSidKey,TuesdayEndTime,TuesdayStartTime,
  7. WednesdayEndTime,WednesdayStartTime FROM BusinessHours where Name='XXX Hours'
  8. LIMIT 1];
  9. Datetime dt = bh.diff(bh.Id, bh.MondayStartTime, bh.MondayEndTime);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement