Skip to main content
September 5, 2022
Question

User type variable passed into a process through WebApi but in the process, variable value is not getting updated

  • September 5, 2022
  • 3 replies
  • 0 views

Hi

I am calling a process using a!startProcess through web API and passing a user type variable into it. However, the variable in the process is not getting updated with the new value and shows null.

Please suggest the solution

3 replies

stewart.burchell
September 5, 2022

Some things to check:

  1. the process parameter in your WebAPI is spelled correctly
  2. the process variable in your process model is in fact marked as a parameter
September 5, 2022

Hi Stewart,

Variable spelling correct and it is parameterized as well.

stewart.burchell
September 5, 2022

Is the pv! variable being cleared out / set to null by something else in the process model? (also are you passing any  other variables and are they working successfully?)

Another thing to check - have you published the latest changes to your process model? If you made your pv! a parameter and only saved the process model this will not be reflected in the call from your Web API until you publish the process model.