OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
654 stars 93 forks source link

getSelectedItemsAsync is not working properly in web browser #4481

Open hmaheshwariAsite opened 1 month ago

hmaheshwariAsite commented 1 month ago

Steps To Reproduce :

Select Multiple Items in uninterrupted order in outlook web version and try to open add in Some times the getItemsSelectedAsync will give result as failed.

But in Desktop Version the function is working fine even if we select multiple items in uninterrupted order or consecutive order

can you please look into this issue ?

Also is there any function so that we can get full email details and its attachments when we select multiple items similar to Office.context.mailbox.item ?

Screenshot 2024-05-21 113900

rajjha-msft commented 1 month ago

Hey @hmaheshwariAsite

It's not a repro at our end. Can you share a video of the repro ?

hmaheshwariAsite commented 1 month ago

Please have a look @rajjha-msft

https://github.com/OfficeDev/office-js/assets/170398481/b94d4130-cb12-498f-9bf1-c7dab5c1598e https://github.com/OfficeDev/office-js/assets/170398481/dcfa0097-de7e-4ae5-a7df-0d2b0473ec37

rajjha-msft commented 1 month ago

Hey @hmaheshwariAsite

Please help us understand the issue better

bot608 commented 1 month ago

Hello @rajjha-msft Yes this is an Intermittent Issue when we change selected emails sometimes it works correctly , sometimes it is failed. This was happening earlier also Yes it happens with Multi select add in (at least in our add in it is happening) For Single email it works correctly as we use Office.context.mailbox.item but when we use getSelectedItemsAsync it works correctly in desktop version but in web browser it gets failed sometimes.

hmaheshwariAsite commented 1 month ago

Hello @rajjha-msft This is my id @bot608

Just letting you know

anjalitp commented 1 month ago

@hmaheshwariAsite We are able to repro this issue. Thanks for reporting this issue regarding getSelectedItemsAsync API on OWA. This has been added to our backlog. Unfortunately, we do not have a timeline to share at this point.

Internal Tracking ID: 4604809

hmaheshwariAsite commented 2 weeks ago

@anjalitp Any updates on this Issue ?