How to map an object as is to the full request body

I have a situation where within my json record there will be an object that i want to represent the complete request body for an import, and I’m wondering if there is a simple way to accomplish this. So in this screenshot:

all the keys and values of d365_vendor are what I want the request body (output) to look like. The mapping itself as entered is just kind of an additional chore then.

If i attempt to map and object ‘as is’ here, I have to enter a key for the object I’m creating:

Which then isn’t the correct structure. I don’t want to create a new object reflecting an input object, I simply want one of my input objects to be the output. Is there an easy way to accomplish this, without having to map each individual element?

Don't use mapper and just put {{{jsonSerialize record.d365_vendor}}} in the HTTP request body.

Thanks Tyler! That made me feel dumb. I did try a few handlebars options in the request body option, but skipped over that one some how. Appreciated.

1 Like