Act

petr_cermak/MSSQL-insert

  • Builds
  • latest 0.0.25 / 2018-02-20
  • Created 2017-07-04
  • Last modified 2017-10-26
  • grade 8

Description

This act takes a crawler execution and inserts it's results into a remote MSSQL database.


API

To run the act, send a HTTP POST request to:

https://api.apify.com/v2/acts/petr_cermak~MSSQL-insert/runs?token=<YOUR_API_TOKEN>

The POST payload will be passed as input for the act. For more information, read the docs.


Readme

act-mssql-insert

Apify act for inserting crawler results into a remote MSSQL table.

This act fetches all results from a specified Apifier crawler execution and inserts them into a table in a remote MSSQL database.

The act does not store its state, i.e. if it crashes it restarts fetching all the results. Therefore you should only use it for executions with low number of results.

INPUT

Input is a JSON object with the following properties:

{
    "_id": "YOUR_EXECUTION_ID",
    "data": {
        "connection": "MSSQL_CONNECTION_STRING",
        "table": "DB_TABLE_NAME"
    }
}

The act can be run with a crawler finish webhook, in such case fill just the contents of data attribute into a crawler finish webhook data.