Relationship between transaction diff and defaultHandlingMode

Hi,

In our code, we use maapi_diff_iterate() to get the transaction changes list in validation phase and will apply these changes to our external database in commit phase.
I want to know how the transaction changes list is generated. If it’s behavior are different under different configurations, like the /confdConfig/defaultHandlingMode, especially for those nodes with default value?

No /confdConfig/defaultHandlingMode affects only northound interfaces, as written in the documentation. What affects various maapi_... functions, including maapi_diff_iterate, are flags that can be used with them or set for that MAAPI connection using maapi_set_flags. For instance, MAAPI_FLAG_NO_DEFAULTS affects how leaves with default values are reported. See the documentation for more details.