Assigning Extra User Extension Properties
Hi all
I am attempting to assign properties to the User Extensions, I can get the default extensions to be assigned in a script fine. However, when adding extra User Extensions to the UserExtensions ThingShape I cannot assign these in a script.
The following code is what I am using to attempt to do this. The script executes but only the default User Extensions are assigned when I execute the service.
var params = {
infoTableName : "InfoTable",
dataShapeName : "Atlas.user.DataShape"
};
// CreateInfoTableFromDataShape(infoTableName:STRING("InfoTable"), dataShapeName:STRING):INFOTABLE(Atlas.user.DataShape)
var userInfoTable = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params);
var values = new Object();
values.company = company;
values.emailAddress = Email;
values.firstName = firstName;
values.lastName = secondName;
values.language = Language;
values.mobilePhone = Mobile;
values.continent = continent;
values.country = country;
values.jobTitle = jobTitle;
values.timeZone = timeZone;
values.serialNumberOfCompressor = serialNumberOfCompressor;
values.site = site;
values.UnitsOfMeasurement = UnitsOfMeasurement;
values.regionalCentre = regionalCentre;
userInfoTable.AddRow(values);
var params = {
values: userInfoTable // INFOTABLE
};
// no return
Users[userName].SetPropertyValues(params);
Any feedback would be greatly appreciated.
Many thanks
Ash

