Shopify Flow Delete Variant-- Include admin user email in HTTP request

Topic summary

Including the admin user’s email in an HTTP request triggered by Shopify Flow’s Product Variant Delete automation on Shopify Plus.

Goal: Send a payload to an ERP that contains both the deleted variant ID and the email of the admin who performed the deletion, e.g. {“AdminEmail”: “{{admin.email}}”, “VariantId”: {{productVariantId}}}.

Exchange: A reply proposed a JavaScript array/JSON approach (e.g., let userData = [{{email}}, variantId: {{product.variantID}}]), but this does not align with Shopify Flow’s templating and action structure. The requester pointed out the suggestion isn’t applicable to Flow and asked for an actual Flow-based solution.

Status: No confirmed solution was provided. Key question remains whether Shopify Flow exposes the deleting admin’s email in the Product Variant Delete trigger/context for use in an HTTP request body.

Open items:

  • Is there a Flow variable or context token (e.g., {{admin.email}}) available on variant delete events?
  • If not, what alternative method can reliably capture the acting admin’s email for inclusion in the HTTP request?

Outcome: Discussion unresolved; no action items decided.

Summarized with AI on January 25. AI used: gpt-5.

Hi, Looks like you need to organize and clean a bit data.

Something like:

let userData= [

{{email}},

variantId:{{product.variantID}}

]

Try this in array table, and unarray it with something like:

let userProfile = json [userData];

console.log (userProfile);

console.log (userProfile[1]);