end date should not be more than 90 days from the start date

Anubhav Srivas1
Tera Expert

Hi All,

 

i have a variable in SP which needs be restricted based on the start date.

if start date is 25/03/2024 then end date should not be more than 90 days from the start date.

 

can you please help me with this?

 

1 ACCEPTED SOLUTION

Harish KM
Kilo Patron
Kilo Patron

Hi @Anubhav Srivas1 you can create a UI Policy with condition like below, No code required

Cond:

ENDATE ismorethan 90 days after start_date//

HarishKM_0-1710394978353.png

HarishKM_1-1710395013035.png

 

 

Regards
Harish

View solution in original post

4 REPLIES 4

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Perhaps this older article of mine helps you:
- 2019-08-12 - Article - No Code date validations thru (Catalog) UI Policies

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Anubhav Srivas1 ,

 

You can attain this using a simple UI policy with a Relative filter conditon , you can refer the content shared below by @Mark Roethof . That must help you with no code solution.

 

I hope this helps...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Harish KM
Kilo Patron
Kilo Patron

Hi @Anubhav Srivas1 you can create a UI Policy with condition like below, No code required

Cond:

ENDATE ismorethan 90 days after start_date//

HarishKM_0-1710394978353.png

HarishKM_1-1710395013035.png

 

 

Regards
Harish