Global API
Code Examples
Xero Contact Flow
7min
this is an example of the invocable method generated by breadwinner apex generator, which a standard flow can invoke this is useful as it shows how you can use salesforce standard automation practices to drive xero contact record creation using this format, you can extend to update or read similarly this primary use case shows how easy it is to create robust automation in salesforce to facilitate xero contact record creation in breadwinner for xero application extending upon this, using the global api requests in this help site, you can perform many automated retrieves, create, or update functions directly rather than requiring extensive middleware or endpoint processing to perform create custom field step 1 create a “ send to xero ” custom field of checkbox data type on the account object apex class generation navigate to breadwinner setup > tools > apex generator step 2 choose the rec ord mode create on a xero con tact using a flow step 3 select the option for run this flow (i will check "run asynchronously") step 4 click on next it will navigate to the fields selection page click on generate apex step 5 co py the generated apex class / apex test (optional) class save/deploy the copied code to the respective org xero contact automation using flow step 1 navigate to salesforce setup > flows > new flow > record triggered flow step 2 choose the options similar to those mentioned below, and click on done 1\ select the object (account) 2\ trigger event (the record is created or updated) 3\ entry conditions (like “send to xero” is true) 4\ check " only when the record is updated to meet the condition requirements" 5\ optimize flow for (actions and related records) 6\ check the run asynchronously path (only when the option "i will check "run asynchronously" (on record triggered flow creation page)" on step 3) step 3 create an apex action using the "create xe ro contact" invocable method step 4 map the fields to create xero contact in "apex action" step 5 connect the flow steps, click save, and activate connect record trigger flow section to apex action (run asynchronously) triggering xero contact creation when you check the “ send to xero ” checkbox field in account, it will create a xero contact record with all the mapped fields in salesforce and xero step 1 select an account/create new account step 2 edit the account to meet trigger criteria (check the “send to xero” field) and give the other mapped field details step 3 evaluate the created xero contact