After the update, user id is not getting saved in TokenRequest Entity due to which, I am not able to use the GetUserInfoByUserId function. It is throwing error. On debugging i found that User Id is not getting saved in the entity. Please provide me the solution for it.
Hi Mohd Wasim Shaikh,
Are you sure that you are providing a valid user when you are saving the data?
You can use the logmessage system action to log before the save the values.
Bear in mind that if you are using GetUserId inside a process or timer it won't work, userid must be provided explicitly.
Hope that it helps you
Hi Alexandre,
Whenever we login using Microsoft Login Connector Management (It is a forge component which is used to login via AD), a token is automatically created in the TokenRequest Entity. I haven't made any changes to the forge component that is Microsoft Login Connector Core. I am just using the token from that entity to authorize an Microsoft API call.
The GetUserInfoByUserId (in the Microsoft Login Connector Core component) uses an aggregate TokenRequest which has filter "TokenRequest.UserId = UserId". But the issue is user id is not getting saved in the Token Request Entity. It was getting saved before the component update.
I hope you understood what I meant to say.