- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2019 08:59 AM
Hello Guys,
I am trying to Set value to company Field when caller is selected via Business Rules.
Table name : Incident
What i want is pasted in below image
But i am not getting Caller.comapny in the third field, please check below
can someone please show me how to select that field
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2019 09:15 AM
Hello Bright,
You need to set value in script if you are trying to set value like above that is called a dot-walking of field.
Business Rule Script: I am here referring your business rule is written on Incident table and you want to set a value for company field
1. If your are using BEFORE INSERT/UPDATE Business Rule I
current.company= current.caller_id.company :
2. If your are using AFTER INSERT/UPDATE Business Rule
current.caller_id = current.caller_id.company :
current.setWorkflow(false);
current.update();
Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2019 09:15 AM
Hello Bright,
You need to set value in script if you are trying to set value like above that is called a dot-walking of field.
Business Rule Script: I am here referring your business rule is written on Incident table and you want to set a value for company field
1. If your are using BEFORE INSERT/UPDATE Business Rule I
current.company= current.caller_id.company :
2. If your are using AFTER INSERT/UPDATE Business Rule
current.caller_id = current.caller_id.company :
current.setWorkflow(false);
current.update();
Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade
Abhishek Gardade