Add-PnPEventReceiver not getting triggered if we setup RER with PowerShell 7
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 259
- Forks
- 161
- Avg merge
- 10h 33m
- Merged PRs (30d)
- 1
Description
Hi Team,
I am executing below command to setup the remote event receiver, It execute successfully but event receiver not getting triggered if I setup this with Powershell 7. If I execute same command with Powershell 5, then it is working fine.
I have tried multiple approaches here but still getting same issue.
<#Making Connection#>
$encpassword = convertto-securestring -String "Password123" -AsPlainText -Force
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist "username@tenant.onmicrosoft.com", $encpassword
Connect-PnPOnline -Url https://tenant.sharepoint.com/sites/TestSite -Credentials $cred
<#Command to setup the remote event receiver#>
Add-PnPEventReceiver -List "Site Pages" -Name "Remove Event Receiver" -Url $ventReceiverUrl -EventReceiverType ItemUpdated -Synchronization Asynchronous
Please suggest, I am doing anything wrong here.
Thanks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the provided Add-PnPEventReceiver command with PowerShell 7 and PowerShell 5 against the SharePoint test site, then compare whether the ItemUpdated receiver is registered and triggered. Start at the Add-PnPEventReceiver entry point and verify the issue is resolved when the same command triggers the receiver under PowerShell 7.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100