Skip to content

Move some functions, modernize and support POST and GET #1313

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

Merged
merged 41 commits into from
Feb 24, 2025

Conversation

kris6673
Copy link
Contributor

Refactor various mailbox management functions for improved parameter handling, error logging, and message processing. Implement new mailbox conversion functionality and support for POST requests. Ensure consistent casing for parameters across functions.

Frontend PR: KelvinTegelaar/CIPP#3660

…ing and improve message handling

dont throw cause it break stuff if it fails

fix typo
statuscode and remove useless stuff

Refactor Invoke-RemoveAPDevice to unify tenant filter retrieval and improve logging messages
…parameter handling, logging, and error management
…ed parameter handling, error management, and logging

Casing and add displayName param
@kris6673 kris6673 changed the title Move some fucntions, modernize and support POST and GET Move some functions, modernize and support POST and GET Feb 23, 2025
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could probably use exo bulk requests

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I converted it from that. This cmdlet is dumb and annoying and does not tell what type it returns, so the remove function had to figure it out in the backend when trying to remove. That sometimes worked, but a domain like "domain.dk" could both be of the "Sender" or "URL" type, causing the deletion to fail.
Using parralel and adding the property be hand seemed like the most elegant and BRRRRRRRR solution when the bulk request didnt really do what was needed.

@JohnDuprey JohnDuprey merged commit cd3394a into KelvinTegelaar:dev Feb 24, 2025
@kris6673 kris6673 deleted the endpoints branch February 24, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants