Giter Club home page Giter Club logo

printnode-business-central-integration's Introduction

PrintNode Business Central Integration

This is a fully AL based integration with the provider PrintNode. The purpose of this is to have direct printing (report.run(id,FALSE,FALSE) like) in Business Central SaaS installations.

In order to begin, go through the following steps:

  1. Create an account in http://printnode.com and select a plan (you get 30 days trial). Install the printnode app on the computer you wish to print through and enable at least one printer.
  2. Generate an APIKey for Business Central https://app.printnode.com/apikeys
  3. Install the extension in the customer BC SaaS or OnPremise installation
  4. Go to the newly installed extension and allow the HTTPClient calls in the extension card page.
  5. Go to the "PrintNode Setup" page (you can search it in BC) and input the e-mail account, the APIKey generated previously
  6. In the "PrintNode Setup" window, click on the "Get PrintNode Printers". If all goes well, you can check the printers in the "PrintNode Printers" window.
  7. In the "PrintNode Setup" window, set a default printer in the "Default Printer ID".
  8. In the "PrinterNode Printer Selection" set up the printers you wish to use for each report and UserID (just like the standard Printer Selection window).
    1. If you were to need special options for a specific print (specific printer paper size for example) you can use the the Print job options provided by PrintNode (https://www.printnode.com/es/docs/api/curl#printjobs) in the Printjob options field available in the "PrintNode Printer Selection" window.

As far as the set up goes, you're done. All you have to do now is set up your extension to access this one and take advantage of it, or include the objects of this extension in your own extensions.

In order to create the dependency, in your app.json, add the dependencies to this extension. For more information on how to do that, check this link: https://www.hougaard.com/how-to-reference-another-extension-from-an-extension/

Once you're done, just declare a variable in your code, Codeunit: "PrintNode Management", and call the SendReportToPrintNode(ReportID: Integer; RecVariant: Variant; PrintJobTitle: Text) function and call it whenever necessary. In case you need to print a special kind of report, you can generate it and save it in a Blob (TempBlob). After, just call the SendReportBlobToPrintNode(ReportID: Integer; TempBlob: Record TempBlob; PrintJobTitle: text) function.

If you have any doubts or comments, you can find me on http://twitter.com/jcastrofer

printnode-business-central-integration's People

Contributors

jcastrofer avatar

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.