🏅 Quickly and efficiently updates specific fields to their default values.
1. Overview
This Interaction is designed to set Xero-related fields to their default values.
2. Example
In the below example, the function sets default values for the xero-type, xero-status, and line-amount-types fields, assigning predefined IDs ['34120'], ['34126'], and ['34122'] respectively.
async function handler(clev) {
let actions = [];
actions.push(clev.setValue("xero-type", ["34120"]));
actions.push(clev.setValue("xero-status", ["34126"]));
actions.push(clev.setValue("line-amount-types", ["34122"]));
return clev.mergeAll(actions);
}📌 Need Help?
