You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Get current user id

Summary: Get current user id to set Suggested Buyer on Non catalog Page


Content (please ensure you mask any confidential information):

I want to set the default value of the "Suggested Buyer" field to the current user when a non-catalog request is created.

I tried setting the default value using Visual Builder Studio's "Express" mode with the expression $user.userId, but it defaults to 0 instead of the logged-in user's ID.

Now I'm trying to use a "VB Enter" event to call an Action Chain that retrieves the user ID. I'm using cxcode.utils.userInfo to get the user ID, but it fails with the error:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!