Where can I find the functionId in discountAutomaticAppCreate query?

Hello,

I’m using graphQL with discountAutomaticAppCreate query but it keeps saying that my function is not found.

What is the functionId and where do I find it?

Hi @Thegraske ,

When using the app to create a discount, the functionId is generated by Shopify.

This is the ID to use when updating the discount.

Therefore, please omit it from the discountAutomaticAppCreate argument and query it.