I have an application that is accessed via API (just for adding records), and also by users entering/editing records. I have an add/edit/view form that has rules defined for it to set a Status field based on the value of the Category field. I want the Status field to be set to a specific value only if the Category field has a certain value. This works well if a user enters or edits a record. However, if I call AddRecord through the API, these rules get bypassed, and the Status field doesn't get set properly.
Are there any rules that can be defined to run when the AddRecord API call adds a new record? If not, how might one solve this problem?