• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

Shopify Create Product doesn’t include pricing or inventory tracking information.

Status
Not open for further replies.

CarmenS

Member
Hi! I could finally create a product in Shopify. However it creates it superficially given that there are no price, compare at price, cost values to be mapped. The same with stock and inventory tracking, the product is always created without inventory tracking and stock 0. I thought I would find it in the Update Product selection, but these fields are not included there either.

I’m exporting all of this from a google sheets. And the idea is to create products in bulk with this automation. Is there a way to automate the creation of product description with chatgpt? And update the images to create the product with if they are stored in google drive?

 

Preeti Paryani

Moderator
Staff member
Pro Member
Hello @CarmenS,

Have you tried using the Shopify V2: Create Product action?
Please give it a try and let us know if it includes the required fields and functions as expected.

If it doesn’t meet your requirements, kindly share the specific details you’re looking for so we can assist you further.
 

CarmenS

Member
Hi, i've been trying to configure the creation of products using this function, but it is giving me the following error:

Variable $productSet of type ProductSetInput! was provided invalid value for productOptions.0.values.0 (Expected "Default Title" to be a key-value object.), variants.0.optionValues.0 (Expected "Default Title" to be a key-value object.) This is a product with no variants. I tried creating a product with variants as well but i get the same errors. Do you have any documentation on how to fill this in? Please, i kindly ask for your support

How can i solve it? Maybe i'm putting the information incorrectly. This is my workflow: https://connect.pabbly.com/workflow...JBDxbT1VRAVcDcFFLCApdXgB6AUxSKQBZDzwIVlhwXz4#
 
Last edited:

CarmenS

Member
Hi! Thank you for your reply, it did work for a simple product (without variants) using the format you helped me with. Now my second question is, how should i work with products that have variants?
Screenshot 2025-04-22 at 4.53.40 PM.png


For Products with variants I complete the Google Sheet with a different row per variant, but when I extract the information I only get the information for the first row. How should it be concatenated in this fields? Or maybe I should fill in the Google Sheets information differently? This is the same product with just color variants. Is there a way to concatenate everything in the field without having to manually type in [{"name": "Grey"},{"name": "Black"}] Because if I have to do this manually its hard to see the benefits of automating this process. Some products may have 2 colors, others, 5 etc etc

Screenshot 2025-04-22 at 5.02.18 PM.png
 

ArshilAhmad

Moderator
Staff member
Add all the colors in a single cell, separated by commas like this.
1745368660986.png


Capture that response in your Google Sheets trigger step, and use the Text Formatter and Code by Pabbly to transform the color variants into the desired format. Please check out the workflow shared below to understand how to set up the Text Formatter and Code by Pabbly module.


1745368581709.png


Python:
import json

def convert_colors_to_options(color_string):
    colors = [color.strip() for color in color_string.split(',')]
    result = [{"optionName": "Color", "name": color} for color in colors]
    return json.dumps(result)

# Example usage
color_input = "blue,red,green"
json_output = convert_colors_to_options(color_input)
print(json_output)
 

CarmenS

Member
Hi, I'm thankful for your support. I changed my Google Sheets to fit the example you gave me. I tried the text formatted, and added Code by Pabbly. I tried your code, and then others to get the same output in Product Variants Option Values. But I am still getting an error:

Variable $productSet of type ProductSetInput! was provided invalid value for variants.0.optionValues.0 (Expected "[{\"optionName \":\"Color\",\"name \":\"Rosa\"},{\"optionName \":\"Color\",\"name \":\"Celeste\"},{\"optionName \":\"Color\",\"name \":\"Fucsia\"},{\"optionName \":\"Color\",\"name \":\"Morado\"}]\n" to be a key-value object.)

This is the workflow URL: https://connect.pabbly.com/workflow...dVG8LHwYCVwEFdlxGACwAA1wmUB1TKAVcXG8AXlR8Vjc#
Screenshot 2025-04-23 at 12.40.15 AM.png
 
Last edited:

Resham

Moderator
Staff member
Hello,

Greetings!


We checked the issues you were facing, and they were caused due to two primary reasons:

The Code by Pabbly step was returning \n, which caused formatting issues.
➔ We have added a step to replace \n with a blank space to fix this.

When creating 4 variants, you must mention 4 prices and compare-at prices accordingly.
➔ Please ensure each variant has its own pricing details filled correctly.

1745405307901.png
 

CarmenS

Member
Hello @Resham!! I corrected all of this but is still giving me the following error :cry:.

Variable $productSet of type ProductSetInput! was provided invalid value for variants.1.optionValues.0 (Expected "" to be a key-value object.), variants.2.optionValues.0 (Expected "" to be a key-value object.), variants.3.optionValues.0 (Expected "" to be a key-value object.)
 

Attachments

  • Screenshot 2025-04-23 at 4.02.04 PM.png
    Screenshot 2025-04-23 at 4.02.04 PM.png
    115.3 KB · Views: 9

Resham

Moderator
Staff member
Hello @CarmenS,
Greetings!
We have made some changes in your workflow in the Product Variants Option Values(s), all the variant values are to be passed in separate array. Can you please make some test submission and confirm if it is working for you.
 
Status
Not open for further replies.
Top