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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

principal vs GetCurrentUser() snippet

VladimirRosu
18-Opal

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.

Top Tags