HTTP Output, mapped, but data empty on next step

The output of one HTTP module needs to be used as an input for a second HTTP module.

When I run the scenario, I can see that the first HTTP module returned the expected data, but the second HTTP module thinks this mapped value is empty.

Can anyone tell me why the title won’t resolve to the output (Data->items->title) of the first HTTP module?

Thanks!

====================

First HTTP Module

First & Second Modules

Second HTTP Module with mapping shown

Second HTTP Module with data resolved (but missing the title)

Two problems. One solution.

===============

Problem #1: Make not designed for testability

  • If/when I run individual modules one at a time, (the only way I can see that I can test scenarios without having to externally generate a webhook every time), the results of the previous module are not carried forward. So, basically, you can’t test when you’re using the results of a previous module as inputs.

Problem #2: At some point, Make thought it knew the structure of the output of the first HTTP module, but I don’t know where it pulled that structure from. It was close, but wrong.

  • Solution: I had to create a new HTTP module, insert it into the sequence, and manually type in all of the parameters. Then, I could run the HTTP module as a single step and generate the proper structure of the output. Then, I could reference that good output. Then, I had to re-put in all of my variables, so that when it was triggered, it would dynamically generate the input-specific output.

You need to use the map() function to pull the title value from the items array.