Tag: API
-
Extending Electronic Reporting Sources: Integration with OneDrive (II/II)
To implement the logic, we will create the following classes: TST2 One DriveInbound File: This class defines a custom inbound file and implements the interface ERIImportFile. TST2 One DriveInbound FileSource: This class is intended to read and import files. However, we will use it primarily to call TST2 OneDriveAPI, ensuring a better separation of concerns.…
-
Extending Electronic Reporting Sources: Integration with OneDrive (I)
In this series, I will explain how to extend ER (Electronic Reporting) sources to import from non-default origins (beyond the default options like manual imports or SharePoint). This will also enable us to program batch jobs for continuous integrations. Specifically, I will guide you step by step on how to integrate with a third-party OneDrive,…
-
Extending Electronic Reporting Destinations: Integration with OneDrive (III)
In this final post of the series, I’m going to explain how to send files to OneDrive. Since I’ve implemented this functionality in a separate class, it’s more independent from the ER destinations. This is intentional because we may want to reuse the class for other developments. If you are extending destinations that aren’t for…
-
Extending Electronic Reporting Destinations: Integration with OneDrive (II)
To implement the logic, we will create four classes: TST2 OneDriveERDest Settings: This class packs and unpacks the form’s data and implements the ERIFormatFile DestinationSettings interface. TST2 OneDriveERDest OneDrive: This class retrieves the file and sends it to the TST2 OneDriveAPI. It implements the ERIFileDestination interface. TST2 OneDriveERDest EventHandlers: This class enables and disables controls…
-
Extending Electronic Reporting Destinations: Integration with OneDrive (I)
By default, you can export ER generated files to your computer, to a tab in your browser, to an email, to an archive (either the default SharePoint or the default Azure Storage), to a printer, and even to Power BI (though I’m not sure how this works, it seems to pass through SharePoint). Most of…
-
Using Electronic Reporting for API requests (II)
In this second part, I’m going to explain the code from the executable class. I’m using attachments because I find them very helpful during testing and even in production. However, you can also work in memory; at the end of this guide, I’ll explain how. Let’s start with the executable class. We’ll begin by using…
-
Using Electronic Reporting for API requests (I)
When we need to make a request to an external API, it’s really helpful to use ER because it’s a low-code environment that helps us build, test, and fix our messages much faster. ER supports XML and JSON, so we won’t have a hard time designing the request body or reading the response body. With…