Mapping items in Select field

Hi everyone,

I’m sending data to a module with a select field which has the three following options : House, Apartment and Multiple House.

In the previous module, I used a “switch” fonction like this one below , in order to sort those items in one of those 3 categories (House, Apartment and Multiple House :

However, when I map this value in the select field my scenario is not working do you know what might be the reason ?


Integration Pipedrive CRM, Price Hubble | Make - 3 June 2022 - Watch Video

Thanks for your help.

Best,

@Guillaume

The first parameter in your switch() is an array. It will never match a simple string or number value.

If your array only contains 1 value, just add a get() function to return that value… switch(get(1.array;1);144;House…


Jim - The Monday Man (YouTube Channel)
Watch Our Latest Video: Creating monday subitems using Make/Integromat The Monday Man Way
Contact me directly here: Contact – The Monday Man

2 Likes

This confusion around the arguments to functions is what makes people confused and makes make.com a code tool not no-code.

Always, always read the function expression and understand what each argument to a function expects. As @JimTheMondayMan rightly pointed out the first argument to most expression expect either a value or an array. Some may take a collection but that’s rare. If you pass the wrong structure or data type in don’t expect it to work.