As you already correctly guessed you should get what you need from this REST call -
https://www.ibm.com/docs/en/baw/19.x?topic=object-getNow regarding "boId" - I agree that instead of just using the name (since you're specifying the app/snapshot id anyway) you have to come up with business object id and it's not easy to get hold of it ...
So, there are couple of ways -
1) Start an instance of a process where you use your BO and then use REST API "Current State" and find your BO in there and you will see its ID.
2) Get it straight from the DB by querying LSW_CLASS table. Not supported by IBM (direct db queries) but if you just need to get an id once that should be fine :) I would go with method 1 when/if possible
boID should not change as long as you don't remove the BO and recreate it ...
Hope this helps.
------------------------------
Sergei Malynovskyi
------------------------------
Original Message:
Sent: Thu February 17, 2022 11:11 AM
From: Laszlo Kertesz
Subject: How to enumerate declared properties of a a business object?
Hi All,
I need the list of declared properties of a complex business object, but did not found method for this. variable.toXMLString(), variable.toJSONString() and tw.system.serializer.toXML(variable) returns the properties with values only. It would be nice to get more info on properties like datatype and whether is it a list or not.
I suppose, there is a metholdology for this, because the inspector can show all the properties of a business object regardless of their values when we debug a service:

Such a list would be fine for me...
Is it somehow possible this within a service flow?
---
I tried to call the Business Object API / Get definition REST service, but don't know what to pass as boId. It do not accept the name of the BO (it says "Supported values are: 'External ID format of TWClass'", but I don't know, what's that or where's that):

Thx,
------------------------------
Laszlo
------------------------------