Remote Tables
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 05:26 AM
I Can't able to insert data to a remote table through a server script.
var networkDataUsage = new GlideRecord('x_prna_network_dat_st_network_data_usage');
networkDataUsage.initialize();
networkDataUsage.account_number = accountNumber1;
networkDataUsage.date = date; // Date in GlideDateTime format
networkDataUsage.data_used = totalGB;
networkDataUsage.plan = dataBucket;
networkDataUsage.duration = duration;
try {
var inserted = networkDataUsage.insert();
if (inserted) {
gs.info("Data successfully inserted for account: " + accountNumber1);
} else {
gs.error("Failed to insert data for account: " + accountNumber1 + " - " + networkDataUsage.getLastErrorMessage());
}
} catch (e) {
gs.error("Error during record insertion: " + e.message);
}
Is there anything I am missing like roles? I am not getting the New button in the list view of table also.
Is there anything I am missing like roles? I am not getting the New button in the list view of table also.
1 REPLY 1

Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 05:32 AM
Verify Table Permissions
Check Access Control Rules (ACLs)
Check UI Policy and Actions
Validate the Script
Role and User Context