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

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • A RESTlet is an API and can perform any function that can be implemented by using SuiteScript. In this video tutorial, we will explain NetSuite RESTLet Add Retrieve Data Restlet Postman.
    www.bisptrainings.com, www.bispsolutions.com
    NetSuite Consulting
    For NetSuite Consulting visit: www.bispsoluti...
    For NetSuite technical training visit: www.bisptraini...
    For NetSuite functional training visit: www.bisptraini...
    Register here for more details: www.bisptraini...
    Email Us: support@bisptrainingss.com, support@bispsolutions.com
    NetSuite Suitescript: • NetSuite SuiteScript
    NetSuite Technical:
    For more Video: • NetSuite Technical Cus...
    Call us: +91 7694095404 or+1 3054593061
    Please don’t Forget to Like, Share & Subscribe
    ✅Follow us on Facebook: / bisptrainings
    ✅Follow us on Twitter: / bisptrainings
    ✅Follow us on LinkedIn: / admin
    #NetsuiteScriptingTutorial
    #NetsuiteTutorial
    #BISPTrainings
    #NetsuiteConsulting

Комментарии • 21

  • @anshul_09
    @anshul_09 Год назад

    Thanks for the information.

  • @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
      };
      });

  • @anmolpanwar5553
    @anmolpanwar5553 Год назад

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

  • @MuhammadHafiz-xq2qd
    @MuhammadHafiz-xq2qd 2 года назад

    Hi Amit, do you know how to create suitelet for post method that can send record with sublist like item?

    • @bispsolutions
      @bispsolutions  2 года назад

      Thanks for visiting our channel, we'll prepare another video based on your request/suggestions.

  • @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?

  • @arielmarti7597
    @arielmarti7597 Год назад

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

  • @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
      };
      });

  • @umairshehzad6200
    @umairshehzad6200 2 года назад

    Hi can you please share your code for this restlet ?

    • @bispsolutions
      @bispsolutions  2 года назад

      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.

  • @vigneshachari9142
    @vigneshachari9142 Год назад

    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
      };
      });