unable to set a value to a field of type glide date using previous.date (name of the field) in BR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2025 05:40 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2025 05:41 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2025 05:53 AM
if you want to validate a duplicacy on updation of a record , how can a buisness rule execute in before state?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2025 10:37 PM
If any one can help on the above mentioned, query? That would be helpful!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2025 10:44 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader