How to use calWorkDays with a!customFieldDateDiff function

Certified Associate 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 Associate Developer
    in reply to Stefan Helzle

    okay stefan, is there any other way round  , The exact use case is that user will enter number of days a case is open in the interface, then we  need to query all the cases present in the record which are open for the entered number of days excluding the weekends and holidays based on "created On" date-time type field which is present in record. 

    For example if the user enters 5, then we need to return all cases which are opened for 5 business days.

Children