Nylas does not store updated date of a draft

Querying drafts with Draft API only returns the a date prop, which is the created date of that draft. When updating that draft(for example: body, subject etc…), the draft returned with nylas.drafts.update(Python SDK) always has date prop as the created date, whereas querying that draft directly in the provider(for example Outlook), that draft will appeared first in the draft folder with the updated date, as it’s been modified with nylas.drafts.update.

Directly update the date prop with nylas.drafts.update won’t work either.

Would you like to consider adding the differentiation between created_date & updated_date for Draft API?

@92.alphas_cranes thanks for posting, I see what you are saying. So date is when the draft is first created (Python SDK reference).

Will share this feedback with the team.

1 Like

Any updates on this?

I checked it today and still no fix provided from your side regarding this. I urge you to address this matter ASAP

Hello @92.alphas_cranes,
Thank you for your collaboration in this matter!

I have resurfaced this matter to Engineering, from the situation informed by @ram.

I’m afraid to inform you that, currently this is not a feature available.

Unlike for message, drafts don’t have a message_updated field that stores the newest update time in the Email Provider side, which is crucial for this implementation, and the reason why this is not already available.

For this kind of situation, I encourage users and developers to raise the desire for this feature in Nylas here:

This will make it evident to our Product team the best next steps in the implementation of our service to have happier users.

If this is a crucial requirement, there’s an alternative to cache the information of PUT requests happening for a certain DRAFT, so the most recent and successful PUT request will serve as a draft_updated field, by subtracting the date it took place.

I hope this last option proves useful for you.

Kind regards,
—Carlos Higuerey
Support Engineer, Nylas