Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
I want to calculate cycle time -difference between received date and closed date in days which includes only business days
Exclude weekends and public holidays
Using recordtype-new custom record field I wanna to achieve as I need to use in process hq reports
Thanks,
Priyadharshini. S
Discussion posts and replies are publicly visible
Function calworkdays() returns the number of net work days between two datetimes excluding weekends and holidays by default. This is supported in Sync Time custom record field as well. So you can configure an expression like below.
fn!calworkdays(rv!record[HS Test.fields.startDate'], rv!record[HS Test.fields.endDate'],"IndiaHolidayCalendar")
The last parameter takes in a 'calendar_name' which can be created using 'Process Calendar' in Designer->Objects view. It is an optional parameter. If you don't have a process calendar then system calendar is the default value which is used as 'calendar_name'.
Since sync-time custom record filed dont support constants use the process calendar name as string (e.g. IndiaHolidayCalendar). Hope it helps.