'Microsoft Power-Automate/Flow:- que new build - input parameters not working as expected

I am working on a scenario where I would need to Queue a new Build in Azure DevOps, and this build is required to pass few parameters which are mandatory. I was able to set up Power-Automate/Flow using Azure DevOps connector choosing the correct build, and parameters as well.

But for some reason, it always takes the default(1111) of the parameter BuildId, not the value (12345) I pass from power-automate. Any thoughts, am I missing anything?

Here is how my YAML looks like:

parameters: 
- name: BuildId
  displayName: 'Build Id?'
  type: number
  default: 1111

- name: ReleaseId
  displayName: 'Release Id?'
  type: number
  default: 2222

Here is how I am passing the parameter from power-automate

{ 
   "BuildId":"12345" 
}

Screenshot from Power-Automate



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source