Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Current User

MarcioJunior
Contributor III

Hello,

How do I replicate the current user in the registry of an application?

Att

7 REPLIES 7

Ilya_Khen
Champion III

If you just need to get userId or names, you can simply use global variables in Custom Object.

 

ArcherApp.globals.userId = 121212;     
ArcherApp.globals.displayName = "Khen, Ilya";
ArcherApp.globals.firstName = "Ilya";
ArcherApp.globals.lastName = "Khen";

Sensational. Thank you very much, I would like to take another question. Can I capture information from the Company or Tittle field?

Welcome  

To get ore information of the user, you would need to use REST or WEB API, I believe.

Hi Ilya Khen, What are gloabal variables? Are these something Defined in Archer that we can use in Custom Objects?

They are defined in the Archer UI during the load. They are client based. You can see them from Developers Tools. And yes, as they are on client side, you can use them all in the Custom Object.

Thanks A lot!

Welcome