related tables

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

Notifications