code: function AzureTableStorage(config) {
          // Store node for further use
          node = this;
          nodeConfig = config;
  
          // Create the Node-RED node
          RED.nodes.createNode(this, config);
          clientAccountName = node.credentials.accountname
          clientAccountKey = node.credentials.key;
  
          this.on('input', function (msg) {
  
              var messageJSON = null;
  
              if (typeof (msg.payload) != "string") {
                  node.log("JSON");
                  messageJSON = msg.payload;
              } else {
                  node.log("String");
                  //Converting string to JSON Object if msg.payload is String
                  //Sample string: {"tableName": "name", "action": "I" "partitionKey": "part1", "rowKey": "row1", "data": "data"}
                  messageJSON = JSON.parse(msg.payload);
              }
  
              entityClass = messageJSON;
              //var tableselect = createTable(messageJSON.tableName);
              node.log('Received the input: ' + messageJSON.tableName);
              var action = messageJSON.action;
              // Sending data to Azure Table Storage
              setStatus(statusEnum.sending);
              switch (action) {
                  case "I":
                      node.log('Trying to insert entity');
                      createTable(senddata);
                      break;
                  case "R":
                      node.log('Trying to read entity');
                      createTable(readdata);
                      break;
                  case "DT":
                      node.log('Trying to delete table');
                      deleteTable(entityClass.tableName);
                      break;
                  case "Q":
                      //node.log('Trying to query data');
                      //queryEntity(messageJSON.tableName, messageJSON.fromColumn, messageJSON.where, messageJSON.selectData);
                      break;
                  case "U":
                      node.log('trying to update entity');
                      createTable(uptadeEntity);
                      break;
                  case "D":
                      node.log('trying to delete entity');
                      createTable(deleteEntity);
                      break;
                  default:
                      node.log('action was not detected');
                      node.error('action was not detected');
                      setStatus(statusEnum.error);
                      break;
              }    
          });
  
          this.on('close', function () {
              disconnectFrom(this);
          });
      }
docs: Main function called by Node-RED