Giter VIP home page Giter VIP logo

currentrmszap's Introduction

currentrmszap

Current-RMS Zap connects this rental management web app talk to the Zapier code-free automation API

Current-RMS Zap

THIS ZAP IS PRE-RELEASE ALPHA QUALITY

This is the official repo of the converted CLI version of 1.1.2 of this Zap: https://zapier.com/app/developer/app/29697/

By Tom Atkinson http://www.funk.co.nz/

Current-RMS https://current-rms.com/ is a commercial Rental Management System great for company that rents out equipment. Since Current-RMS didn't have a Zap at the time, I decided to make this one! The "Zap" connects the rental CRM to the awesome Zapier code-free web API automation system.

Sponsorred by The Rock Factory, NZ

https://therockfactory.net/ Thanks to our sponsor for open-sourcing this Zap. At The Rock Factory we do Stage, Sound, Backline, Lighting Hire in Auckland, in New Zealand. Zapier and Current-RMS are apps we use at The Rock Factory where I work on this integration for my awesome boss bless her.

Environment

Be sure to update the .env file with:

  • SUBDOMAIN=YOUR_SUBDOMAIN (set inside your current-rms.com account)
  • CLIENT_ID=YOUR_CLIENT_ID (set inside your current-rms.com account)
  • CLIENT_SECRET=YOUR_CLIENT_SECRET (set inside your current-rms.com account)
  • ACCESS_TOKEN=YOUR_ACCESS_TOKEN (maybe not used - to be removed)
  • REFRESH_TOKEN=YOUR_REFRESH_TOKEN (maybe not used - to be removed)

You can get those from https://YOUR_SUBDOMAIN.current-rms.com/oauth2/applications if you are a user of Current-RMS.

Docs

https://api.current-rms.com/doc

oAuth Redirect

You may need to add this as trusted URL in Current-RMS: https://zapier.com/dashboard/auth/oauth/return/App29697CLIAPI/

currentrmszap's People

Contributors

tomachinz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

jonrenie

currentrmszap's Issues

Invalid API Response: Results must be an array, got: object, ({"members":[],"meta":{"total_row_count":0,"row_cou)

As documented in the GUI FAQ here: https://platform.zapier.com/docs/faq#i-got-an-an-array-is-expected-error-how-do-i-fix-that

In this version - 1.1.2 - the Zap is blocked due to (AFAIK) Zapier sending an object and Current-RMS requiring an array.

Bargle. We hit an error searching for (or creating) an organisation.
Invalid API Response:
Hide details
Troubleshooting Errors | Contact Support
  - Results must be an array, got: object, ({"members":[],"meta":{"total_row_count":0,"row_cou)
What happened (You are seeing this because you are an admin):
  Executing searches.find_organisation.operation.perform with bundle
  Invalid API Response:
  - Results must be an array, got: object, ({"members":[],"meta":{"total_row_count":0,"row_cou)

Console logs:

Stack trace:
    - Results must be an array, got: object, ({"members":[],"meta":{"total_row_count":0,"row_cou)
  checkOutput (/var/task/node_modules/zapier-platform-core/src/app-middlewares/after/checks.js:42:15)
  Object.collector.then.newOutput (/var/task/node_modules/zapier-platform-core/src/middleware.js:80:37)
  bound (domain.js:301:14)
  Object.runBound (domain.js:314:12)
  Object.tryCatcher (/var/task/node_modules/bluebird/js/release/util.js:16:23)
  Promise._settlePromiseFromHandler (/var/task/node_modules/bluebird/js/release/promise.js:512:31)
  Promise._settlePromise (/var/task/node_modules/bluebird/js/release/promise.js:569:18)
  Promise._settlePromiseCtx (/var/task/node_modules/bluebird/js/release/promise.js:606:10)
  Async._drainQueue (/var/task/node_modules/bluebird/js/release/async.js:138:12)
  Async._drainQueues (/var/task/node_modules/bluebird/js/release/async.js:143:10)
  Immediate.Async.drainQueues (/var/task/node_modules/bluebird/js/release/async.js:17:14)
  runCallback (timers.js:794:20)
  tryOnImmediate (timers.js:752:5)
  processImmediate [as _immediateCallback] (timers.js:729:5)

Zapier gives "errors":["Couldn't find Email with ID=1 for Member with ID="] just before completing setup of new Zap

Current-RMS API is giving a 404 error

Got 404 calling POST https://api.current-rms.com/api/v1/members, expected 2xx.

We had trouble sending your test through.
Got 404 calling POST https://api.current-rms.com/api/v1/members, expected 2xx.
Hide details
Troubleshooting Errors | Contact Support
What happened (You are seeing this because you are an admin):
  Starting POST request to https://api.current-rms.com/api/v1/members
  Received 404 code from https://api.current-rms.com/api/v1/members after 92ms
  Received content "{"errors":["Couldn't find Email with ID=1 for Member with ID="]}"
  Got 404 calling POST https://api.current-rms.com/api/v1/members, expected 2xx.

Console logs:

Stack trace:
  throwForStatus (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/throw-for-status.js:8:11)
  Object.outResp.throwForStatus (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/prepare-response.js:44:36)
  Object.z.request.then (eval at makeFunction (/var/task/node_modules/zapier-platform-core/src/tools/schema-tools.js:7:30), <anonymous>:47:14)
  bound (domain.js:301:14)
  Object.runBound (domain.js:314:12)
  Object.tryCatcher (/var/task/node_modules/bluebird/js/release/util.js:16:23)
  Promise._settlePromiseFromHandler (/var/task/node_modules/bluebird/js/release/promise.js:512:31)
  Promise._settlePromise (/var/task/node_modules/bluebird/js/release/promise.js:569:18)
  Promise._settlePromise0 (/var/task/node_modules/bluebird/js/release/promise.js:614:10)
  Promise._settlePromises (/var/task/node_modules/bluebird/js/release/promise.js:693:18)
  Async._drainQueue (/var/task/node_modules/bluebird/js/release/async.js:133:16)
  Async._drainQueues (/var/task/node_modules/bluebird/js/release/async.js:143:10)
  Immediate.Async.drainQueues (/var/task/node_modules/bluebird/js/release/async.js:17:14)
  runCallback (timers.js:794:20)
  tryOnImmediate (timers.js:752:5)
  processImmediate [as _immediateCallback] (timers.js:729:5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.