Skip to Content
Former Member
Mar 23, 2016 at 06:00 PM

How to fetch the parent of a dependent object?


Hello Cloud Application Studio developers,

we're currently implementing a custom address validation in C4C, version 1602.

Basically we're extending the business object PartnerAddress:

  • An address of an organization or a group, or the address of a person.

We will call a web service which will perform the desired validation. Now besides the address fields, further information is required: e.g. whether the address to check is a company or individual address.

But for the dependent object PartnerAddress, unfortunately the associations ToParent or ToRoot don't exist in the PSM. So how can be determined, from which BO the dependent object was used? How to navigate backwards?

Is there any runtime call which could help?

Or would you suggest a different approach for address validation?

Thanks in advance for any hints and assistance.

Best regards,