How to use Regex Expression to find out the match of a particular string

Example Consider this as “messageString” Call answered at: Thu Jun 29 2023 21:37:26 GMT+0000 (GMT)Call ended at: Thu Jun 29 2023 21:37:44 GMT+0000 (GMT)Duration of the call: 00:00:18PBX: rspsupplyUsername: RSPSupply.Brandon.MizarCall Id: 1683756226953Direction: OutboundCallCaller Name: Hoffman FactoryCaller Record Id: 1326736Caller Phone: +17634222211 From this message, how to display the value of “Duration of the call”

Generate Access Token for Clear Tax GST API

Solution> Generate a client secret key from the clear tax account. Go to Settings>Integrations>API client>Create API client Select GST as products> Select Expiration as never expires>click on create A client secret will be generated Then generate access token using the below URL. Send GET request to the url: {{BASE_URL}}/integration/v1/authz/token If it is a SB clear… Continue reading Generate Access Token for Clear Tax GST API

How to filter the search results using filter function

Create a search to fetch the customers who gave Feedback Response First get the search using search.create. Here we removed the customers who gave more than one response from the search results. // Get the search results                const searchResults = customrecord_sf_responseSearchObj.run().getRange({ start: 0, end: 1000 });   //… Continue reading How to filter the search results using filter function

How to set any record fields through console using Suitescript

We can set any record fields using the internal id of the record, the internal id of the field, and the record.submitFields() from the ‘N/record’ module. Please refer to the following: require([‘N/record’], function(record) {        record.submitFields({                              type: <REC_TYPE>,   … Continue reading How to set any record fields through console using Suitescript

Fetch the custom list values to the script

To retrieve the custom list in the script, we can utilize a saved search to fetch the list values and store them in an array. This method is used to get the list values dynamically into the scripts. Here is an example to fetch the custom list ‘Changing Reasons’ whose id is: customlist_price_level_changing_reason. Each value… Continue reading Fetch the custom list values to the script