Error when chaining functions

Error when chaining functions

Hello ZC Support,

Take a look at the following variable declaration....

created_time = row_map.get("Created Time").toDate(); 

The error I receive when I try to save this is......

Encountered "." at line 16, column 51.

I understand why I'm getting the error BUT there isn't really a great solution..

1. If I do this.....

created_time = (row_map.get("Created Time")).toDate();

I can save my script. BUT, almost always the two parentheses before the declaration and after the first function WILL BE REMOVED! (upon re-saving the script)

So... either fix the first problem and let us chain our functions easier OR stop removing our parentheses!

I really get tired of having to do a re-statement of the variable over and over....

create_time_str = row_map.get("Created Time");

created_time_date = created_time_str.toDate();

Put this in a loop of 500 iterations and I think that's 10% of my statement limit right? Or is each function chained a statement?