Auto-populate the assigned to field within the Hardware New record with a business rule

BenFan
Tera Expert

Hi,

I am trying to auto-populate the 'Assigned to' field in the Hardware New record with the user from the 'Requested for' field in the Requested Item, after the RITM number is populated in a custom field called 'RITM Number' in the Hardware New record.


I tried to auto-populate the 'Assigned to' field with a business rule I created, but whenever I add an RITM number to my custom field in the Hardware New record, the 'Assigned to' field remains empty.

 

My steps:
1. Accessed the business rules under system definition.

 

Created a business rule new record:
1. Advanced = checked

 

When to run:
1. When = before.
2. Update = checked.

 

Advanced:
1. I created a custom script.

 

See Assigned to1 and Assigned to2.

20 REPLIES 20

That's a lot.  Does this process involve the LDAP API???  I still can't see your attachments, not sure what's going on there.  Can you paste in screenshots of your Business Rule tabs instead of attachments?

Here are the inserted photos w/o the condition in the script. When checking the syslog this time it's saying the script started, the question is how do I get the assigned to field auto-populated the moment the RITM is added to the custom RITM Number field in the Hardware New Record.

 

See Inserted images:

Assigned to4.pngAssigned to3.pngAssigned to2.pngAssigned to1.png

Your original post shows the BR executing before Update, which means it won't run when a Hardware record is insert, rather only when there is an update to an existing record.  Check the Insert box in addition to or instead of the Update box on the When to run tab.

Here is the script with the condition added back.

Assigned to2.pngAssigned to1.pngAssigned to3.png 

 

That doesn't have anything to do with triggering the Business Rule when a record is inserted.  These logs are also unrelated to the Business Rule execution.