Skip to main content
Question

Method to retrieve a custom field

  • May 8, 2023
  • 2 replies
  • 191 views

Alexander Heinze
Ultimate Hero (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.

2 replies

  • Superhero (Employee)
  • 1487 replies
  • May 9, 2023

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
Ultimate Hero (Employee)
Forum|alt.badge.img+23
  • Author
  • Ultimate Hero (Employee)
  • 1053 replies
  • May 10, 2023

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

...this statement worked:

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