How to map objects in an array?

Hi all,

I’m seeking help with mapping a single object from an array to the correct field in my automation. Here’s a quick breakdown:

I’m working on a Printify to Etsy scenario. Printify publishes listings to Etsy via its existing integration. I need to update these listings through Etsy using the “Update a Listing” module in Make.

To do this, I need the specific Etsy “Listing ID” for the product created by Printify. However, I have multiple products, and the Etsy module always outputs the latest published listing. This is not ideal if I’m publishing listings in bulk. Another issue here is the Lisiting Id doesn’t match the correct product when publishing more than one listing at a time.

I’ve tried using the following function:

Here’s an image of the array from the Etsy “Make an API Call” module. This gathers all the needed data: Title, Listing ID, and more:

Attaching an image below to breakdown the collection data coming through Etsy’s “Make an API Call” module:

What would be the correct function to get the listing ID and map it to the correct product via matching titles or any other parameters for that matter?

I’d love to hear your thoughts.

Thanks all!

Welcome to the Make community!

Before you can tackle the issue with the “Update a Listing” module, you have a different issue to fix.

If you notice carefully, the output of your “Make an API Call” module only returns the 25 results, so the product you want to work with may not even be in there?

How are you doing the “Make an API Call”?

If you need further assistance, please provide the following:

1. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

2. And most importantly, Input/Output bundles

Please provide the output bundles of each module by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

Hi @Chady ,

Welcome to Make Community!
Could you please share the output bundle so that we can recreate the setup and get back to you.

How to Share Input/Output bundles

To obtain the input and output bundles for each module:

  1. Run the scenario or retrieve it from the History tab.
  2. For each module, click the white speech bubble located at the top-right corner.
  3. Select “Download input/output bundles” from the dropdown menu.

This will allow you to download the necessary data for further analysis and sharing.

Method 1: Attach a Text File

  1. Copy the output data.
  2. Paste the data into a text file.
  3. Attach the text file to your ticket.

Method 2: Direct Sharing

  1. Use the direct sharing option available in the reply section. Please refer to the image below for guidance.

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support | Book Live Implementation
Visit us here
Youtube Channel