How to use calWorkDays with a!customFieldDateDiff function

Certified Senior Developer

I want to calculate number of working days between two dates (record field) and use the output as a custom field in the record. Getting stuck while trying to use calworkDays in a!customFieldDateDiff function. Can anyone please help

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to parikshitd918726

    Hey there is an update in the use case, If I filter by Business days=4, then this would mean that only the cases which have been open for 4 business days would come in the filter result and if the case is created on weekends then it should not take the weekend while calculating the business days for ex. If case is opened on Saturday, and the filter is applied on Tuesday, then the business days open for that case would be 2 i.e. Mon & Tue. 

       Is there any possible way to solve this.

    Also this filter is to be done on an interface which would then populate the case details from the record.  

     

Children