Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Having issues with DevOps OrganizationId moving from extension VSS to SDK. VSS.getWebContext().account.id is not the same as SDK.getHost().id #167

Open
boznet opened this issue Dec 16, 2022 · 0 comments

Comments

@boznet
Copy link

boznet commented Dec 16, 2022

I have an extension the uses Organization ID from the VSS Web Extension SDK, VSS.getWebContext()

Your documentation states:-

VSS.getWebContext() is a client-side API provided by the VSS SDK that provides information about the current organization, project, and team the user is operating in:

https://learn.microsoft.com/en-us/azure/devops/extend/develop/web-navigation?view=azure-devops#team-context

I am now migrating to the newer Azure DevOps Web Extension SDK and using and using SDK.getHost().id

Your documentation states:-
Information about the current DevOps host (organization)
https://learn.microsoft.com/en-us/javascript/api/azure-devops-extension-sdk/ihostcontext

My problem is these 2 ids are different.

How do I get the same organization ID in both VSS and SDK ?

Thanks

copied from
https://developercommunity.visualstudio.com/t/Having-issues-with-DevOps-OrganizationId/10232098

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant