Skip to content

shopifyUploadProductImages - shopify

Version: 2024-01

← shopify Add-On Übersicht

Uploads new product images to a product via an image URL. In addition, the position and the alt text and the corresponding variants to the image can also be specified.


Inputs

Das sind die Optionen, mit denen man den Step konfigurieren kann.

NameDatentypBeschreibungPflichtfeldWerte
accountACCOUNTshopify account dataJa
inputSPREADSHEETList of images to be uploaded.Ja
mappingdefinitionSTRINGThe mapping definition JSON StringJa
Folgende Felder sind zu konfigurieren:

FeldDatentypBeschreibungPflichtfeldStandardwert
product_idSINGLEThe id of the product associated with the image.Ja
sourceSINGLESpecifies the location of the product image. This parameter supports URL filters that you can use to retrieve modified copies of the image. For example, add _small, to the filename to retrieve a scaled copy of the image at 100 x 100 px (for example, ipod-nano_small.png), or add _2048x2048 to retrieve a copy of the image constrained at 2048 x 2048 px resolution (for example, ipod-nano_2048x2048.png).Nein
image_base64SINGLEImage as Base64 stringNein
filenameSINGLEImage filename. Required if image_base64 is usedNein
positionSINGLEThe order of the product image in the list. The first product image is at position 1 and is the "main" image for the product.Nein
variant_idsSINGLEA comma separated list of variant ids associated with the image.Nein
altSINGLEImage alt tag content.Nein
limitSTRINGLimits the number of rows used from the input SPREADSHEET. Use low values for testing. If limit is empty, all lines are processed.Nein

Outputs

Das sind die Ergebnisse des Steps, die von nachfolgenden Steps, nach der Ausführung verwendet werden können.

NameDatentypBeschreibungWerte
createdImagesSPREADSHEETList of new images created in shopify.
Folgende Felder sind im Output enthalten:

FeldDatentypBeschreibungStandardwert
image_idSINGLE
product_idSINGLE
positionSINGLE
created_atSINGLE
updated_atSINGLE
altSINGLE
widthSINGLE
heightSINGLE
srcSINGLE
variant_idsSINGLE
admin_graphql_api_idSINGLE
failedItemsSPREADSHEETList with failed items. An error occurred when creating images in shopify.
Folgende Felder sind im Output enthalten:

FeldDatentypBeschreibungStandardwert
product_idSINGLE
sourceSINGLE
positionSINGLE
variant_idsSINGLE
altSINGLE
statusCodeSINGLE
errorMessageSINGLE
invalidItemsSPREADSHEETList of invalid items. Some required fields are missing.
Folgende Felder sind im Output enthalten:

FeldDatentypBeschreibungStandardwert
product_idSINGLE
sourceSINGLE
positionSINGLE
variant_idsSINGLE
altSINGLE