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

Activating multiple selection mode for a button triggering a function #5232

Closed
alex-swiftify opened this issue Dec 30, 2024 · 3 comments
Closed
Assignees
Labels
Area: Outlook Issue related to Outlook add-ins Resolution: by design Issue is by design

Comments

@alex-swiftify
Copy link

I have followed the steps in https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/item-multi-select?tabs=xmlmanifest to activate the multiple selection mode for my add-in.

            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgExplorerCmdGroup">
                  <Label resid="CommandGroup.Label"/>
                  <Control xsi:type="Button" id="SyncButton">
                    <Label resid="SyncButton.Label"/>
                    <Supertip>
                      <Title resid="SyncButton.ShortTooltip"/>
                      <Description resid="SyncButton.LongTooltip"/>
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Sync.16x16"/>
                      <bt:Image size="32" resid="Sync.32x32"/>
                      <bt:Image size="80" resid="Sync.80x80"/>
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>onSyncButtonClicked</FunctionName>
                       <!-- Attempt to enable multi-select mode -->
                      <SupportsMultiSelect>true</SupportsMultiSelect>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>

However, I'm receiving a "please try again later" error when trying to sideload the add-in (in new Outlook for Mac).
Is SupportsMultiSelect mode unsupported for "ExecuteFunction" actions?
In other words, is there any way to have a toolbar button handle multiple selected messages without implementing a task pane?

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Dec 30, 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 Dec 30, 2024
@exextoc exextoc self-assigned this Dec 30, 2024
@whoanuragverma
Copy link

whoanuragverma commented Jan 7, 2025

SupportsMultiSelect is only supported for ShowTaskpane. As multiselect relies on SelectedItemsChanged event, you would have to implement a taskpane. You can read more about it here.

You can also check the scehma reference for xsi:type="ExecuteFunction"

@whoanuragverma whoanuragverma 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 Jan 7, 2025
@alex-swiftify
Copy link
Author

@whoanuragverma Thank you very much for confirming.
That’s quite unfortunate for our needs, but now we know what the limitations are.

@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 Jan 7, 2025
@exextoc exextoc closed this as completed Jan 7, 2025
@whoanuragverma
Copy link

You can raise a new feature request for this, we track Outlook add-in feature requests on our Tech Community Page. Please submit your request there and choose the appropriate label(s). Feature requests on Tech Community are considered when we go through our planning process.

@whoanuragverma whoanuragverma added Resolution: by design Issue is by design and removed Needs: attention 👋 Waiting on Microsoft to provide feedback labels Jan 8, 2025
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 Resolution: by design Issue is by design
Projects
None yet
Development

No branches or pull requests

3 participants