diff --git a/src/pages/overview/document-generation-api/stylingformattingtags.md b/src/pages/overview/document-generation-api/stylingformattingtags.md index ed0460d8c..95d2ef04d 100644 --- a/src/pages/overview/document-generation-api/stylingformattingtags.md +++ b/src/pages/overview/document-generation-api/stylingformattingtags.md @@ -78,9 +78,9 @@ JSON representation of the input data: ## Inline images supported attributes -[Click here](../document-generation-api/inlineimages.md) to refer documentation on how to add Inline Images. +You may find documentation for using inline images [here](../document-generation-api/inlineimages.md). -Formatting for image can be provided using the attributes of the img tag. +Formatting for images can be provided using the attributes of the img tag. - The img tag supports the height and width attributes. diff --git a/src/pages/overview/document-generation-api/templatetags.md b/src/pages/overview/document-generation-api/templatetags.md index 2cef92de2..0bb140879 100644 --- a/src/pages/overview/document-generation-api/templatetags.md +++ b/src/pages/overview/document-generation-api/templatetags.md @@ -26,10 +26,9 @@ A placeholder(text tags) gets replaced by the actual input data. A placeholder variable can only be applied to an input field of type -string, number or boolean.
Formatting applied to the placeholder -variable in the document template will be retained in the output -document.
-For more simplified styling and formatting for the placeholder tag from the input json data, please refer [styling and formatting](../document-generation-api/stylingformattingtags.md) section: +string, number or boolean.
Please refer to the **Arrays** section to use array as placeholder variable.
Formatting applied to the placeholder +variable in the document template will be retained in the output document.
+For more simplified styling and formatting for the placeholder tag from the input json data, please refer [styling and formatting](../document-generation-api/stylingformattingtags.md) section. JSON representation of the input data: @@ -74,6 +73,21 @@ A prefix value can be specified for the placeholder variable. Doing so will appe this value before the result of the tag. ![Placeholder tags with prefix image set](../images/placeholder_prefix.png) + +**Arrays** + +To work with arrays, please refer to the [JSONata Functions](#jsonata-functions) section. + +JSON representation of the input data: + +```json +{ + "companyName": "Tech Corp", + "discountCoupons": ["SummerSale", "BlackFriday", "NewYearSpecial"] +} +``` + +![working_with_arrays](../images/working_with_array.png) ## Images To dynamically insert an image in the document, add any image as @@ -447,6 +461,22 @@ Here is the list of [supported aggregation functions](https://docs.jsonata.org/a aggregate numerical calculation can only be applied to a list of numbers. +## JSONata Functions +The Document Generation API supports various JSONata functions, including: + +- [String Functions](https://docs.jsonata.org/string-functions) +- [Numeric Functions](https://docs.jsonata.org/numeric-functions) +- [Aggregation Functions](https://docs.jsonata.org/aggregation-functions) +- [Boolean Functions](https://docs.jsonata.org/boolean-functions) +- [Array Functions](https://docs.jsonata.org/array-functions) +- [Date/Time Functions](https://docs.jsonata.org/date-time-functions) +- [Higher Order Functions](https://docs.jsonata.org/higher-order-functions) + + +Please note that some functions may not produce the expected results. It is recommended to test these functions before incorporating them into your template. + + + ## Adobe Sign Adobe Sign text tags can be placed anywhere within the contents of the document template. diff --git a/src/pages/overview/images/working_with_array.png b/src/pages/overview/images/working_with_array.png new file mode 100644 index 000000000..b86f61e7b Binary files /dev/null and b/src/pages/overview/images/working_with_array.png differ diff --git a/src/pages/overview/releasenotes.md b/src/pages/overview/releasenotes.md index d00101090..30c412ce6 100644 --- a/src/pages/overview/releasenotes.md +++ b/src/pages/overview/releasenotes.md @@ -181,6 +181,10 @@ Upgrading to the latest SDK should not break existing applications. ## Change history +### September 10, 2024; Added support for funtions in Table with Markers + +- JSONata functions can be used in Table with Markers. + ### August 23, 2024; Added new features for Document Generation API and updated Acrobat Service API postman collection - Added base64 format support for inline images.