I am creating a flow that pulls item information. Sometimes the item will have an additional array, if it does, then I want the flow to grab a code from there and create a new item in a second system. If it does not have the code, I'll give it a different name, and create the item.
Essentially if "itemVariant" array = Null is what I'd like to do. Not really sure how to accomplish this though
{
"type": "object",
"properties": {
"statusCode": {
"type": "integer"
},
"headers": {
"type": "object",
"properties": {
"Transfer-Encoding": {
"type": "string"
},
"Vary": {
"type": "string"
},
"Access-Control-Allow-Headers": {
"type": "string"
},
"Access-Control-Allow-Origin": {
"type": "string"
},
"Access-Control-Allow-Credentials": {
"type": "string"
},
"ms-correlation-x": {
"type": "string"
},
"OData-Version": {
"type": "string"
},
"Access-Control-Expose-Headers": {
"type": "string"
},
"request-id": {
"type": "string"
},
"x-content-type-options": {
"type": "string"
},
"Strict-Transport-Security": {
"type": "string"
},
"Date": {
"type": "string"
},
"Server": {
"type": "string"
},
"Content-Type": {
"type": "string"
},
"Content-Length": {
"type": "string"
}
}
},
"body": {
"type": "object",
"properties": {
"@@odata.context": {
"type": "string"
},
"@@odata.etag": {
"type": "string"
},
"id": {
"type": "string"
},
"number": {
"type": "string"
},
"displayName": {
"type": "string"
},
"type": {
"type": "string"
},
"itemCategoryId": {
"type": "string"
},
"itemCategoryCode": {
"type": "string"
},
"blocked": {
"type": "boolean"
},
"gtin": {
"type": "string"
},
"inventory": {
"type": "integer"
},
"unitPrice": {
"type": "integer"
},
"priceIncludesTax": {
"type": "boolean"
},
"unitCost": {
"type": "number"
},
"taxGroupId": {
"type": "string"
},
"taxGroupCode": {
"type": "string"
},
"baseUnitOfMeasureId": {
"type": "string"
},
"baseUnitOfMeasureCode": {
"type": "string"
},
"lastModifiedDateTime": {
"type": "string"
},
"itemCategory": {
"type": "object",
"properties": {
"@@odata.etag": {
"type": "string"
},
"id": {
"type": "string"
},
"code": {
"type": "string"
},
"displayName": {
"type": "string"
},
"lastModifiedDateTime": {
"type": "string"
}
}
},
"defaultDimensions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"@@odata.etag": {
"type": "string"
},
"id": {
"type": "string"
},
"parentType": {
"type": "string"
},
"parentId": {
"type": "string"
},
"dimensionId": {
"type": "string"
},
"dimensionCode": {
"type": "string"
},
"dimensionValueId": {
"type": "string"
},
"dimensionValueCode": {
"type": "string"
},
"postingValidation": {
"type": "string"
}
},
"required": [
"@@odata.etag",
"id",
"parentType",
"parentId",
"dimensionId",
"dimensionCode",
"dimensionValueId",
"dimensionValueCode",
"postingValidation"
]
}
},
"itemVariants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"@@odata.etag": {
"type": "string"
},
"id": {
"type": "string"
},
"itemId": {
"type": "string"
},
"itemNumber": {
"type": "string"
},
"code": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"@@odata.etag",
"id",
"itemId",
"itemNumber",
"code",
"description"
]
}
}
}
}
}
}