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

Schmidtc63
Shopify Partner
90 13 23

Using the Product Variant Delete flow, I need to send an HTTP request to our backend ERP. In the body of the request, I'd like to include the email address of the shopify user that deleted the variant. Something like:

 

{ "AdminEmail": "{{admin.email}}"
, "VariantId":{{productVariantId}}

 

Thank you,

Chris

 

 

Replies 2 (2)

Digico
Shopify Partner
47 1 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]);

 

 

 

Schmidtc63
Shopify Partner
90 13 23

I'm not sure you actually know what a Flow is. If you can't show an actual solution, don't offer one