Article - CS342069

When updating a DataTable entry the source field is not updated in ThingWorx

Modified: 07-Apr-2021   


Applies To

  • ThingWorx Platform 9.1

Description

  • When updating a DataTable entry the source field is not updated
  • When running the UpdateDataTableEntry service the "source" field is not updated to the current user
  • Following code does not update "source" field as expected:
var currentUser = Resources["CurrentSessionInfo"].GetCurrentUser();

Things["DTName"].UpdateDataTableEntry({
     sourceType: undefined /* STRING */ ,
     values: IT /* INFOTABLE */ ,
     location: undefined /* LOCATION */ ,
     source: currentUser /* STRING */ ,
     tags: undefined /* TAGS */
});

 
This is a printer-friendly version of Article 342069 and may be out of date. For the latest version click CS342069