[[["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\u003eRESOLVE_TEMPLATE\u003c/code\u003e function resolves variable references within a template string, denoted by \u003ccode\u003e$variable$\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis function is utilized by calling \u003ccode\u003e$variable$.RESOLVE_TEMPLATE()\u003c/code\u003e, where the variable is the one containing the template string.\u003c/p\u003e\n"],["\u003cp\u003eThe function supports both JSON and String data types for template resolution.\u003c/p\u003e\n"],["\u003cp\u003eThe output of \u003ccode\u003eRESOLVE_TEMPLATE\u003c/code\u003e is a fully resolved template where all variable references have been replaced with their corresponding values.\u003c/p\u003e\n"],["\u003cp\u003eA full example is given that shows a JSON template being resolved, and another showing a string template being resolved.\u003c/p\u003e\n"]]],[],null,["# RESOLVE_TEMPLATE function\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nRESOLVE_TEMPLATE function\n=========================\n\n`RESOLVE_TEMPLATE` function\n---------------------------\n\nSupported data type\n-------------------\n\n\nThe `RESOLVE_TEMPLATE` function supports the following data types:\n\n- JSON\n- String\n\nExample: Resolve a JSON reference in a template JSON that contains a $variable$ reference.\n------------------------------------------------------------------------------------------\n\n\n**Sample data**: \n\n```\n$var1$ =\n{\n \"name\": \"Alex\",\n \"address\": \"$var2$\",\n \"age\": \"25\"\n}\n``` \n\n```\n$var2$ =\n{\n \"street\": \"1800 Amphibious Blvd\",\n \"city\": \"Mountain View\",\n \"state\": \"CA\",\n \"pincode\": \"94045\"\n}\n```\n\n\u003cbr /\u003e\n\n\n**Usage** : `$var1$.RESOLVE_TEMPLATE()`\n\n\nResolve var2 variable reference in var1.\n\n\n**Output**: \n\n```\n{\n \"name\": \"Alex\",\n \"address\": {\n \"street\": \"1800 Amphibious Blvd\",\n \"city\": \"Mountain View\",\n \"state\": \"CA\",\n \"pincode\": \"94045\"\n },\n \"age\": \"25\"\n}\n```\n\n\u003cbr /\u003e\n\nExample: Resolve a string reference in a template string that contains a $variable$ reference.\n----------------------------------------------------------------------------------------------\n\n\n**Sample data**:\n\n- `$var1$ = Hello $var2$`\n- `$var2$ = World`\n\n\u003cbr /\u003e\n\n\n**Usage** : `$var1$.RESOLVE_TEMPLATE()`\n\n\nResolve var2 variable reference in var1.\n\n\n**Output** : `Hello World`\n\nRecommendation\n--------------\n\n- Learn how to add and configure a [Data Mapping task](/application-integration/docs/configure-data-mapping-task)"]]