How can I view user feedback when deleting an app from the store?

Solved

How can I view user feedback when deleting an app from the store?

mkop
Visitor
3 0 0

Hi,

 

When deleting a public app from the store, a dropdown and a textarea are shown to user to optionally give a reason why he/she deletes the app. As i developer and owner I want to see the reason and feedback. Where can I collect them? I check the webhook request for app/uninstall and in the request and these fields are not there.

 

 

Accepted Solution (1)

alagaesia
Shopify Partner
34 7 11

This is an accepted solution.

You can find them in your Shopify Partner dashboard or by using the Events GQL query => https://shopify.dev/api/partner/2021-10/objects/RelationshipUninstalled#fields

 

Hope it helps 🙂 

Alessandro

View solution in original post

Replies 7 (7)

alagaesia
Shopify Partner
34 7 11

This is an accepted solution.

You can find them in your Shopify Partner dashboard or by using the Events GQL query => https://shopify.dev/api/partner/2021-10/objects/RelationshipUninstalled#fields

 

Hope it helps 🙂 

Alessandro
Tony49
Shopify Partner
36 2 6

2 questions:

  1. Where is it in partner's dashboard?
  2. What do you query for using Events CQL query?  I have tried to guess based on the documentation at https://shopify.dev/api/partner#endpoints, but I am doing something wrong and I don't see enough examples to help me see what I am doing wrong.
alagaesia
Shopify Partner
34 7 11

@Tony49 just get in GQL the app, events with type RELATIONSHIP_UNINSTALLED, edges, node, and then you get the reason and description

Alessandro
Tony49
Shopify Partner
36 2 6

I have tried various things based on the documentation, but nothing works.  If you could give me an example query, that would be really helpful.  The documentation is really lacking on examples (it has one example in the entire document that I could find, and it is for "conversations"), and doing web searches so far has revealed nothing.  Heck, even more examples of valid queries would help me figure it out.  Since I am new to this, I am having a hard time figuring it out without more examples to look at.

 

This was the last thing I tried.  To the best of my knowledge, nothing is misspelled, according to the documentation.

     {
        app(
            id: "gid://partners/App/<ID>"
        ) {
            events (
                types: RELATIONSHIP_UNINSTALLED
            ) {
                edges {
                    node
                }
            }
        }
    }

And I get the following error:

{"errors":[{"message":"Field must have selections (field 'node' returns AppEvent but has no selections. Did you mean 'node { ... }'?)","locations":[{"line":10,"column":21}],"path":["query","app","events","edges","node"],"extensions":{"code":"selectionMismatch","nodeName":"field 'node'","typeName":"AppEvent"}}]}

 

 

Also, can we see it in the partners dashboard, as per the accepted answer?

 

Thanks.

ShopifyDevSup
Shopify Staff
1453 239 532
Hi @Tony49 👋

You'll need to create a partner API client in your Parter Dashboard > Settings > Partner API Clients page where there is a GraphiQL tool embedded as well for your convenience.
 
Since `AppEvent` is an interface, you can use an inline fragment on `RelationshipUninstalled` to get the `reason` property:
{
  app (id:$id) {
    events(first: 10) {
      edges {
        node {
          ... on RelationshipUninstalled {
            reason
            occurredAt
          }
        }
      }
    }
  }
}
 Hope that helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

shashank-a
Shopify Partner
8 0 5

With the help of two answers, I was able to achieve this via Postman-

 

{
        app(
            id: "gid://partners/App/6881341"
        ) {
            events (
                types: RELATIONSHIP_UNINSTALLED
            ) {
                edges {
                    node {
                        ... on RelationshipUninstalled {
                            shop {
                                apiKey,
                                id,
                                name
                            }
                            type
                            reason
                            occurredAt
                        }
                    }
                }
            }
        }
    }
ahornung93
Shopify Partner
3 0 0

Hi, is there something similar for sales channels?

banned