I am using Celigo to create physician metaobjects in Shopify from customers in Acumatica. We want to maintain a list of physicians who do business with Sente Labs on a regular basis. What that implies is that if the customer has made a purchase within the past 6 months, then we want to create/update the physician record in Shopify (if it has been modified). But if the physician has not made a purchase within the past 6 months, then we want to delete the physician record from Shopify.
In order to delete the physician record, we need the id of the metaobject. The id is not available when you use the UpsertMetaobject mutation. But in the Manage Metaobjects section of the development document, I found a metaobjectByHandle query and it looked like I might be able to add the id to the query. So here is what I submitted:
{
metaobjectByHandle(handle: {
type: “$app:physician_model”,
handle: “S-0000467_109491”
}) {
displayName
id
handle
}
}
When I look at the response, it returns:
“data”: {
“metaobjectByHandle”: null
}
Any help would be appreciated.