Tutorial: ColumnOrRow.getParent

ColumnOrRow.getParent

Retrieves the parent of the ColumnOrRow

Get parent of ColumnOrRow

if (!fin.me.isView) {
    throw new Error('Not running in a platform View.');
}

const stack = await fin.me.getCurrentStack();
// Retrieves the parent ColumnOrRow
const columnOrRow = await stack.getParent();

// undefined if columnOrRow is the root item
const parent = await columnOrRow.getParent();