ODATA request to fetch latest UD105 rows

UD is being used as queue: yes.

Iot module sounds interesting. But we do DOD work. Air-gapped assembly in SCIF. So we use ODATA and PWA type web applications. So no iot module for us with this project.

Not sure of your requirements, but Azure IoT does do DOD work. I was impressed that they can secure communications either with TPM in hardware or X.509 certs that are also embedded in hardware. Maybe for a future project.

So we are saying omitting that value as a key, storing it in a normal field, then indexing it is an unacceptable answer? Sorry, late to the party.

Not exactly, I think that is the best approach. The open question is how to do an odata filtered search on a DB field of type long. Should be possible, right?

Query it with a BAQ from REST?

Got the solution from EpicCare:

Use an 'L" after the digits for seind a long.

let reply = await Comm.get(MoveURL, 'UD105s', { $filter:LastModified_c gt ${nowish}L }) // uses long value

So the final answer is:

  • Put the timestamp in a custom field (as a long int)
  • Use SQL Server to index that field
  • Make sure comparisons are done in the filter with a L after the digits.

Thank you all who helped.

Or UL if you want it unsigned.

1 Like