[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTO_SET\u003c/code\u003e function removes duplicate values from an array, returning a new array with only unique elements.\u003c/p\u003e\n"],["\u003cp\u003eThis function is applicable to boolean, double, integer, and string arrays.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003e$var1$.TO_SET()\u003c/code\u003e is the syntax used to obtain the unique values from the \u003ccode\u003e$var1\u003c/code\u003e variable.\u003c/p\u003e\n"],["\u003cp\u003eExample usage demonstrates that an input of \u003ccode\u003e{"Hello","World","Apigee","World"}\u003c/code\u003e would output \u003ccode\u003e{"Hello","World","Apigee"}\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# TO_SET function\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nTO_SET function\n===============\n\n`TO_SET` function\n-----------------\n\nSupported data type\n===================\n\n\nThe `TO_SET` function supports the following data types:\n\n- Boolean array\n- Double array\n- Integer array\n- String array\n\nExample 1: Get unique values of a string array\n----------------------------------------------\n\n\n**Sample data** : `$var1$ = {\"Hello\",\"World\",\"Apigee\",\"World\"}`\n\n\n**Usage** : `$var1$.TO_SET()`\nGet unique values in var1.\n\n\n**Output** : `{\"Hello\",\"World\",\"Apigee\"}`\n\nExample 2: Get unique values of an integer array\n------------------------------------------------\n\n\n**Sample data** : `$var1$ = (2,6,9,12,6,8,10,6,12)`\n\n\n**Usage** : `$var1$.TO_SET()`\nGet unique values in var1.\n\n\n**Output** : `2,6,9,12,8,10`\n\nRecommendation\n--------------\n\n- Learn how to add and configure a [Data Mapping task](/application-integration/docs/configure-data-mapping-task)"]]