0

I am trying to create an ADF dataflow to extract data from API using GraphQL query. It has nested structures, and I believe copy activity does not support nested structures.

I tried using dataflow, but I receive errors.

Here is the query I am trying to pass from Rest body:

{
  "query": `
    query($startTime: Long!, $endTime: Long!) {
      agentSession(from: $startTime, to: $endTime, pagination: { cursor: "0" }) {
        agentSessions {
          agentId
          teamId
          siteId
          channelInfo {
            channelId
            channelType
            totalDuration
            connectedDuration
            activities {
              nodes {
                id
                startTime
                endTime
              }
            }
          }
        }
        pageInfo {
          endCursor
          hasNextPage
        }
      }
    }
  `,
  "variables": {
    "startTime": 1704088615000,
    "endTime": 1719813415000
  }
}

enter image description here

enter image description here

3
  • Hi Suresh K, Could you provide what error you are getting ? Commented Aug 12, 2024 at 11:05
  • error screenshot added above Commented Aug 12, 2024 at 22:59
  • It appears that this issue has to be investigated further, so if you have a support plan please create a new GCP support case. Otherwise, you can open a new issue on the issue tracker describing your issue. Commented Aug 13, 2024 at 10:53

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.