I’m running this query:
query {
shopifyqlQuery(query: "FROM sessions SHOW sessions, pageviews TIMESERIES day WITH TOTALS, CURRENCY 'DKK' SINCE -1m UNTIL today ORDER BY day ASC VISUALIZE sessions") {
tableData {
columns {
name
dataType
displayName
}
rows
}
parseErrors
}
}
With the access scope `read_reports`.
It works in development, but in production I get:
Access denied for shopifyqlQuery field. Required access:
read_reportsaccess scope. Also: Level 2 access to Customer data including name, address, phone, and email fields.
I’ve verified in the Admin panel of the shop, under Apps, that my app has the `read_reports` scope. I’ve also requested and received approval for “Protected customer data”.
Any idea what I’m doing wrong?
My dev and production app both use managed install and each have a corresponding TOML file.