web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send a HTTP Request to...
Power Automate
Unanswered

Send a HTTP Request to Azure DevOps to get Iteration Path

(0) ShareShare
ReportReport
Posted on by 22

Hi,

 

I'm having trouble trying to extract the iteration path/ name so I can add it to a 'Create Item in Azure DevOps' action. My flow is shaped like this. I 'Compose' a HTML, send HTML in an Email, after this I use the 'Send HTTP request to DevOps' to GET the iteration path data

 

eRROR 0.1.PNG

 

The Schema I'm using to Parse the data is:

{

    "type": "object",

    "properties": {

        "count": {

            "type": "integer"

        },

        "value": {

            "type": "array",

            "items": {

                "type": "object",

                "properties": {

                    "id": {

                        "type": "string"

                    },

                    "name": {

                        "type": "string"

                    },

                    "path": {

                        "type": "string"

                    },

                    "attributes": {

                        "type": "object",

                        "properties": {

                            "startDate": {

                                "type": "string",

                                "format": "date-time"

                            },

                            "finishDate": {

                                "type": "string",

                                "format": "date-time"

                            },

                            "timeFrame": {

                                "type": "string"

                            }

                        },

                        "required": [

                            "startDate",

                            "finishDate",

                            "timeFrame"

                        ]

                    },

                    "url": {

                        "type": "string"

                    }

                },

                "required": [

                    "id",

                    "name",

                    "path",

                    "attributes",

                    "url"

                ]

            }

        }

    },

    "required": [

        "count",

        "value"

    ]

}

 

eRROR 0.2.PNG

when I try to extract iteration path to use in 'Create Work Item' I get this error: ExpressionEvaluationFailed. The execution of template action 'Apply_to_each_3' failed: the result of the evaluation of 'foreach' expression '@body('Parse_JSON_3')' is of type 'Object'. The result must be a valid array.

eRROR 0.3.PNG

 

I have tried both array and object in Parse JSON 3 action but I'm still unable to use in the Create Work Item in Azure DevOps (can anyone help?  

{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"startDate": {
"type": "string",
"format": "date-time"
},
"finishDate": {
"type": "string",
"format": "date-time"
},
"timeFrame": {
"type": "string"
}
},
"required": [
"startDate",
"finishDate",
"timeFrame"
]
},
"url": {
"type": "string"
}
},
"required": [
"id",
"name",
"path",
"attributes",
"url"
]
}
}

 

 

{
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"value": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"startDate": {
"type": "string",
"format": "date-time"
},
"finishDate": {
"type": "string",
"format": "date-time"
},
"timeFrame": {
"type": "string"
}
},
"required": [
"startDate",
"finishDate",
"timeFrame"
]
},
"url": {
"type": "string"
}
},
"required": [
"id",
"name",
"path",
"attributes",
"url"
]
}
}
},
"required": [
"count",
"value"
]
}

 

 

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard