Skip to main content
16-Pearl
May 14, 2019
Question

User Extensions to an infotable

  • May 14, 2019
  • 1 reply
  • 2298 views

I am trying to add user extensions to an infotable for user provisioning purposes.  The infotable would have the username in one column and some of the user extensions in the other columns.  This infotable will be used to populate a grid.  With Things I know I can do something like:

 

var newEntry = new Object();

newEntry.Description1 = Things[ThingName].Property1; // STRING
newEntry.Description2 = Things[ThingName].Property2; // STRING

newEntry.Description3 = Things[ThingName].Property3; // STRING
myInfotable.AddRow(newEntry);

 

Users are not Things, so I am not sure how to go about this.  How can I do something similar with Users?

 

 

1 reply

Willie16-PearlAuthor
16-Pearl
May 14, 2019

I was able to figure out that I can do something like:

 

var newEntry = new Object();

newEntry.Description1 = Users[UserName].firstName; // STRING
newEntry.Description2 = Users[UserName].lastName; // STRING

newEntry.Description3 = Users[UserName].emailAddress; // STRING
myInfotable.AddRow(newEntry);

 

Is there a DataShape that has these properties for User Extensions?  I was not able to find it.

 

Community Manager
June 27, 2019

Hi @Willie.

 

Are you trying to add properties that don't already exist in the User Extensions for a given User?  Can you provide more information on your use case?

 

Regards.

 

--Sharon

Willie16-PearlAuthor
16-Pearl
June 27, 2019
Hi Sharon, I think I either did not know what user extension properties existed or was trying to get all user extension information into an infotable without having to create a datashape.