尝试获取 Outlook 中已分配任务的 MAPI ID
我目前正在编写一个应用程序,该应用程序从数据库读取任务并在 Outlook 中创建它们。
在数据库中,可以将任务“分配”给特定用户,并且我也将 Outlook 中的任务分配给该用户。
在 Outlook 中创建任务时,会为其分配一个 EntryID,并为具有不同 EntryID 的分配用户创建一个任务
我的问题是,如果数据库中的任务更新,我希望能够更新 Outlook 任务以及更新指定用户的任务。我的问题是我找不到子任务的 MAPI ID 的存储位置。我有父任务的 EntryID。
我假设分配的任务的 MAPI ID 存储在父任务中,或者两者之间存在链接?
任何帮助将不胜感激。
I am currently writing an application that reads tasks from a Database and creates them in Outlook.
In the database the tasks can be "Assigned" to a particular user and I have the task in outlook get assigned also.
When the task is created in Outlook it is assigned an EntryID and a task is created for the assigned user with a different EntryID
My problem is that if the task in the database get's updated I want to be able to update the Outlook Task as well as update the task for the assigned user. My problem is that I cannot find where the MAPI ID of the child task is stored. I have the EntryID of the Parent Task.
I am assuming that the MAPI ID of the assigned task is stored in the parent task or there is a link between the two?
Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的 Outlook 中有两个任务,那么它们有两个不同的 EntryID,并且它们根本没有链接。
如果您使用扩展 MAPI 或 Outlook 对象模型,您可以将用户属性存储在任务项中。它可以保存您想要的任何数据。在这种情况下,您希望在这些特定任务上保存数据库中的某种 ID。这使您可以找到需要更新的任务。
我希望我理解你的问题,这个灵魂会对你有所帮助:D
If you have two tasks in your Outlook then they have two different EntryIDs and they are not linked at all.
If you are using Extended MAPI or Outlook Object Model you can store on your Task Items UserProperties. That can hold any data you want. In this case you would like to save some sort of ID from your Database on these particular Tasks. This allows you to locate tasks that needs to be updated.
I hope I understood your question and this soultion will help you :D