Custom Variables being passed, Iterator is only passing one

hi there, need some help.

I’ve built out a scenario for a client that take orders from woocommerce and then creates bills in xero.
I am trying to add two variables to lines in a xero invoice, they are the Vendor ID and a Commission Amount. My client had her develpoers setup woocommerce to pass these variables through and I can see them in the outputs after running a test.

Now heres the issue, the variables are in an array, under meta data, so I need to run an iterator to get them.

I have been able to pass vendorID but for the life of me cannot pass the value for the Commision amount.

I need both so I can add them to the bill that is being created in Xero, the commision amount is no where to be seen when I satrt adding variables to the xero line items.

I hope this explains it, apologies if its not clear.
I’ve attached a screengrab, ignore the other two paths after the router, I’m only concentrating on the top path right now and making sure those variables get passed into the xero bill

thanks.

Welcome to the Make community!

You are missing screenshots of how you are mapping the array in the Iterator module, as well as the output bundle of the Iterator module.

If you need further assistance, please provide the following:

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. 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.

Screenshot_2023-08-24_230826
(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)

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the modules 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”.
Screenshot_2023-10-06_141025

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-input-bundle.txt (12.3 KB)
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:
    Screenshot_2023-10-02_191027

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!

2 Likes