Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Can i create a formula field to calculate the time in business hours between Case created date to now/Closed date? I'm looking for a non code solution which is equivalent to finding the difference in date/time using apex with the BusinessHours.diff() method.

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

I'm pretty sure this can't be done without code. There is no formula that accesses the business hours settings. Sorry!

share|improve this answer
add comment

You could try this answer which calculates the time difference http://stackoverflow.com/questions/11126378/salesforce-formula-calculate-business-hours-between-two-dates/11129346 but you would have to make assumptions about the business hours and the formula wouldn't mirror exactly to them. Hopefully close enough

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.