NetSuite RESTLet Add Retrieve Data Restlet Postman | NetSuite RESTLet | NetSuite RESTLet Postman

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ม.ค. 2025

ความคิดเห็น • 21

  • @anshul_09
    @anshul_09 ปีที่แล้ว

    Thanks for the information.

  • @GreatBuyProducts
    @GreatBuyProducts 3 หลายเดือนก่อน +1

    how I can by pass first step authorization manually using UI login. or how I can increase expiry time of token?

    • @bispsolutions
      @bispsolutions  3 หลายเดือนก่อน

      Thanks for watching! and Thank you for your comment. we'll f/w your query to our technical team

  • @kunalkarwar
    @kunalkarwar 2 ปีที่แล้ว +3

    Hi Amit, can you please share your restlet code?

    • @anismughal8199
      @anismughal8199 ปีที่แล้ว

      try this if it works:
      /**
      * @NApiVersion 2.0
      * @NScriptType Restlet
      */
      define(['N/record', 'N/error'], function (record, error) {
      function createCustomRecord(context){
      log.debug('context', context);
      var requestBody = context;
      // Define your custom record type internal ID
      var customRecordType = 'customrecord_your_custorec_id';
      // Create a new record
      var customRecord = record.create({
      type: customRecordType,
      isDynamic: true
      });
      // Set field values from the request body
      for(var field in requestBody){
      if(requestBody.hasOwnProperty(field)){
      customRecord.setValue({ fieldId: field, value: requestBody[field] });
      }
      }
      try{
      // Save the record
      var recordId = customRecord.save();
      return { success: true, recordId: recordId };
      }catch(e){
      // Handle errors
      log.error('Error creating custom record', e);
      throw error.create({ name: 'CREATION_ERROR', message: 'Error creating custom record' });
      }
      }
      return{
      post: createCustomRecord
      };
      });

  • @tituchauhan6027
    @tituchauhan6027 2 ปีที่แล้ว

    Hi Amit ji, I have a restlet code and I want to pass first name and last name in this. Could you please help me?

  • @anmolpanwar5553
    @anmolpanwar5553 2 ปีที่แล้ว

    its only works one or two days after that logs showing invalid login attempt

  • @arielmarti7597
    @arielmarti7597 2 ปีที่แล้ว

    Hey mate, for the love of Maradona. Could you share that script? - I'm very lost with this stuff

  • @umairshehzad6200
    @umairshehzad6200 3 ปีที่แล้ว

    Hi can you please share your code for this restlet ?

    • @bispsolutions
      @bispsolutions  3 ปีที่แล้ว

      Sure, please it will be sent to you, please share your email.

    • @lundam1234
      @lundam1234 2 ปีที่แล้ว

      @@bispsolutions Can you share the restlet data with me, as well?

    • @jarldelancey
      @jarldelancey 2 ปีที่แล้ว

      Thanks for the tutorial sir very helpful. Are you using SuiteScript 1.0?

    • @kunalkarwar
      @kunalkarwar 2 ปีที่แล้ว

      Did you get the code? Can you please share it with me?

    • @patricksuchy5585
      @patricksuchy5585 2 ปีที่แล้ว

      Can you also share it with me? Maybe make a video about it, seems a lot of people are interested.

  • @manthansoni8900
    @manthansoni8900 2 ปีที่แล้ว +2

    You supposed to be show the restlet code,this is not useful

    • @anismughal8199
      @anismughal8199 ปีที่แล้ว

      try this if it works:
      /**
      * @NApiVersion 2.0
      * @NScriptType Restlet
      */
      define(['N/record', 'N/error'], function (record, error) {
      function createCustomRecord(context){
      log.debug('context', context);
      var requestBody = context;
      // Define your custom record type internal ID
      var customRecordType = 'customrecord_your_custorec_id';
      // Create a new record
      var customRecord = record.create({
      type: customRecordType,
      isDynamic: true
      });
      // Set field values from the request body
      for(var field in requestBody){
      if(requestBody.hasOwnProperty(field)){
      customRecord.setValue({ fieldId: field, value: requestBody[field] });
      }
      }
      try{
      // Save the record
      var recordId = customRecord.save();
      return { success: true, recordId: recordId };
      }catch(e){
      // Handle errors
      log.error('Error creating custom record', e);
      throw error.create({ name: 'CREATION_ERROR', message: 'Error creating custom record' });
      }
      }
      return{
      post: createCustomRecord
      };
      });

  • @vigneshachari9142
    @vigneshachari9142 2 ปีที่แล้ว

    not useful explain the code

  • @anyen26
    @anyen26 2 ปีที่แล้ว

    Hi Amit, could you share your restlet code? please 🙏

    • @GP3_907
      @GP3_907 2 ปีที่แล้ว

      Did you receive it?

    • @anismughal8199
      @anismughal8199 ปีที่แล้ว

      try this if it works:
      /**
      * @NApiVersion 2.0
      * @NScriptType Restlet
      */
      define(['N/record', 'N/error'], function (record, error) {
      function createCustomRecord(context){
      log.debug('context', context);
      var requestBody = context;
      // Define your custom record type internal ID
      var customRecordType = 'customrecord_your_custorec_id';
      // Create a new record
      var customRecord = record.create({
      type: customRecordType,
      isDynamic: true
      });
      // Set field values from the request body
      for(var field in requestBody){
      if(requestBody.hasOwnProperty(field)){
      customRecord.setValue({ fieldId: field, value: requestBody[field] });
      }
      }
      try{
      // Save the record
      var recordId = customRecord.save();
      return { success: true, recordId: recordId };
      }catch(e){
      // Handle errors
      log.error('Error creating custom record', e);
      throw error.create({ name: 'CREATION_ERROR', message: 'Error creating custom record' });
      }
      }
      return{
      post: createCustomRecord
      };
      });