Does business rules still fire when creating a project from template?

patrickdeca
ServiceNow Employee

I have a simple insert business rule with no condition on project table that doesn't get fired if user created a project from template. Is this by designed or bug?

1 ACCEPTED SOLUTION

arun_vydianatha
ServiceNow Employee

Hi Patrick



The BRs don't fire while creating projects from templates. The reason why we have turned off is - if template is too big, our recalculation BR fires on insert of each task and the whole system might end up spinning for lot of time.



So we had turned it off by design.



Thanks,


Arun


View solution in original post

16 REPLIES 16

dasaana
Tera Contributor

Yes, this can be expected behavior. When a project is created from a template, the system may use a background process or different workflow that bypasses the standard insert business rule.

You can try using an after insert rule, workflow, or script trigger to ensure it fires even when the project is generated from a template.

RajveerSingh
Tera Expert

Yes, Business Rules generally fire when creating a project from a template because records are inserted into the database during template creation. However, if the script uses setWorkflow(false) or bypasses workflow processing, the Business Rules may not execute.