Development discussions around Shopify APIs
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
I need to retrieve the entire ActivityFeed urgently. The GraphQL query for ActivityFeed doesn't support pagination so I have wrote a bulk operation query to download the data. The operation starts successfully and when I poll it states it's in progress, however after a few mins it fails with an internal server error.
Any help how I can download entire Activity log or even filter for a specific date would be much appreciated
mutation {
bulkOperationRunQuery(
query:"""
query ActivityFeed {
staffMember {
id
privateData {
activityFeed(first: 10) {
pageInfo {
hasNextPage
__typename
}
edges {
...Activity
__typename
}
__typename
}
__typename
}
__typename
}
}
fragment Activity on ActivityEdge {
cursor
node {
author
createdAt
messages
attributed
__typename
}
__typename
}
"""
) {
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}
{
"data": {
"node": {
"id": "gid://shopify/BulkOperation/162958377122",
"status": "FAILED",
"errorCode": "INTERNAL_SERVER_ERROR",
"createdAt": "2021-01-30T11:10:52Z",
"completedAt": null,
"objectCount": "0",
"fileSize": null,
"url": null,
"partialDataUrl": null
}
},
"extensions": {
"cost": {
"requestedQueryCost": 1,
"actualQueryCost": 1,
"throttleStatus": {
"maximumAvailable": 5000.0,
"currentlyAvailable": 4999,
"restoreRate": 250.0
}
}
}
}
Hey @EDM_IRELAND,
I'm not aware of ActivityFeed being exposed on any of our APIs. There are a few old posts that mention this field, but this field was never meant to be exposed through the API so it's expected to encounter errors when using it in a bulk operation.
JB | Solutions Engineer @ Shopify
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
User | RANK |
---|---|
5 | |
5 | |
4 | |
4 | |
4 |
Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022Shipping can be one of the most vital parts to set up and manage your business. Understand...
By Ollie Dec 16, 2022