Let Oomnitza be your single source of truth!
You'll get complete visibility of your assets as data from Xero is automatically transformed into consumable information and actionable insights.
Connect Oomnitza and Xero in minutes
You'll get visibility of your Xero assets by creating configurable workflows to automate tasks such as:
- Workflows for getting and updating asset information, such as the asset name, number and asset status.
- Workflows for creating Xero assets
Let Oomnitza be your single source of truth!
You'll get visibility of your devices as data from Xero is automatically transformed into consumable information and actionable insights.
Before you start
Before you can create the integration with Oomnitza, you need to have added your Xero credentials to Oomnitza and set your Xero Tenant ID as a global variable. For further information, refer to Adding your Xero credentials to Oomnitza.
We recommend that you also create the extended integration for Xero assets. You can use the information retrieved in these integrations to trigger workflows that can get assets, update assets and create assets.
Creating workflows
Create asset workflows
To create an asset workflow, you must complete these steps:
- Click Configuration > Workflows
- Click Add (+) and select Assets from the list.
- Drag and drop the API block onto the Sandbox.
- Click Edit on the API block and enter Xero in the search field.
- Select a preset:
- Xero Get Asset Details
- Xero Create Asset
- Xero Update Asset
- To choose a preset, click the forward arrow (>).
- Select the credentials that you created in Adding your Xero credentials to Oomnitza.
-
Your Tenant ID should be derived from the global variable you created in Adding the Xero Tenant ID as a global variable
- Configure the API Block following the preset instructions below, and save your changes.
- Edit the Begin Block and add rules to trigger the workflow. For example, if you set the Actions to New you can trigger a workflow every time a new asset is created. Refer to Using the Begin block.
- Connect the Blocks.
- Save, validate, and activate your workflow.
Using the Xero Get Asset Details preset
This Xero Get Asset Details preset returns the details of a Xero asset, by ID. You can configure the message payload by selecting Advanced Mode.
- In the API block window, click the Advanced Mode button located in the upper right of the window.
- Select the Information tab. You will notice that the Xero Asset ID is referenced in the property
{{xero_asset_id}}.Follow the mapping steps in Creating custom mappings so that this property exists in Oomnitza and is populated with information before you run this workflow. -
Select the Response tab. You can map the entire response by placing
{{response}}in the Response field and mapping it to a custom long text Oomnitza field, such as API Response. Once you have the entire response, you can then parse the JSON response values to custom Oomnitza fields as per the example below.
For further information, refer to the Xero API Documentation: Get Assets.
Using the Xero Create Asset preset
The Xero Create Asset preset enables you to create a new Xero asset. When you select this preset you need to supply the new asset information by selecting Advanced Mode.
- In the API block window, click the Advanced Mode button located in the upper right of the window.
- Select the Body tab. You will notice that the Xero Asset Name and Asset Number are referenced in the property
{{device_name}}and{{device_number}}.Follow the mapping steps in Creating custom mappings so that this property exists in Oomnitza and is populated with information before you run this workflow. You can also add more fields that will be used in the request payload, such as the warranty expiry date or asset purchase date. See Xero API Documentation: Post Assets. - Select the Response tab. You can map the message response as per the example in the Xero Get Asset Details preset.
Using the Xero Update Asset preset
This Xero Update Asset preset updates a Xero asset, by ID. When you select this preset you need to supply the following information:
- Asset Name: The Device Name. If you have fetched this information already using the extended integration for Xero assets, you can call a value in the workflow by entering:
{{device_name}} - Asset Number: The Device Number. If you have fetched this information already using the extended integration for Xero assets, you can call a value in the workflow by entering:
{{device_number}} -
Asset Status: Possible values are:
DRAFT,REGISTEREDorDISPOSED. If you have fetched this information already using the extended integration for Xero assets, you can call a value in the workflow by entering:{{asset_staus}}
You can configure the message payload by selecting Advanced Mode.
- In the API block window, click the Advanced Mode button located in the upper right of the window.
- Select the Body tab. You will notice that the Xero User ID is referenced in the property
{{xero_asset_id}}.Follow the mapping steps in Creating custom mappings so that this property exists in Oomnitza and is populated with information before you run this workflow. You can add more fields that will be used in the request payload, such as the asset purchase date or serial number. See Xero API Documentation: Post Assets. - Select the Response tab. You can map the message response as per the example in the Xero Get Asset Details preset
Comments
0 comments
Please sign in to leave a comment.