withIndirectTxnMode Method @beta

Synchronously execute a series of changes with the TxnMode set to "indirect", so they are recorded as indirect changes. Calls may be nested; the mode reverts to "direct" when the outermost call returns or throws. This method does not save changes.

withIndirectTxnMode(callback: () => void): void

Parameter Type Description
callback () => void The function containing the changes to make.

Returns - void

Defined in

Last Updated: 05 November, 2026