Help with fields Memento ID & Picture.http

Skip to first unread message


Dec 12, 2018, 12:20:11 AM12/12/18
to mementodatabase
Hi All, I have a few fields that I need help with.

My Library:
  • Picture (image field)
  • Item Name (text field)
  • Model Nr (text field)
When I export to google drive it creates a spreadsheet and I get 5 fields:
  • Picture (something like file:///storage/emulated/0/memento/files/...jpg)
  • Item Name
  • Model Nr
  • Picture.http (something like,,,,,,)
  • MEMENTO_ID (something like 1544552412839)
Picture.http seems to be a link of the image, but instead of the location on the phone, once it is uploaded to google drive, it is a url of that location.
MEMENTO_ID seems to be a unique id that memento uses, and it seems to be auto incrementing because if I quickly enter data, it is in sequence. But if I wait a while, there is a gap of missing numbers in the sequence. 

I want to use these two fields in my custom scripts that I am creating for my library. Is there any way of retrieving this data? I messed with lib().entries() and entry().field('whatever') without any luck.

Bill Crews

Dec 12, 2018, 9:39:46 AM12/12/18
to Aaron, mementodatabase
The ID is readily available as a property of the Entry object, so entry().id should get you what you want.

As for the URL, you might try an HTTP request. Check out I think an Http object has a get() method that returns an HttpResult object that might contain what you want.


Dec 12, 2018, 2:01:30 PM12/12/18
to mementodatabase
entry().id is something else, not the same "MEMENTO_ID".

Url: How can I know what the URL of the document is in order to use get()? 
Reply all
Reply to author
0 new messages