New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

smartsheet-get-filtered-sheet

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smartsheet-get-filtered-sheet

Get the data of a sheet and return only the rows that match a given criteria

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Smartsheet Get Filtered Sheet

Get the data of a sheet and return only the rows that match a given criteria.

Example: Return every row in a sheet where the Status column is set to Complete.

NOTE: This module requires the Smartsheet Javascript SDK and is meant to be used alongside it.

A GET Sheet request will return all of the current data of the sheet by default. Sometimes only certain rows are needed for a process instead.

This module solves this by:

  1. Getting the current sheet data.
  2. Searching through the rows to find matches with the given value.
  3. Returning only the row objects that match the given criteria in an array.

Installation

npm install smartsheet-get-filtered-sheet

Usage

//Assumes smartsheetClient has been instantiated elsewhere already

const getFilteredSheet = require('smartsheet-get-filtered-sheet');

const options = {
    sheetId: 4583173393803140,
    columnId: 2331373580117892,
    filterValue: 'Complete'
};

getFilteredSheet(smartsheetClient, options)
 .then((results) => {
     console.log(results);
     })
 .catch((err) => {
     console.log(err)
 });

Arguments

The function takes two arguments, your Smartsheet client object and an options object.

smartsheetClient

This module is used alongside the Smartsheet Javascript SDK. Pass in your current Smartsheet client object for use in the requests.

options

options.sheetId

The id of the sheet you are filtering

options.columnId

The id of the column to look for that will have the value to decide if the row is returned or not.

options.filterValue

The value to search for in the sheet. A match determines that a row should be returned.

Keywords

FAQs

Package last updated on 23 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc