← UserVoice + Unleashed Software integrations

Create Purchase Order with Unleashed Software API on New NPS Ratings from UserVoice API

Pipedream makes it easy to connect APIs for Unleashed Software, UserVoice and 2,800+ other apps remarkably fast.

Trigger workflow on
New NPS Ratings from the UserVoice API
Next, do this
Create Purchase Order with the Unleashed Software API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a UserVoice trigger and Unleashed Software action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New NPS Ratings trigger
    1. Connect your UserVoice account
    2. Configure Polling schedule
  3. Configure the Create Purchase Order action
    1. Connect your Unleashed Software account
    2. Select a Order Status
    3. Select a Supplier ID
    4. Select a Tax Code
    5. Optional- Select a Warehouse ID
    6. Optional- Configure Exchange Rate
    7. Optional- Configure Comments
    8. Configure Number of Line Items
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emits new NPS ratings submitted through the UserVoice NPS widget. On first run, emits up to 10 sample NPS ratings users have previously submitted.
Version:0.0.4
Key:uservoice-new-nps-ratings

UserVoice Overview

The UserVoice API allows you to tap into customer feedback and support data to automate and enhance customer engagement processes. With the API, you can programmatically access UserVoice accounts to retrieve suggestions, tickets, and user data, allowing you to analyze customer trends, automate responses, and integrate with other customer success platforms. By leveraging Pipedream's capabilities, you can create event-driven workflows that react to UserVoice events, synchronize data across multiple services, and construct a more responsive customer feedback loop.

Trigger Code

const uservoice = require("../../uservoice.app.js");
const { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } = require("@pipedream/platform");

const NUM_SAMPLE_RESULTS = 10;

module.exports = {
  name: "New NPS Ratings",
  version: "0.0.4",
  key: "uservoice-new-nps-ratings",
  description: `Emits new NPS ratings submitted through the UserVoice NPS widget. On first run, emits up to ${NUM_SAMPLE_RESULTS} sample NPS ratings users have previously submitted.`,
  dedupe: "unique",
  type: "source",
  props: {
    uservoice,
    timer: {
      label: "Polling schedule",
      description:
        "Pipedream will poll the UserVoice API for new NPS ratings on this schedule",
      type: "$.interface.timer",
      default: {
        intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
      },
    },
    db: "$.service.db",
  },
  hooks: {
    async deploy() {
      // Emit sample records on the first run
      const { npsRatings } = await this.uservoice.listNPSRatings({
        numSampleResults: NUM_SAMPLE_RESULTS,
      });
      this.emitWithMetadata(npsRatings);
    },
  },
  methods: {
    emitWithMetadata(ratings) {
      for (const rating of ratings) {
        const {
          id, rating: score, body, created_at,
        } = rating;
        const summary = body && body.length
          ? `${score} - ${body}`
          : `${score}`;
        this.$emit(rating, {
          summary,
          id,
          ts: +new Date(created_at),
        });
      }
    },
  },
  async run() {
    let updated_after =
      this.db.get("updated_after") || new Date().toISOString();
    const {
      npsRatings, maxUpdatedAt,
    } = await this.uservoice.listNPSRatings({
      updated_after,
    });
    this.emitWithMetadata(npsRatings);

    if (maxUpdatedAt) {
      updated_after = maxUpdatedAt;
    }
    this.db.set("updated_after", updated_after);
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
UserVoiceuservoiceappThis component uses the UserVoice app.
Polling scheduletimer$.interface.timer

Pipedream will poll the UserVoice API for new NPS ratings on this schedule

N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.

Trigger Authentication

UserVoice uses API keys for authentication. When you connect your UserVoice account, Pipedream securely stores the keys so you can easily authenticate to UserVoice APIs in both code and no-code steps.

To connect to the UserVoice API, create a trusted API client. In your UserVoice Admin Console, navigate to SettingsIntegrationsUserVoice API keys and click the button to Add API Key. Add a name and check the Trusted box at the bottom of the modal that appears:



Then, generate an access token by clicking the Create button near the right of the details of the API key:



About UserVoice

User feedback made easy and actionable

Action

Description:Create a purchase order. [See the documentation](https://apidocs.unleashedsoftware.com/Purchases)
Version:0.0.1
Key:unleashed_software-create-purchase-order

Action Code

import unleashedSoftware from "../../unleashed_software.app.mjs";

export default {
  key: "unleashed_software-create-purchase-order",
  name: "Create Purchase Order",
  description: "Create a purchase order. [See the documentation](https://apidocs.unleashedsoftware.com/Purchases)",
  version: "0.0.1",
  type: "action",
  annotations: {
    destructiveHint: false,
    openWorldHint: true,
    readOnlyHint: false,
  },
  props: {
    unleashedSoftware,
    orderStatus: {
      propDefinition: [
        unleashedSoftware,
        "purchaseOrderStatus",
      ],
    },
    supplierId: {
      propDefinition: [
        unleashedSoftware,
        "supplierId",
      ],
    },
    taxCode: {
      propDefinition: [
        unleashedSoftware,
        "taxCode",
      ],
    },
    warehouseId: {
      propDefinition: [
        unleashedSoftware,
        "warehouseId",
      ],
      optional: true,
    },
    exchangeRate: {
      propDefinition: [
        unleashedSoftware,
        "exchangeRate",
      ],
      optional: true,
    },
    comments: {
      propDefinition: [
        unleashedSoftware,
        "comments",
      ],
    },
    numLineItems: {
      type: "integer",
      label: "Number of Line Items",
      description: "The number of line items to enter",
      reloadProps: true,
    },
  },
  async additionalProps() {
    const props = {};
    if (!this.numLineItems) {
      return props;
    }
    for (let i = 1; i <= this.numLineItems; i++) {
      props[`line_${i}_productId`] = {
        type: "string",
        label: `Line Item ${i} - Product ID`,
        options: async ({ page }) => {
          const { Items: products } = await this.unleashedSoftware.listProducts({
            page: page + 1,
          });
          return products?.map(({
            Guid: value, ProductDescription: label,
          }) => ({
            value,
            label,
          })) || [];
        },
      };
      props[`line_${i}_quantity`] = {
        type: "string",
        label: `Line Item ${i} - Quantity`,
      };
      props[`line_${i}_unitPrice`] = {
        type: "string",
        label: `Line Item ${i} - Unit Price`,
      };
    }
    return props;
  },
  async run({ $ }) {
    const lineItems = [];
    let subtotal = 0, taxTotal = 0;
    const taxRate = await this.unleashedSoftware.getTaxRateFromCode({
      $,
      taxCode: this.taxCode,
    });

    for (let i = 1; i <= this.numLineItems; i++) {
      const lineTotal = +this[`line_${i}_unitPrice`] * +this[`line_${i}_quantity`];
      const lineTax = lineTotal * (taxRate / 100);
      lineItems.push({
        Product: {
          Guid: this[`line_${i}_productId`],
        },
        OrderQuantity: +this[`line_${i}_quantity`],
        UnitPrice: +this[`line_${i}_unitPrice`],
        LineTotal: lineTotal,
        LineTax: lineTax,
        LineNumber: i,
      });
      subtotal += lineTotal;
      taxTotal += lineTax;
    }
    const response = await this.unleashedSoftware.createPurchaseOrder({
      $,
      data: {
        Supplier: {
          Guid: this.supplierId,
        },
        ExchangeRate: +this.exchangeRate,
        OrderStatus: this.orderStatus,
        Warehouse: {
          Guid: this.warehouseId,
        },
        Comments: this.comments,
        Subtotal: subtotal,
        Tax: {
          TaxCode: this.taxCode,
        },
        TaxRate: taxRate,
        TaxTotal: taxTotal,
        Total: subtotal + taxTotal,
        PurchaseOrderLines: lineItems,
      },
    });

    $.export("$summary", "Successfully created purchase order");
    return response;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
Unleashed SoftwareunleashedSoftwareappThis component uses the Unleashed Software app.
Order StatusorderStatusstringSelect a value from the drop down menu:ParkedPlacedComplete
Supplier IDsupplierIdstringSelect a value from the drop down menu.
Tax CodetaxCodestringSelect a value from the drop down menu.
Warehouse IDwarehouseIdstringSelect a value from the drop down menu.
Exchange RateexchangeRatestring

The exchange rate to use for the order

Commentscommentsstring

The comments to add to the sales order

Number of Line ItemsnumLineItemsinteger

The number of line items to enter

Action Authentication

Unleashed Software uses API keys for authentication. When you connect your Unleashed Software account, Pipedream securely stores the keys so you can easily authenticate to Unleashed Software APIs in both code and no-code steps.

About Unleashed Software

Reliable inventory management software that makes every day easier.

More Ways to Connect Unleashed Software + UserVoice

Create Sales Order with Unleashed Software API on New NPS Ratings from UserVoice API
UserVoice + Unleashed Software
 
Try it
Create Stock Adjustment with Unleashed Software API on New NPS Ratings from UserVoice API
UserVoice + Unleashed Software
 
Try it
Create Stock Transfer with Unleashed Software API on New NPS Ratings from UserVoice API
UserVoice + Unleashed Software
 
Try it
Get Purchase Order with Unleashed Software API on New NPS Ratings from UserVoice API
UserVoice + Unleashed Software
 
Try it
Get Sales Order with Unleashed Software API on New NPS Ratings from UserVoice API
UserVoice + Unleashed Software
 
Try it
New NPS Ratings from the UserVoice API

Emits new NPS ratings submitted through the UserVoice NPS widget. On first run, emits up to 10 sample NPS ratings users have previously submitted.

 
Try it
Create Purchase Order with the Unleashed Software API

Create a purchase order. See the documentation

 
Try it
Create Sales Order with the Unleashed Software API

Creates a new sales order. See the documentation

 
Try it
Create Stock Adjustment with the Unleashed Software API

Create a stock adjustment. See the documentation

 
Try it
Create Stock Transfer with the Unleashed Software API

Create a stock transfer. See the documentation

 
Try it
Get Purchase Order with the Unleashed Software API

Get a purchase order by ID. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,800+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.