ContributionsMost RecentMost LikesSolutionsRe: Constructing post body request npise: “input”: [ { “key”: “plan”, “value”: “ProvisioningPlan”, “type”: “application/xml” }, { “key”: “identityName”, “value”: “88E2EA18-6C15-E811-8BB4-0017A47705CA” }, { “key”:“flow”, “value”:“AccessRequest” }, { “key”: “launcher”, “value”: “D12D1C44-7D41-EB11-80E8-0017A4774018” } ] this didn’t work… i am trying to build body (using mapper) which will go in the post rest’s HTTP entity field and this is the body i am trying to create “input”: [ { “key”: “plan”, “value”: “ProvisioningPlan”, “type”: “application/xml” }, { “key”: “identityName”, “value”: $identityNameValue }, { “key”:“flow”, “value”:“AccessRequest” }, { “key”: “launcher”, “value”: $launcherValue } ] this expression sl.ensureArray({}.extend({key:‘plan’,value:‘provisioning plan’,type:‘application/xml’})) is proving me (to an extent) what i am trying to achieve, however i noticed “key” and “value” cannot be repeated hence i am looking for recommendations Constructing post body request objective is to build the below in mapper “input”: [ { “key”: “plan”, “value”: “ProvisioningPlan”, “type”: “application/xml” }, { “key”: “identityName”, “value”: “88E2EA18-6C15-E811-8BB4-0017A47705CA” }, { “key”:“flow”, “value”:“AccessRequest” }, { “key”: “launcher”, “value”: “D12D1C44-7D41-EB11-80E8-0017A4774018” } ] with the below expression i am unable to reuse keys… any recommendations ? sl.ensureArray({}.extend({key:‘plan’,value:‘provisioning plan’,type:‘application/xml’})) Re: How to escape character (.) in target path in mapper Thank you for the feedback How to escape character (.) in target path in mapper creating request body {“urn:ietf:params:scim:schemas:sailpoint:1.0:LaunchedWorkflow”: { “workflowName”: “LCM Provisioning” } how to escape ‘.’ in urn:ietf:params:scim:schemas:sailpoint:1.0:LaunchedWorkflow since this is added in “target path” should be Re: Find a specific word in Json Object Thanks for the response I am using a router snap and i dont think i can use conditional. Find a specific word in Json Object In the router i am trying to route data based on below criteria if any of the value in statusC.contains("T’) route to view1 if any of the value in !statusC.contains("T’). (does not contains) route to view2 How can i best achieve from below data [ { "group" : [ { "statusC":"T" }, { "statusC":"T" } ] }, { "group" : [ { "statusC":"A" }, { "statusC":"A" } ] }, { "group" : [ { "statusC":"T" }, { "statusC":"A" } ] }, { "group" : [ { "statusC":"A" }, { "statusC":"T" } ] } ] SolvedRe: Jsonpath begins with Thank you all!! jsonPath($, “entity.entries[*]”).filter(x => x.hasPath(‘type’) && x.type == ‘file’ && x.hasPath(‘name’) && x.name.startsWith(‘Send Email’)).length >0 This worked! Jsonpath begins with Below is my input, i am trying filter for id where type == file and name begins with “Send Email” expression i used in mapper jsonPath($, “entity.entries[?(@.type == ‘file’ && @.name =~ /Send Email.*?/i)].id”) but i am getting error Please check expression syntax and data types. "entries":[ { "type": "folder" "id": "138491898043", "name": "processed Template" } { "type": "file" "id": "817753844208", "name": "Send Email Template (1).xlsx" } { "type": "file" "id": "817352978835", "name": "Send Email Template.xlsx" }, { "type": "file" "id": "81735297", "name": "Hello World.xlsx" }, ] SolvedRe: Check if all values of array are equal Thank you. this worked!! Check if all values of array are equal I need to find arrays where all values are equal. What’s the fastest way to do this? Should I loop through it and just compare values? ['a', 'a', 'a', 'a'] // true ['a', 'a', 'b', 'a'] // false Solved