- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2016 03:07 PM
I have form on which i track who uploaded what attachment as in the screen capture below:
This works fine as long as the form is submitted but obviously it is no good if a user drags a file to the form. So, I registered an event as follows:
I then wrote a business rule:
and nothing happened....Where did I go wrong?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2016 07:42 AM
Yes as chuck mentioned, it should be an after BR. What is the field type of attachment_links and is it a custom field ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 01:37 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 01:57 PM
Can you show the when to run tab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2016 02:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2016 06:07 AM
Abhinay,
Can you explain the "when" section of when to run a bit?
Many thanks for your always detailed and correct help.
Verda

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2016 06:28 AM
The diagram on this page explains it pretty well.
http://wiki.servicenow.com/index.php?title=Business_Rules
Before rules are generally used to update fields on the current record before the data is committed to the database.
After rules are generally used to update related records after the commit is done.
If you try to update the current record in an after rule, the results aren't saved because the commit is already done. If you add current.update() you trigger the business rules all over again.
If you try to update related records in a before rule, you could be updating information and get out of sync of the current record is not updated accurately (e.g. have a bunch of canceled change approval when the change request still requires approval.)
Hope that helps.