Understanding Registered Interface Consumption

If there is an interface in the registry that your application needs to use, you must create code in PeopleCode events in the consuming application to invoke the interface.

Note:

You can click the Generate Consumer Code button on the Registry Details page for the registered service to generate all the code the consuming application needs. Cut and paste the code into the consuming application's PeopleCode Event (for example, SavePostChange PeopleCode). Confirm that the generated code meets the criteria set out in these steps and make any necessary modifications.

Note:

You can only place the code for manipulative services such as Set, Add, or Delete in the SavePostChange PeopleCode of a single field in a component. You cannot spread out manipulative service calls over several PeopleCode events. You must also not place manipulative service calls in FieldChange PeopleCode.