Map Reduce script to set Access Token in Custom record from FedEX/UPS

A map reduces script that sets access token value from FedEx and UPS to a custom record in NetSuite. (https, record, search, log, encode) => { /** * @description Get the configuration details of the FedEx and UPS from the custom record. * @returns {Object} configObj */ const getConfigDetails = (recordId) => { try {… Continue reading Map Reduce script to set Access Token in Custom record from FedEX/UPS

Suite script sample to get Access Token from Amazon Seller Central

The below code can be used to retrieve the Access Token from Amazon Seller Central. The token will be returned in the response body of the request. The refreshToken, clientId and clientSecret can be retrieved from the developer app created in the Amazon Developer Central. function getAccessToken(){ let refreshToken=”xxxxxxxxxxxx”; let clientId=”xxxxxxxxxx”; let clientSecret=”xxxxxxxxxxxx”; let amazonApiUrl… Continue reading Suite script sample to get Access Token from Amazon Seller Central

Resolve “This user has exceeded the number of active access tokens for this role” while trying to fetch the code

Scenario: While we try to fetch the code in terminal using access token, sometimes it throws error as follow: “This user has exceeded the number of active access tokens for this role“ Solution: If you run into this Access Token Limit error, it might be necessary to revoke a token in Netsuite. To revoke an… Continue reading Resolve “This user has exceeded the number of active access tokens for this role” while trying to fetch the code