A common tool for testing REST services is the tool Postman. This article will cover how to access and use the Uniconta ODATA API using Postman. Because it is an ODATA API, no API key is required. Uniconta login credentials are the only thing you need to call the API. Endpoints You can find endpoints […]
Developers Unipedia
- API
- API
- User defined fields
- User defined tables
- Saving a Session
- Posting an Invoice
- Post Invoice and get PDF
- Localization
- Attach physical voucher to entities
- Server-Login User
- How to find C# Property from Uniconta Label
- Minimize network traffic and optimize speed
Minimize network traffic and optimize speed
July 3rd, 2019 by MichaelAn api call in Uniconta is always associated with an overhead. First the api must establish a connection to the server, then encrypt and send the network package. On the server side the server will receive the package. Decrypt the package and branch out in the server and then to the method. At that point […]
Server-Login User
March 20th, 2019 by MichaelAny solution using the Uniconta API to integrate to Uniconta and which requires a separate Server-login user, this Server-login user must be the one the integration/solution uses to logon to Uniconta.
Attach physical voucher to entities
February 12th, 2019 by MichaelYou can attach physical vouchers to entiteis such as the GLDailyJournalLineClient entities. The entity must have a DocumentRef property of type int. In the code snippet beneath is an example of how to attatch a physical voucher to a GLDailyJournalLine. // Some File var bytes = File.ReadAllBytes(@”[Path To File]”); var vc = new VouchersClient() { _Data = […]
Localization
January 30th, 2019 by MichaelUniconta uses Labels for Localization. The labels can be found in the Uniconta client under Tools -> Report Generator -> Labels. Programmatically, when we wish to Localize or translate plugins or applications, we can use these labels using the Localization class from the Uniconta.ClientTools namespace. // An initialized CrudAPI is required to use the Localization.lookup […]
Open tab in Uniconta programmatically
January 29th, 2019 by MichaelYou can use the following code snippet to open a new tab in Uniconta. object[] param = new object[2]; param[0] = crudApi; param[1] = null; UnicontaTabs.OpenTab(UnicontaTabs.DebtorAccountPage2, param); This can be used to open up some Uniconta tab from a plugin for example. In the example above, we open up the DebtorAccountPage2 tab.
Post Invoice and get PDF
January 16th, 2019 by MichaelSimilarly to the InvoiceAPI.PostInvoice method, you can also call InvoiceAPI.PostInvoicePDF in order to get the invoice PDF if you wish to save it or process it in any other manner. Below is a code snippet showing how to use the method. In this example we are invoicing an order with order number 559. Just like the […]
Posting an Invoice
December 17th, 2018 by MichaelTo post an invoice you must use the InvoiceAPI’s PostInvoice method. Below is an example of invoicing an order with order number 55. // Goal: Invoice an order with order number: 55 // Smart way to get a specific order var order = new DebtorOrderClient { OrderNumber = 55 }; await crud.Read(order); // Get all […]
Saving a Session
November 27th, 2018 by MichaelYou can save a Session in Uniconta. You might want to do this, if you wish to keep a user’s Session, so they do not have to log in again. In the code beneath, two methods are showed, SaveSession and GetSession. SaveSession simply saves a Session at a given path as a byte[]. GetSession returns […]
Refreshing UI with plugins
October 2nd, 2018 by MichaelThere are two different ways to refresh the UI from plugins, depending on the plugin type you are developing. The way to refresh in IContentPluginBase is the same as IPluginBase. Refreshing with IPluginBase IPluginBase plugins have the following EventHandler: public event EventHandler OnExecute; The following code snippet can be called from the method Execute(…) to refresh the […]
Debug Uniconta Plugins
October 2nd, 2018 by MichaelTo debug Uniconta Plugins on the WPF client, you must download the ClickOnce Installer here. After downloading the ClickOnce installer, open up your Visual Studio project. From Visual Studio, right click your project and select the Properties menu from the dropdown. Go to the debug menu on the left hand site. Click the Start external […]
User defined tables
July 16th, 2018 by MichaelYou can programmatically create and insert user defined tables into Uniconta. First, define a header using the TableHeaderClient class which defines information such as menu position, name and more. Table fields can be added using the TableField class which holds information such as name and type. A good way to create TableFields is to use a […]