Having issues with the retail barcode labels app creating duplicate barcodes and want to set up a flow to auto generate barcodes when a new variant is created. By setting the barcode of each variant to it’s variantID (legacyresourceID) it would ensure no duplication.
I’m having difficulty getting the API call to run successfully - not sure if this is due to formatting or just improper input. Have tried a few variations and below is my current set up.
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
Flows send-admin-api-request action does NOT need an api key as flow handles that because it’s integrated with shopify.
Do not confuse it with the arbitrary send-http-request action that is more external facing.
While "id": "{{ productVariant.id }}" is right in this case, I’d rather recommend
using "id": {{productVariant.id | json }} as it leaves determining the field type to the system.