Hi,
I can't get my goal....I have several files inside a folder in onedrive busines and I used get files action to list them and after I used parse json action and finally converted in an array variable (array of objects) whose structure is:
{
"type": "array",
"items": {
"type": "object",
"properties": {
"Id": {
"type": "string"
},
"Name": {
"type": "string"
},
"NameNoExt": {
"type": "string"
},
"DisplayName": {
"type": "string"
},
"Path": {
"type": "string"
},
"LastModified": {
"type": "string"
},
"Size": {
"type": "integer"
},
"MediaType": {
"type": "string"
},
"IsFolder": {
"type": "boolean"
},
"ETag": {
"type": "string"
},
"LastModifiedBy": {
"type": "string"
},
"FileLocator": {
"type": "string"
}
},
"required": [
"Id",
"Name",
"NameNoExt",
"DisplayName",
"Path",
"LastModified",
"Size",
"MediaType",
"IsFolder",
"ETag",
"LastModifiedBy"
]
}
}
Then I would like to iterate throuh the output of the latest step (over my array variable) and check for each iteration if the name field of the current ojbect cointains a value of a compose action defined outiside the loop so that depeding on the result I can do some actions rather than other in case it doesn't match.
Example:
Suppose I have three files in an onedrive path:
file1_mode2.zip
file30_mart3.zip
dog_miller.zip
and my compose has value: miller
It means that at the third iteration by comparing the name parameter of my array (dog_miller.zip) with the compose value (miller) I should get true by using contains function, but I always get false.
Could someone help me out?
Thanks