Alphanu
(Ben)
October 30, 2018, 10:42am
1
Hi,
I am trying to get the current user ID in a BPM. In my test environment “callContextClient.CurrentUserId” returns the userID. However, in my Live environment this is just blank.
Is there another way of getting the current user Id in a BPM?
We are using Epicor 10.2
Thanks in advance
Ben
Zoher_Ali
(Zoher Ali)
October 30, 2018, 11:10am
2
Hi @Alphanu
callContextClient.CurrentUserId
will surely return the Current UserID.
Can you please elaborate how you are triggering the BPM?
Regards,
Zoher Ali
Alphanu
(Ben)
October 30, 2018, 11:13am
3
It is being triggered on update. Every time there is a change it will till; a table field with the user ID.
As I mentioned, it is working fine in my test environment but not Live. It has confused me some what
Zoher_Ali
(Zoher Ali)
October 30, 2018, 11:26am
4
Have you tried giving Message Box in BPM for User ID? Is it showing there.
There should be some refresh issue on form. (I guess )
Hogardy
(Pierre Hogue)
October 30, 2018, 1:49pm
5
Is this a copied BPM from test to live? or you redid from scratch in live…?
If a copy, try to do a recycle IIS app pool.
As well as Zoher_Ali mentionned, use a message box may help at least to find out it it passes through…
Pierre
Alphanu
(Ben)
October 30, 2018, 2:00pm
6
Currently I have to redo BPMs when I move them to live. Solution workbench does not always pick up BPMs.
I have set up a message box. I’m just waiting on someone to do the next process to find out if the value is being passed on or not.
Kimberley
(K White)
October 30, 2018, 2:29pm
7
Your solution workbench should work for BPMs. I am using it to move my BPMs. I do usually have to go in and validate them but otherwise they come over. Have you tried just exporting the BPM and Importing it into the other DB?
Alphanu
(Ben)
October 30, 2018, 4:53pm
8
Thanks for you input guys. The message boxed did show the user ID.
It turns out I missed something out in the custom code.