unable to set a value to a field of type glide date using previous.date (name of the field) in BR

ankurkumar06412
Tera Contributor

I have a table in which , i have to restrict the updation of entries in such a way that the current date field can be modified to a date which is matching with date of another record. I have created a Business Rule for the same with the condition "Run after" , "Update" and order 100. In the script , I have put in a logic that if post updation of a record in a table , if the Buisness rule finds that updation of this record will lead to duplicity , it will abort that update operation and will not take the updated date in the field which leads to duplicity. but the message which detects the duplicity is coming but the date that created duplicity is also updated rather than getting aborted. I want the date update that is made by the user which leads to duplicate record creation should not be updated as well.

 

I require your assistance on the same.

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@ankurkumar06412 

your business rule should be Before and not after

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

if you want to validate a duplicacy on updation of a record , how can a buisness rule execute in before state?

If any one can help on the above mentioned, query? That would be helpful!

@ankurkumar06412 

please share your business rule script and condition an what debugging did you perform so far?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader