In Rules 2.0 can we map object as JSON? (i.e., map JSON to JSON)

I almost always add a Pre Save Page script to my exports to map the Settings data into the records, this way I can utilize the settings data all over the flow. With Rules 2.0 and the various input contexts, I can use Envelope and have access to settings in the rules. Great!... but how? I don't want to map individual settings properties, I want to map the whole JSON.

I suspect the first issue is that the mapper Type Object assumes you will build the object with additional mappings.

Hi Steve,

When you set the mapper type to Object you can press the gear icon to copy an object, allowing you to directly copy a whole object into the json.

We also commonly use presave_addsettings scripts in our integrations :sweat_smile:

Hi Bas,

I appreciate the help, thank you! It worked great and I was able to reduce our script count.
Have a nice weekend.

-Steve