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

Schmidtc63
Shopify Partner
78 11 21

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
46 1 4

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
78 11 21

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