cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

principal vs GetCurrentUser() snippet

VladimirRosu
19-Tanzanite

principal vs GetCurrentUser() snippet

Hi guys,

I discovered something strange. On a stream I have two columns, source and User (don't remember why exactly, especially considering that soourceType is always User, but anyway).

The User I pass dynamically from a service and the value of the User is the principal keyword.

The issue is that on some rows the value of source is different than User.

What exactly returns principal?

Is there a difference between this and GetCurrentUser?

Many thanks

Vladi

1 REPLY 1
PaiChung
22-Sapphire I
(To:VladimirRosu)

As far as I know principal and GetCurrentUser return the same information, not sure if they access something different.

Personally I've always preferred GetCurrentUser because it tells me more about what is actually being done.

Announcements


Top Tags