I have a condition where I need to get the taskId value of the dictionary where taskcode is "LIFE_MAX_DAYS". How can I do ?
Dictionary
replFlag: null (Text)
taskCode: "LIFE_MAX_DAYS"
createdBy: "Administrator"
createdOn: 3/20/2020 1:54 AM EDT
lastModifiedBy: "Administrator"
lastModifiedOn: 3/20/2020 1:54 AM EDT
actionId: null (Number (Integer))
priorityId: 5
statusId: null (Number (Integer))
concatKey: null (Text)
taskId: 5980
batchId: null (Number (Integer))
id: 4
Dictionary
replFlag: null (Text)
taskCode: "LIFE_MAX_DAYS"
createdBy: "Administrator"
createdOn: 3/20/2020 1:54 AM EDT
lastModifiedBy: "Administrator"
lastModifiedOn: 3/20/2020 1:54 AM EDT
actionId: null (Number (Integer))
priorityId: 5
statusId: null (Number (Integer))
concatKey: null (Text)
taskId: 5980
batchId: null (Number (Integer))
id: 5
wherecontains
finds the indicies where an array value is provided.{"a", "b", "c", "d"}[{1, 3}]
returns{"a", "c"}
).{{x: 1}, {x: 2}, {x: 3}}.x
returns{1, 2, 3}
)These three features allow you to do this:
Which can of course be spelled with much less ceremony: