Open SKHolmes opened 4 years ago
I just bumped into this myself too. I thought about doing my custom backup solution for some data in Table Storage using a simple timed Azure Function in TS, but I will miss the timestamp field. It is not exactly a showstopper for me, but very strange indeed.
Investigative information
Upon retrieving the whole table via my bindings in a function that is triggered on a timer, (see below).
I would expect that the property Timestamp which is a property maintained by the Storage Table server is included in the eventTable binding in the code and be accessible as a property of the array elements of the eventTable, i.e
Instead it is undefined.
In the case of the storage table I am using a very basic set up like so,
And when I run the function locally, it is not deployed yet, I get the following output through context logging,
As this function is only local at the moment I do not have any function id information yet.
Reproduction steps
Expected behavior
Expected that Timestamp is accessible for use in the function code.
Actual behavior
Any attempts to access Timestamp returns undefined.
Known workarounds
None known so far. Although I did try adding a filter to the binding to limit by Timestamp and it throws an error. (Accessing other valid properties within the table were fine.)
Related information
The function was built in typescript with the only dependency being moment.js. The source for the function is copied below for fast reproduction of the issue.
Source
```typescript import { AzureFunction, Context } from '@azure/functions'; import moment from 'moment'; import { triggerStartMessage } from '../resources/constants'; const timerTrigger: AzureFunction = async function ( context: Context, myTimer: any ): Promise