run business rule after attaching file

irvin2
Giga Contributor

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

8 REPLIES 8

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

Hi Chuck


By OOB when an attachment is added to a record, it should run the BR if 'after' 'update' is selected?


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


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