Extension Integration Through IWorks Common

Skip to main content

Extension Integration Through IWorks Common

You are here:

If you wish to create your own application to integrate with DocXtender without depending on it, you can use non-interactive uploads by naming the procedure HandleFileUpload() in IWorks Common codeunit 23044519 “IWX Common Base”. This procedure takes four parameters as seen below and triggers the event inside DocXtender to start the upload:

Copy to Clipboard

Integration Events

DocXtender 2.2.1.1 contains 3 new integration events for extensions to subscribe to:

  1. OnBeforeHandleNonInteractiveUpload
  2. OnBeforeHandleDocumentAttachDropEvent
  3. OnDropHandlerOnBeforeAttachOrUpload

The codeunit 70097825 “IWX DocXtender Sharepoint Intg” contains a new integration event OnBeforeHandleNonInteractiveUpload. This procedure is triggered before handling a non-interactive file upload in the procedure SaveFileToSharepointNonInteractive. It allows you to modify or check the file or current record before the file is processed. If you need to override the procedure, you can set the Handled flag to true to skip the base code.

Copy to Clipboard

Codeunit 70097822 “IWX DocXtender” contains two new integration events with the first being OnBeforeHandleDocumentAttachDropEvent. This event is triggered inside the procedure DropEvent before a document is attached to a record.

This event allows you to modify or perform checks on the document or related record before the attachment is processed. If you need to override the procedure, you can set the Handled flag to true, which bypasses the base code and allows your extension to handle the attachment drop event instead.

Copy to Clipboard

The second Codeunit 70097822 “IWX DocXtender” integration event OnDropHandlerOnBeforeAttachOrUpload is triggered from the document attachment FactBox, after dragging/dropping a file.

This event allows you modify or perform checks on the file or related record prior to processing the file. If you need to override the procedure, you can set the Handled flag to true, preventing the base code from executing and enable your extension to take control of the upload or attachment instead.

Copy to Clipboard

You can use this event to override the login-based system with the non-interactive system. Use an extension containing an event subscriber with the following code to pass all uploads directly to codeunit “IWX DocXtender Sharepoint Intg”:

Copy to Clipboard
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Need help?

Leave A Comment

Table of Contents
Go to Top