Skip to main content
Question

Method to retrieve a custom field


Alexander Heinze
Superhero (Employee)
Forum|alt.badge.img+23

I’m trying to access a field from the scheduling resource. This works for a standard field like this:

 

Resource_API.Get_Description(#RESOURCE_SEQ#)

 

However, I want to retrieve a custom field and cannot figure out the correct syntax.

Any pointer appreciated.

  • Superhero (Employee)
  • May 9, 2023
Alexander Heinze wrote:

I’m trying to access a field from the scheduling resource. This works for a standard field like this:

 

Resource_API.Get_Description(#RESOURCE_SEQ#)

 

However, I want to retrieve a custom field and cannot figure out the correct syntax.

Any pointer appreciated.

Where does the custom field sit? It’ll be something like below, depending on if it’s persistent or reference.

Resource_Cfp.Get_Cf$_your_field(#RESOURCE_SEQ) 
Resource_Cfp.Get_Cf$_your_field.Get_your_field(Resource_API.get_objkey(#RESOURCE_SEQ))

 


Alexander Heinze
Superhero (Employee)
Forum|alt.badge.img+23

Thanks André! Based on this custom attribute...

...this statement worked:

resource_cfp.get_cf$_customattribute(resource_api.get_objkey(#RESOURCE_SEQ#))

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings