Hi everyone. I need to create a webhook, but I'm having trouble accessing AccesInfo.BranchID. I tried using PXContext.GetBranchID(), but it doesn't work. Does anyone know the best way to implement this?
Solved
Implementing webhook in 24R2
Best answer by harutyungevorgyan
Hello
You are not the only one, and it seems something changed or doesn't work as expected with webhooks in 24R2, especially with the AP module. We are having trouble now as well with this, and we opened a case because simple solutions with PXLoginScope don't work. For now, you can try PXLogin.SetBranchID(setTheHardcodeBranchID) to set branchID in your loginscope but I believe it will just change the problem and give you another error.
I will let you know if we find a solution.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.