+ Add Question

How the outlook id is generated

O

Could you please tell me how the outlook id is generated?

[[outlook=id3=?????????, Subject ]]

I wrote my own Outlook Plugin with CSharp and would like to create Todoist Taks via the API.
I couldn't figure out how this id is generated.
I tried with EntryID and other Unique Ids I could find.

Thanks a lot for your help.

All responses

David Trey staff
Replied on Mar 10, 2014 - 18:57 UTC

Hello,

Yes, that's exactly the format we use, here's an example task content with an Outlook email:

[[outlook=id3=aWQ9MDAwMDAwMDBDRUU0REE1QzVGNUM1NDRDOTUyMjVGMjhCREQyODY3NjA3MDBDM0I2OEUxMEY3NzUxMUNFQjRDRDAwQUEwMEJCQjZFNjAwMDAwMDAwMDAwQzAwMDBEOTUzOUMyMjYxQTZCQjQ1QjlEQUI2MkM3MDgxQjNDMTAxMDA0MDA2MDAwMDAwMDA7bWlkPTw5N2EwNGMxMDk2OTQ1Y2EwNDZiNTg4YjNlMWU4M2MwOUBzd2lmdC5nZW5lcmF0ZWQ-, Test mail ]]

Though we use different mechanisms to find the linked email - first it looks within the local folder by default, then expands the search to all folders/accounts if it can't find the message in its original location.


Best regards,
David

O
Oberholzer premium
Replied on Mar 10, 2014 - 19:41 UTC

Hi David,
Could you please share the details how the the id after the "[[outlook=id3=" is generated?
I would like to generate this id out of my own outlook plugin code and create the todoist task with the api.
By doing this I would be able to open the Email out of the todoist plugin.

Thanks a lot.

David Trey staff
Replied on Mar 10, 2014 - 20:13 UTC

You can always open the email from the Todoist plugin as clicking on this ID will open the related message.

I have passed your question to the developers and I will notify you when they reply.


Best regards,
David

David Trey staff
Replied on Mar 10, 2014 - 23:01 UTC

According to the developers, we're using a combination of MailItem.EntryID and RFC's Message-Id (PR_INTERNET_MESSAGE_ID).


Best regards,
David

David Trey staff
Replied on Mar 10, 2014 - 23:18 UTC

Furthermore, there is safe url base64 encoded "id={0};mid={1}", where {0} is EntryID, and {1} is PR_INTERNET_MESSAGE_ID.


Best regards,
David

O
Oberholzer premium
Replied on Mar 11, 2014 - 07:44 UTC

Hi David
Thanks a lot for the quick answer.
This was exactly that I was looking for.
Have a great day.

Best regards,
Hans