Skip to content

Upgrade dynamics-web-api package (#2378)#2383

Open
lailien3 wants to merge 4 commits intodevelopfrom
feature/dynamics-upgrade
Open

Upgrade dynamics-web-api package (#2378)#2383
lailien3 wants to merge 4 commits intodevelopfrom
feature/dynamics-upgrade

Conversation

@lailien3
Copy link
Copy Markdown
Contributor

@lailien3 lailien3 commented Apr 24, 2026

We rely on the dynamics-web-api and it’s recently moved to v2. v1 was made obsolete in 2024.

This is a feature branch which all the upgrade steps will be merged into

Steps w/ tickets & prs:

• upgrade dynamics-web-api package IWTF-5049

• update dynamics client config + token refresh IWTF-5050

• update request shape for saving records IWTF-5051

• update code to use new method names IWTF-5052
• update mock helper to mock the new method names IWTF-5053

Rod-licencing-env-var changes:

@lailien3 lailien3 self-assigned this Apr 24, 2026
@lailien3 lailien3 added the enhancement New feature or request label Apr 24, 2026
* Upgrade dynamics-web-api package

https://eaflood.atlassian.net/browse/IWTF-5049

* update lock files

* Update dynamics client config + token refresh

https://eaflood.atlassian.net/browse/IWTF-5050

Currently, our config uses a callback in onTokenRefresh. In v2, callbacks will be removed, so we need to return the token instead.
Config fields like webApuUrl and webApiVersion need updating to the v2 format

* Update save request format

https://eaflood.atlassian.net/browse/IWTF-5051

Update our request builders for saving records to match v2 request shape. In v2, the payload field changes from entity to data.
* Upgrade dynamics-web-api package

https://eaflood.atlassian.net/browse/IWTF-5049

* update lock files

* Update dynamics client config + token refresh

https://eaflood.atlassian.net/browse/IWTF-5050

Currently, our config uses a callback in onTokenRefresh. In v2, callbacks will be removed, so we need to return the token instead.
Config fields like webApuUrl and webApiVersion need updating to the v2 format

* change env to use root domain
* Upgrade dynamics-web-api package

https://eaflood.atlassian.net/browse/IWTF-5049

* update lock files

* Update dynamics client config + token refresh

https://eaflood.atlassian.net/browse/IWTF-5050

Currently, our config uses a callback in onTokenRefresh. In v2, callbacks will be removed, so we need to return the token instead.
Config fields like webApuUrl and webApiVersion need updating to the v2 format

* Update save request format

https://eaflood.atlassian.net/browse/IWTF-5051

Update our request builders for saving records to match v2 request shape. In v2, the payload field changes from entity to data.

* Update method call names

https://eaflood.atlassian.net/browse/IWTF-5052
https://eaflood.atlassian.net/browse/IWTF-5053

* prettier

* remove fallback to allow error throwing

* remove multiple assignments

* forgot to change test naming
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant