powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[FEATURE] When using Add-PnPAlert to add a Weekly alert, how should a DateTime value be?

Open ghost opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I am looking to use Add-PnPAlert to apply a weekly alert for many users. I am not sure how Get-Date function should be set up for weekly alerts. For Daily alert, you can just provide 3 values (Hour, Minutes, and Seconds) to set it up as shown in below code. But this is not an option for Weekly because there is no way to work with a day (Monday, Tuesday, etc.)...

Add-PnPAlert -Title "Daily summary" -List "Test List" -Frequency Daily -ChangeType AddObject -DeliveryMethod "Email" -Time (Get-Date -Hour 15 -Minute 00 -Second 00) -User "i:0#.f|membership|[email protected]"

Describe the solution you'd like A clear and concise description of what you want to happen. I'd like a way to select a day for weekly unless it's already possible.

Describe alternatives you've considered Is there currently a way of solving your problem with existing cmdlets? Optionally through the use of other PowerShell Modules (for instance by using the Microsoft Graph cmdlets or the Microsoft SPO Management Shell) I am not sure at this point but any existing would be great.

Additional context Add any other context or screenshots about the feature request here. I love you guys and all of your work.

ghost avatar May 20 '21 21:05 ghost