cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to retrieve the login user's position information in the Business Rule

hopefbest1
Explorer
1,565

Dear experts.

Requirement:

When creating the "position" data in the "manage data" screen of employee central. regarding to some fileds value, it is necessary to check whether input value is equal to corresponding field value of login user's info. so we implement this function via adding one business rule to check it when save this position.

Issue:

Now , in the business rule , we use "context.Current User.Job Information.*" to get the login user's information, but unable to retrieve the value as below execution log:

"2021-01-07 22:22:49:754","xxxx","[Retrieve]","Retrieved 'context.userId'. Value: 'null'. Duration: 14 microseconds."

"2021-01-07 22:22:49:754","xxxx","[Retrieve]","The expression 'context.userId.jobInfo.position.company' could not be evaluated completely as the property 'userId' of 'context' is found to be NULL at 'context.userId'. Evaluation result is NULL."

Confirmation:

in order to get the login user's information, Is there any problme in the above implement method? how to get the login user info, Could you help to teach me the method? thank you very much.

best Regards.

Hopefbest

Accepted Solutions (0)

Answers (0)