Skip to main content
Question

Objkey attribute and methods bound by Objkey in IFS Cloud API

  • August 14, 2024
  • 2 replies
  • 236 views

Forum|alt.badge.img+3

Hi,

As Objkey is a single column alternative record identifier that applies to any IFS object (as long as the Rowkey is activated), it was common in Apps8, 9, 10 to use this attribute in integrations to tie objects from external systems to IFS objects.

However, it looks like in IFS Cloud the standard APIs do not return the Objkey attribute.

For instance, looking at the OnHoldCauseHandling and OnHoldCauseEntity APIs, none of them return the Objkey when a record is created/POST or retrieved/GET. At least I can`t see it in the API documentation or calling the APIs from Postman.

Also, in Oracle PL/SQL Package APIs, IFS provided methods bound per Id and per Objkey, which was very useful in these integrations where Objkey was being used as a reference. In IFS Cloud the Objkey option does not exists/is not exposed in the Rest API, there is typically the Id method but not the Objkey one.

Also, I can see that there is a keyref field that returns the whole key in one field, but that is not a persisted field neither can be indexed, so I don`t believe this is a good alternative for integrations.

 

Is there a way of enabling IFS to expose the Objkey attribute in the Rest APIs (without customizing the object) and somehow get the methods bound by Objkey as well?

 

Regards,

 

2 replies

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

Anyone any idea? I’m facing exactly the same issue, one entity holds an Objkey to the EquipmentObject, but I didn’t find a way to retrieve the equipment’s key.


Forum|alt.badge.img+10
  • Hero (Customer)
  • 82 replies
  • October 18, 2024

@Alexander Heinze,

We’ve faced the same issue (frustratingly). There is already a separate ticket from us regarding this issue:

Return Objkey attribute by default for any EntitySet | IFS Community

 

For now, you could create a custom attribute → read only field on the entity → Expression → v.Objkey

This way you get the objkey passed as Cf_Objkey.

Please note though, this does not get the best performance.


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