You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that the itemType for date-time is DATETIME and not DATE_TIME so snakeCaseToCamelCase() returns asDatetimeItem() instead of asDateTimeItem() (with a capital T)
// Downcast items to access type-specific propertiesvartypeString=item.getType().toString();if(typeString==='DATETIME')typeString='DATE_TIME'// handle the corner case of DATETIME varitemTypeConstructorName=snakeCaseToCamelCase("AS_"+typeString+"_ITEM");vartypedItem=item[itemTypeConstructorName]();
Why is running the appscript giving this error?
The text was updated successfully, but these errors were encountered: