- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 09:28 AM
Hello,
I defined a resource role with a hourly but the filed Confirmed/Allocated cost calculation is based on the default rate.
Can someone explain why and where can I find the script calculating this field.
Suggestion and advice are welcome. Please feel free to reach out if anyone had come across similar requests.
Regards,
FF
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 11:38 PM
Hi @Farfara
There you go, you can find the default rate in this function below.
new RateModelUtils().getDefaultRate();
getDefaultRate: function(){
return gs.getProperty(this.CONSTANT.DEF_RATE_PROPERTY,'50');
},
Generally, The Confirmed/Allocated cost (hours) in Resource Allocation is rolled up from Resource Allocation Daily. There's a field named "Allocated hourly rate" to store the rate value. This field gets populated when the Resource Allocation Daily record is generated.
Follow the business rule below, you will find the getDefaultRate function mentioned.
Name: Create allocation daily entries
URL: https://<instance_name>.service-now.com/sys_script.do?sys_id=c2dfc0479320320064f572edb67ffb32
Cheers,
Tai Vu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 06:56 AM - edited 05-15-2024 07:01 AM
Hi @Farfara did you associate the Rate model to the project record?
I have never tried with groups, our Rate model uses Resource role only, but I would expect to work the same
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 11:38 PM
Hi @Farfara
There you go, you can find the default rate in this function below.
new RateModelUtils().getDefaultRate();
getDefaultRate: function(){
return gs.getProperty(this.CONSTANT.DEF_RATE_PROPERTY,'50');
},
Generally, The Confirmed/Allocated cost (hours) in Resource Allocation is rolled up from Resource Allocation Daily. There's a field named "Allocated hourly rate" to store the rate value. This field gets populated when the Resource Allocation Daily record is generated.
Follow the business rule below, you will find the getDefaultRate function mentioned.
Name: Create allocation daily entries
URL: https://<instance_name>.service-now.com/sys_script.do?sys_id=c2dfc0479320320064f572edb67ffb32
Cheers,
Tai Vu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 04:32 AM
Hi @Farfara - you need to have a rate model attached to the project/demand and define the Rate Lines there and the calculations will then be correct.
Have a read and let me know if you need additional help on this 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 02:00 AM
Hello @PaulaaO thanks, I tried to create a rate model with associed rate lines but the result is the same.
Best reagrds,
FF

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 06:56 AM - edited 05-15-2024 07:01 AM
Hi @Farfara did you associate the Rate model to the project record?
I have never tried with groups, our Rate model uses Resource role only, but I would expect to work the same
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 12:51 AM
Hi @PaulaaO , I would like to do the same like you did ( resource role ). Where I can associate the rate model to project record ?
Regards,
FF