Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Fetch Matching StoreID in Office JS Add-In #4907

Open
kvnsairaamreddy opened this issue Sep 19, 2024 · 7 comments
Open

Unable to Fetch Matching StoreID in Office JS Add-In #4907

kvnsairaamreddy opened this issue Sep 19, 2024 · 7 comments
Assignees
Labels
Area: Outlook Issue related to Outlook add-ins Needs: author feedback Waiting for author (creator) of Issue to provide more info Status: no recent activity Issue or PR is stale (no recent activity)

Comments

@kvnsairaamreddy
Copy link

We currently have an existing Outlook desktop COM add-in that we are rewriting using Office JS. In our old add-in, we store the StoreID along with other properties when a meeting or appointment is created in Outlook. This StoreID is critical for our business logic.

However, in our new add-in using Office JS, we are unable to fetch an ID that matches the StoreID from the old add-in. We need to either fetch the same StoreID or find a way to map to it appropriately.

Attempted Approaches

Using EWS to Fetch StoreID:

We have used the GetItem and GetFolder EWS operations to try and fetch the PR_STORE_ENTRYID property.
Despite specifying the PropertyTag for PR_STORE_ENTRYID (0x0FFB), the retrieved ID does not match the one from the old add-in.

Expected Result

We are hoping to retrieve the same StoreID or find an appropriate ID mapping that matches the StoreID used in our old add-in.

Request

Could someone with expertise in EWS, Office JS, or Outlook add-ins provide guidance on how to correctly fetch the StoreID in the new add-in? Any insights or alternative approaches would be greatly appreciated.

Thank you in advance!

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Sep 19, 2024
@exextoc exextoc added Needs: attention 👋 Waiting on Microsoft to provide feedback Area: Outlook Issue related to Outlook add-ins and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Sep 19, 2024
@exextoc exextoc self-assigned this Sep 19, 2024
@Swathy-Mothilal
Copy link

@kvnsairaamreddy Thank you for your question. We're currently looking into it and will keep you posted

@Swathy-Mothilal
Copy link

Hi @kvnsairaamreddy, unfortunately we don't have any equivalent of StoreID in Office JS Add-in. Preferably you store the immutable ID instead of the StoreId.

@Swathy-Mothilal Swathy-Mothilal added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Sep 25, 2024
@kvnsairaamreddy
Copy link
Author

@Swathy-Mothilal thanks for the confirmation, actually in our old implementation, for our use case, I believe we were making use of this StoreID for meetings to identify the original calendar from where the data was contributed so that it can only be updated/deleted from the same calendar, is there any available id which can be used to fulfill this use case

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: author feedback Waiting for author (creator) of Issue to provide more info labels Sep 25, 2024
@Swathy-Mothilal
Copy link

Hi @kvnsairaamreddy For your use case, please verify if the itemId mentioned [Refer - https://learn.microsoft.com/en-us/javascript/api/outlook/office.appointmentread?view=outlook-js-1.11&preserve-view=true#outlook-office-appointmentread-itemid-member] meets your needs. The itemId uniquely identifies the meeting, allowing you to update or delete it from the calendar.

@Swathy-Mothilal Swathy-Mothilal added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Sep 25, 2024
@kvnsairaamreddy
Copy link
Author

Hi @Swathy-Mothilal actually in our existing implementation, we are using combination of StoreId+EntryId as a way to identify the meeting and confirm the source calendar from where the data was initially contributed and we were planning to do the same in our new implementation as well, currently to fetch the EntryId in office js, we are extracting it from the itemId by removing few characters at the start and end.
Can you please confirm if this whole itemId will be different for different users/calendar so that we can use it identify the item while confirming the source as well.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: attention 👋 Waiting on Microsoft to provide feedback and removed Needs: author feedback Waiting for author (creator) of Issue to provide more info labels Sep 25, 2024
@Swathy-Mothilal
Copy link

@kvnsairaamreddy The identifier returned by the itemId property is the same as the Exchange Web Services item identifier. Kindly refer to https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/ews-identifiers-in-exchange#working-with-identifiers and make sure your business use case fits in it.

@Swathy-Mothilal Swathy-Mothilal added Needs: author feedback Waiting for author (creator) of Issue to provide more info and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Sep 27, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Status: no recent activity Issue or PR is stale (no recent activity) label Oct 1, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Outlook Issue related to Outlook add-ins Needs: author feedback Waiting for author (creator) of Issue to provide more info Status: no recent activity Issue or PR is stale (no recent activity)
Projects
None yet
Development

No branches or pull requests

3 participants