I have a mini-automation for Monday that requires to take a Text column with a country Name, and copy it to a Country Column (The type of the column is “Country”)
Generally speaking I would use the following operations:
List Board Items (Only the Text column with the country name is needed)
Iterate the results
Set Variables
Item ID
Country Name
Monday Update Column Values using the Item ID and the Country Name
The twist comes when I need to populate the “Country” Column because it requires a “Country Code” apart from the name:
I found online the list of country codes: http://country.io/names.json and I can use the HTTP module to get the content, although I need the to use the “key” and not the “value” in this case…
I need some help in figuring out the logic of what to do next, I have a reached a mental dead-end
You could remove module [12] and put that directly in module [7] “Country Code”, but you need to wrap it with first( ) so that you get the value, and not an array.
Recapping to make sure I understand:
Map() takes the Array obtained in Module 11 and provides the “key”, when the “value” equals to the “Country Name” obtained by the variable:
If every bundle will include only 1 country name, why do I need the “First()” function?