Partner extensibility

Article06/21/20231 min read

For partners it’s possible to add their own Interface Implementations via subscription to the Integration Events available in the Interface Management app. Via the OnRegisterInterface event it’s possible to add an Interface Implementation and via the OnInterfaceEvent it’s possible to define how the data/function should be handled.

Considerations:

  1. Data should be representable as JSON.
  2. There is no way to pass complex types with their state or global variables set.
  3. Be alert on schema and type definition, the compiler is unable to check the field definition and relation because there’s no dependency.
  4. Remember that codeunit parameters are VAR which is useful in at least two ways:
    • The codeunit that is called can set values in the record and they will be passed back to the calling codeunit.
    • You can pass a set of records (temporary records or filtered set). The calling codeunit is then able to just REPEAT…UNTIL over the set rather than extracting the result from a string.