Re: query on deliveryProfiles

query on deliveryProfiles

daMask
Shopify Partner
15 0 6

I guess this is a feature request, as Shopify doesn't seem to have created this functionality. 

My app creates a deliveryProfile, but if a user uninstalls and reinstalls my app, there is an issue where the deliveryProfile with the same name remains. It would be very helpful if I could filter (query ) the deliveryProfiles on a store to see if a profile created by the app already exists.

Replies 2 (2)

PaulNewton
Shopify Partner
7260 639 1504

Are you not able to store the ID pre-emptively ? And filter to that?

https://shopify.dev/api/admin-graphql/2021-10/objects/deliveryprofile#queries

 

 

And I didn't realize gifs were working on pfps and If I did that Nicholson one I would have considered for myself 😉

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


daMask
Shopify Partner
15 0 6

I'm not sure what you mean 'preemptively', do mean query deliveryProfiles, pull back the first ~25, find the id of the matching named entity, and use that? I mean, that is what I'm trying to avoid. Ideally I'd pass in a query filter (like the one available for products  ) so I could find only the one I need to deal with.

 

Also, lol, I stole it, but that gif definitely one of the best available.