In our Project Enterprise installation there is a task level custom field called Billing Rate, but in the plan it is populated at the assignment level, like the following:
Task Name Billing Rate
========== ============
Task 1 USD0.00
Resource 1 USD100.00
Resource 2 USD120.00
Task 2 USD0.00
Resource 3 USD150.00
I would like to access the value of Billing Rate in VBA Macro. But since it is a custom field at task level, I am unable to access it in assignment object in Task.Assignments.
I tried
Assignment.Resource.GetField(FieldNameToFieldConstant("Billing Rate"))
But getting error:
<The argument is not valid.>
How do I access this field at the assignment level?
On a related note, the field can be accessed in PowerBI under Assignment table at "BillingRate_T", but unable to access in Project VBA Macro. Thank you in advance!
Assignment.EnterpriseNumber1
– Rachel Hettinger