persistenceId

How to refer to join ID in API

I want to call a parent table in a child process form.
Was planning to use an API call as such:

../API/bdm/businessData/nds.model.ParentTable?q=findByPersistenceId&p=0&c=1000&f=persistenceId={{x}}

Where x is the ChildTable's link to the parent: ParentTable_PID.

How do I set a js variable to call the ParentTable_PID of ChildTable to be used to find the correct record within the API?

Or is there a smarter way to go about this?

Thanks

SBusinessDataNotFoundException: persistenceId of business data is null

Hi,
I have a problem with a new object I created in the BDM.
I created an object "Autorisation" and added 2 variables of this type in an existing object "MainModel".
In a form, I return a json array of Autorisation and in the task operation, I have a script to set the variable of the MainModel :

Notifications