Business Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 01:17 PM
Hi Team i want to create a field in this form :
so i want it to behave as a Quarterly period
var gdt = new GlideDateTime();
var mon = gdt.getMonth();
(mon == 1 || mon == 4 || mon == 7 || mon == 10);
how can i do it with a field and a business rule , ans is it possible to be something like this : "every x months", then you can set that to "every 3 months". Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 01:52 PM
Looks like you might have to add the 'conditional' and 'condition' fields to the form, then add a function to check the month and return true if its matches your criteria.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 01:59 PM
Hi @jonsan09 Thanks! but can i implement this with like a user-friendly solution something like creating a new field that do the same behaviour something like every x months and the user can then choose the number of months ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2023 02:33 PM
You could try creating a Record Producer for the workflow schedule table. You'd have to setup some variables to select frequency based on day, month,etc. You'd then have to script some logic to handle that when populating the condition on the record. Might be more work than its worth