Hello All,
I have created a web API that initiated the process and generates a task for the use. This web API is called by third party application, Wherein they pass "username" as a parameter on the basis of which the process model executes.
Now inside the process model I'm using the username variable for the task assignment. For calling the Web API, I have created an unique user account which they use for authentication. As a result of which when the API is called, Its showing that account information as a process initiator(Which is fine) but the task is not getting assigned to the user whose value exists in "UserName" variable. However, If the same process model is initiated from Appian then it got assigned to correct user whose value exists in that variable
Discussion posts and replies are publicly visible
Hi viveka0001
Are you facing the same issue when you are trying to test the WEbAPI from Appian or is it when you are calling it from external system?
Also, can you make sure the type of the userVariable is user or group. I tried to create a similar scenario and it worked for me.
Hello Ankita,
Thanks for the reply, Yes the issue is not happening while i execute the API from Appian. Please refer the attached screenshot for more insight in my other reply. The username variable is of type user
It may happen that there are some case sensitive value or spaces in the user name you are providing. Do the validation doesuserexist() and then assign the variable in the task