Development discussions around Shopify APIs
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 |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |
As a business owner, have you ever wondered when your customer's first impression of yo...
By Skye Jun 6, 2023We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023