Advanced Tag Generation

The advanced tab supports the generation of tags for the following types:

Conditional

Selecting 'Conditional' from the 'Category' drop-down will allow you to create if / else statements using either automatic or manually created fields.

In the following example, an if / else statement has been created to test for the 'Address' field being equal to either 'Encodian' or 'Encodian Solutions'.

Conditional.png

 

Mathematical

The 'Mathematical' option in the 'Category' drop-down allows you to carry out the arithmetic operations of addition, subtraction, multiplication, and division using two automatic or manually created fields.

In the following example, the fields 'TotalAmount' and 'VATAmount' will be added together in the generated tag.

Mathematical.png

Table

The 'Table' option in the 'Category' drop-down allows you to generate tags for a table of data based on a collection of items in the JSON that has been uploaded.

Please note that to use the 'Table' option, you need to upload the JSON before selecting it.

In the following example, this JSON has been used to generate a table.  

'Templater' provides the ability to:

  • Apply extension methods such as GroupBy, Contains or Any to data in the table
  • Format the data as a 'Single Row' or 'Single Column'.
  • Apply 'Formatters' to the data based on the type.
  • Edit the individual headings on the table columns
{
  "addresses": [
    {
      "addressId": "ADDR-001",
      "addressType": "billing",
      "isPrimary": true,
      "addressLine1": "123 Example Street",
      "addressLine2": "Apartment 4B",
      "city": "London",
      "stateOrProvince": "Greater London",
      "postalCode": "SW1A 1AA",
      "country": "United Kingdom"
    },
    {
      "addressId": "ADDR-002",
      "addressType": "shipping",
      "isPrimary": false,
      "addressLine1": "456 Sample Road",
      "addressLine2": null,
      "city": "Manchester",
      "stateOrProvince": "Greater Manchester",
      "postalCode": "M1 1AE",
      "country": "United Kingdom"
    }
  ]
}
Table.png
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk