f365.data, bulk read and write

Read every field's value at once, or apply a patch across multiple fields atomically.

The f365.data() helper does in one call what looping over every field would do over many. Two shapes:

PropertyDescription
f365.data()Returns a plain object of { internalName: value } across every visible field.
f365.data(patch)Applies a patch, only keys present in patch are written; absent keys are left alone.

Examples

Snapshot the form

const before = f365.data();
// ... user makes changes ...
const after = f365.data();
const changedKeys = Object.keys(after).filter((k) => after[k] !== before[k]);

Bulk prefill from an external lookup

const profile = await f365.http.get<{ name: string; email: string; phone: string }>(
  `/api/profile/${userId}`
);
f365.data({
  FullName: profile.name,
  ContactEmail: profile.email,
  ContactPhone: profile.phone,
});

Related articles