I am new to Deluge and am running into an issue with a For Each of a Map variable. It is probably a simple fix, but I am perplexed that I receive two different results depending on whether the code is run in Zoho Creator or the
Tryout section of deluge.zoho.com. The code is:
items = map();
items = {"item1":"{\"issue\":\"Short\",\"itemNumber\":\"1234\",\"itemName\":\"MW ST\",\"itemColor\":\"Black\",\"itemSize\":\"M\",\"itemQuantity\":\"1\"}","item2":"{\"issue\":\"Long\",\"itemNumber\":\"1235\",\"itemName\":\"MW SS\",\"itemColor\":\"Blue\",\"itemSize\":\"L\",\"itemQuantity\":\"1\"}"};
for each item in items
{
info item;
info item.get("itemNumber");
}
If I run the code in Tryout, I am able to retrieve the itemNumber for each record. If I run the code in Zoho Creator, the result is Null. Can anyone shed light on why Zoho Creator is unable to pull the itemNumber from the Map?