Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Remote Tables

RohitN244878896
Tera Contributor

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.
1 REPLY 1

Not applicable

Verify Table Permissions

Check Access Control Rules (ACLs)

Check UI Policy and Actions

Validate the Script

Role and User Context