I'm executing a pipeline flow after creating a PR and I need to get Pull Request ID after I click the complete button.
I'm using $(System.PullRequest.PullRequestId) to fetch the value, but it is always an empty value and gives the error output "System.PullRequest.PullRequestId: command not found"
Create a simple classical pipeline like below and it needs to be called in Branch Policies -> Status Check.

Note: With the same variable $(System.PullRequest.PullRequestId) I'm able to get the ID before the completion i.e., when PR is in an active state.
