Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

WPF + CRM integration

Discussion in 'CRM / Helpdesk / App Integration' started by Hogne Vevle, Jul 28, 2017.

Thread Status:
Not open for further replies.
  1. Hogne Vevle

    Jul 28, 2017
    Likes Received:

    I'm trying to build a CRM integration for the 3CX client.

    As some user interaction often is required to determine the correct contact (a phone number can be associated with several contacts), I'm trying to display a form built in WPF. This has proven a bit difficult.

    During compilation of the plugin, DotNetScriptPlugin.log complains that none of the form variables (to access the form elements) in my .xaml.cs file are available. It also complains about InitializeComponent() not being found.

    Adding the references to PresentationCore, PresentationFramework and WindowsBase was done by including these DLL-s inside the project, and referencing those DLLs explicitly. (Don't know why this had to be done this way, but just adding the references to the project through the "Assemblies" tab in VS resulted in errors such as "Could not find the meta data file PresentationCore.dll - File '' - Line: 0 - Column: 0". By including the DLLs in the project, I was able to work around this.

    Building the project locally works fine (both via VS and directly via msbuild via the command line).
    I'm suspecting that it doesn't compile the .xaml file as it's supposed to, and goes directly to the .xaml.cs.

    Does anyone have any ideas? I would think old school Windows Forms would work, but I'd much rather use WPF.

    The build logs as shown in DotNetScriptPlugin.log:

Thread Status:
Not open for further replies.