run business rule after attaching file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2017 02:43 PM
I need to run a business rule after attaching a file to a record .. I can do this by clicking on the save button (or update) however I would prefer to update the record as soon as the file is attached without needing to press the save or update button
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2017 05:25 AM
Go to System Diagnostics> Debug Business Rules and watch the output at the bottom of the screen to see when the business rule is encountered and why it is or is not triggering.
Most common mistakes I have found,
- Active field is false
- Using Advanced mode, Insert/Update are false
- Using the wrong table
- The condition doesn't evaluate to true as expected
- BR has an error in the script - check the logs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2017 08:14 AM
Hi Chuck
By OOB when an attachment is added to a record, it should run the BR if 'after' 'update' is selected?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2017 06:45 AM
I'm not entirely sure what you mean here. Business rules run when you tell them to based on:
- Table
- When
- Insert/Update checkboxes
- Conditions
- Active field
Reference:
Docs: Business Rules
Developer: Business Rules Technical Best Practices Overview
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2020 11:38 PM
Hi Surya,
I have the same requirement as you were asking for, did you find the solution for it. If it is ca you please share the code snippet?
Regards,
Tejaswini RG