自定义事件 ID
Custom Event ID
在 outlook 日历中创建事件时,您会得到一个生成的事件 ID,并使用它可以更新您所创建的任何事件,如 here by storing the eventId in some table and use it when updating an event, my question is: Is it possible to set that event Id on your own like in googles calendar here 所述,这样我就不需要跟踪事件 ID因为每次您 create/update 并在我的数据库中创建另一列时它都会改变?
event
的 id
是基于其元数据计算的哈希值。移动项目(日期、文件夹、日历等)时,id
将 更改。
对于跟踪,您应该使用 event
中的 iCalUId
属性。这是一个有保证的唯一值,永远不会改变。虽然您无法定义自己的值,但此 GUID 绝对可以安全存储,并且可用于使用 $filter=iCalUId eq '{GUID}'
查询参数从 Microsoft Graph 中调用 event
。
此外,与 id
不同的是, 值 也可供与会者使用(并且是静态的)(i.t。如果与会者使用 GMail, Google 将保持相同的 iCalUId
值。
在 outlook 日历中创建事件时,您会得到一个生成的事件 ID,并使用它可以更新您所创建的任何事件,如 here by storing the eventId in some table and use it when updating an event, my question is: Is it possible to set that event Id on your own like in googles calendar here 所述,这样我就不需要跟踪事件 ID因为每次您 create/update 并在我的数据库中创建另一列时它都会改变?
event
的 id
是基于其元数据计算的哈希值。移动项目(日期、文件夹、日历等)时,id
将 更改。
对于跟踪,您应该使用 event
中的 iCalUId
属性。这是一个有保证的唯一值,永远不会改变。虽然您无法定义自己的值,但此 GUID 绝对可以安全存储,并且可用于使用 $filter=iCalUId eq '{GUID}'
查询参数从 Microsoft Graph 中调用 event
。
此外,与 id
不同的是, 值 也可供与会者使用(并且是静态的)(i.t。如果与会者使用 GMail, Google 将保持相同的 iCalUId
值。