Home / How-to / Bring in your data
Custom acquisitions: your own data sources
Install a plugin that adds a new kind of acquisition, or write one in C# for a source no built-in acquisition reads.
The short version
- A custom acquisition is a new kind of acquisition that a plugin adds to ConradTool, for a source the built-in acquisitions don't read.
- A plugin is a DLL. Close ConradTool, copy the DLL into
AppData\Local\ConradBI\Tool\Plugins, and start ConradTool again. Its acquisitions join the list under the + on the Acquisitions row. - Adding one needs Custom Acquisitions in your plan, which comes with Enterprise. A project that already holds one opens and processes on any plan.
- It processes in ConradTool like any acquisition, and the rest of the project builds on it. A processor service can't run it, so a project that holds one can't run on a schedule.
- A developer builds one as a .NET 9 WPF class library on
ConradFramework: an element type, a config that implementsIColumnSourceandIProcessable, and an editor. - If a script can write the data to a file, an Execution Acquisition is simpler: no plugin, and it runs on a schedule.
In this guide
- What it is
- Plugin or Execution Acquisition?
- Before you start
- Install a plugin
- Add one to a project
- How it behaves
- Plans and Custom Acquisitions
- Update or remove a plugin
- What a plugin is made of
- Set up the project
- The smallest working acquisition
- Build and test it
- The rules
- What a plugin can't do
- When something goes wrong
- Reference
What it is
An acquisition is the element that brings data into a project. ConradBI's own acquisitions read SQL Server and Microsoft Access databases, Excel workbooks, delimited text files, JSON, XML and YAML documents, websites and PDFs, and the files a program writes.
A custom acquisition is one more kind of acquisition, added by a plugin. A plugin is a DLL that a developer writes in C# for a source none of those reach: a partner's web API, an in-house system, a machine that logs readings. Once the plugin is installed, its acquisition is listed beside the built-in ones. It has an editor, it processes, it holds rows, and the rest of the project builds on it the way it builds on any acquisition.
This guide has two parts:
- Part one is for anyone who was handed a plugin. It runs from Install a plugin to Update or remove a plugin.
- Part two is for the developer who writes one. It runs from What a plugin is made of to The rules.
Both parts follow one plugin, Partner Feed. It loads the orders a sales partner sends, with Order ID, Order Date, Product Code, Units, Unit Price and Channel. Its acquisition in the project is called Partner Orders. The plugin's code is in The smallest working acquisition, so what part one shows on the screen is what that code draws. A plugin you were handed shows its own names instead.
Plugin or Execution Acquisition?
Check first whether you need a plugin at all. An Execution Acquisition runs a program or script, such as a PowerShell script that calls the partner's API and saves the answer to a file. A File, Excel, Semi-Structured, Microsoft Access or PDF Acquisition then reads what it wrote. Files a program writes shows how.
The Execution Acquisition is one of ConradBI's own, so it needs no plugin, and a processor service can run it on a schedule, as long as the program is on that computer too.
| Execution Acquisition | Custom acquisition | |
|---|---|---|
| What you write | An executable, batch file, PowerShell script or Python script | A plugin, in C# |
| How the rows arrive | The program writes a file, and a second acquisition reads it | The plugin hands its rows to processing itself |
| What the user fills in | Program, Arguments and where the program writes | The fields the plugin's editor offers |
| Runs on a processor service, and so on a schedule | Yes | No |
Pick a plugin when the source should be a kind of element of its own: an editor with the fields your users fill in, and rows that go straight to processing with their types, with no file in between.
Before you start
To use a plugin, you need:
- ConradTool, installed and signed in. See Install ConradTool.
- The plugin's DLL, from whoever wrote it. Partner Feed's is
PartnerFeedPlugin.dll. - Custom Acquisitions in your plan, to add the plugin's acquisitions to a project. It comes with Enterprise.
- A project open in ConradTool, in Developer Mode, where the Elements tree, the Editor and the Services panel are.
To build a plugin, you also need:
- C# and WPF, and the .NET 9 SDK, or a Visual Studio that includes it.
- The ConradFramework library, which ConradTool's own elements are built on. A plugin compiles against it, and ConradTool supplies it when the plugin runs. It isn't offered on the Downloads tab yet, so write to team@conradbi.com before you start.
Tip: A plugin is a program. It runs inside ConradTool, as you, and can reach whatever you can. Install only plugins from people you trust.
Install a plugin
This part is for anyone who was handed a plugin.
ConradTool looks for plugins in a folder called Plugins, beside ConradTool.exe. ConradTool installs itself in your Windows profile, so for you that folder is AppData\Local\ConradBI\Tool\Plugins.
- Close ConradTool. It reads its plugins only when it starts.
- In File Explorer, type
%LocalAppData%\ConradBI\Toolin the address bar and press Enter. - If there is no
Pluginsfolder there, create one. - Copy
PartnerFeedPlugin.dllintoPlugins. Put it inPluginsitself: ConradTool doesn't look in folders inside it. - Start ConradTool from ConradBI Tool in the Start Menu, and open your project.
When ConradTool starts, it reads every DLL in Plugins, finds the plugin in each one, and adds the plugin's kinds of element to its lists. Nothing announces it. The sign that it worked is a new entry in the Acquisitions list, as the next section shows. A DLL that can't be loaded is skipped, and ConradTool starts without it, again without a message.
ConradTool is installed separately for each Windows user. So everyone who builds the project needs the DLL in their own Plugins folder, including teammates who get the project through Version Control.
Add one to a project
This takes about two minutes.
- In the Elements tree, click the + on the Acquisitions row. The list under it now has Add Partner Feed, in alphabetical order with the built-in kinds. A right-click on the row gives the same list.
- Pick Add Partner Feed.
- In Add element, Name suggests
Partner Feed 1. TypePartner Ordersand click OK. The new element opens in the Editor. - At the top of the editor is Name, as for every element. Under it are the plugin's own fields. Partner Feed has one, Channel, set to
Partner: the channel each of its rows gets. - Save the element with Ctrl+S.
- In the Services panel, click Process current. On the Orchestration tab, the element's Status turns to Complete and Rows shows 2.
- Open the Data tab. It reads "Rows for: Partner Orders" and shows the partner's two orders. The Schema tab lists the six columns, each with its Column type: Text, Date, Number or Decimal.
From here on it is an acquisition like any other. To clean it, add a Stepped Transform Prep and pick Partner Orders as its Source element.
How it behaves
Most of ConradTool treats a custom acquisition the way it treats a built-in one:
| Where | What happens |
|---|---|
| The tree | It is a row under Acquisitions. Point at it and the tooltip names its kind, Partner Feed. Right-click it and pick Edit, Duplicate or Remove |
| Processing | Use Process all, Process current or Process checked to run it. It has a row on the Orchestration tab, and runs before everything built on it |
| Storage | Its rows go where every element's rows go, by the project's storage mode: into memory, or into a table in SQL Server. See Where the results go |
| Its table | Named after the element, Partner Orders, not after anything in the partner's system. The plugin names it, and the rules ask every plugin to name it this way |
| The Services panel | Data shows its rows, and Schema its columns and their types |
| What builds on it | Preps and grains bind to its columns as they do to any acquisition's, and everything after them follows |
| Variables | A field with a globe icon at its right takes an environment variable, as it does anywhere else |
| Errors | When the plugin can't read its source, Status reads Failed, with the plugin's own message. The elements built on it fail too |
| Notes | The plugin can say something without failing. Status then reads Complete, followed by its note |
What belongs to the plugin
- Its editor. Its fields and buttons are whatever its developer put there. The File Acquisition's column list, with Include, Data Type and Determine types, belongs to the File Acquisition. A plugin's columns and their types come from the plugin, and you can change them only where its editor lets you.
- What it reads, and how. Where the data comes from, which columns there are and what can go wrong are the plugin's business. Its developer is the one to ask.
Processor services and schedules
A processor service knows only ConradBI's own kinds of element. It has no Plugins folder, and no plugin can be added to it. A schedule hands the service every element in its project, not only the ones you check. So once a project holds a custom acquisition, the service refuses that project's scheduled runs, and nothing in the project loads on the schedule, not even its built-in acquisitions. The schedule still saves and still shows its next run, and its runs add nothing to the service's Log tab.
Process such a project in ConradTool. If it has to run on a schedule, fetch the data with a script, and run the script with an Execution Acquisition.
Plans and Custom Acquisitions
Adding a custom acquisition needs Custom Acquisitions in your plan. It comes with the Enterprise plan. The check covers only the kinds of acquisition a plugin adds: ConradBI's own don't ask for it.
On a plan without it:
- Add Partner Feed is still in the list. Pick it, type a name and click OK, and a message says: "Partner Feed is a custom acquisition. Custom Acquisitions isn't included in your plan. See your account page at conradbi.com to add it." Nothing is added. The message names the acquisition, so another plugin's starts with its own name.
- Picking Duplicate on an existing Partner Feed gives the same message, and so does asking Conrad to add one.
- Everything else goes on as before. A project that already holds custom acquisitions opens, edits, saves and processes on any plan. Only adding another is refused.
Update or remove a plugin
Update to a new version
- Close ConradTool. While it runs, it holds the plugin's DLL open, and Windows won't let you replace it.
- Copy the new DLL over the old one in
Plugins. - Start ConradTool and open a project that uses the plugin. Check that its acquisitions are in the tree before you save anything.
Your elements open in the new version as long as its developer kept the plugin's type ID, the name each kind of element is stored under in the project file.
ConradTool keeps itself up to date, and it leaves Plugins alone when it does. A plugin built for an older ConradTool may still load, or it may be skipped. After ConradTool updates, check that the plugin's acquisitions are still in the Acquisitions list before you save a project that uses them.
When the plugin is missing
When ConradTool opens a project without the plugin it needs, that plugin's elements are left out, without a message. ConradTool rewrites the project file often: each time you save, add, rename or remove an element, and when you close the project settings, among other times. The first rewrite without the plugin leaves its elements out of the file. Their settings files stay in the project's folder, but the project no longer lists them, and putting the plugin back doesn't return them.
Install the plugin before you open a project that uses it. If you opened one without it, close ConradTool without saving anything, install the plugin, and open the project again. Version Control is no different: ProjectOpenFrom Source Control… and SourceGet latest leave out the elements of a plugin you haven't installed.
Remove a plugin
- In each project that uses it, right-click each of its acquisitions and pick Remove. Give the elements that read them another source, or remove those too.
- Close ConradTool.
- Delete the DLL from
Plugins. - Start ConradTool again.
What a plugin is made of
This part is for the developer who writes the plugin. It assumes you know C# and WPF.
A plugin is a .NET 9 class library for Windows, with WPF, that references ConradFramework. When ConradTool starts, it loads each DLL in Plugins, creates one of every class in it that implements IPlugin and has a public constructor with no parameters, and adds the element types that plugin lists.
Each element type comes in five pieces, the same five that ConradBI's own elements have:
| Piece | Your class | What it does |
|---|---|---|
| Config | Extends BindableBase, and implements IColumnSource and IProcessable |
Holds the settings, which are saved as JSON. Says which columns it offers, and loads the rows |
| Element | Extends ElementBase |
One element in a project: its id, name, type and config |
| Setup | Extends SetupViewModelBase |
What the Add element dialog asks for. The name and its check are built in |
| Editor | Extends EditorViewModelBase, with a WPF view |
What the Editor shows, with undo, save and revert |
| Element type | Implements IElementType |
The factory: the name in the lists, the group, and how an element is made, loaded and edited |
Once per plugin, you add:
- a class that implements
IPlugin, with the plugin's name, its element types and its views; - a
ResourceDictionaryofDataTemplates, which tells ConradTool which view draws each view model.
Three things make an element type an acquisition:
Category.Acquisition, on the element type and on the element. It puts the type in the Acquisitions list, and it is what the plan check looks at.IColumnSourceon the config, so preps and grains can bind to its columns.IProcessableon the config, so processing runs it and writes its rows.
Set up the project
Create a WPF class library that targets net9.0-windows, with UseWPF, the root namespace ConradBI and a reference to ConradFramework. This is the project file of SamplePlugin, ConradBI's example plugin, with the assembly renamed:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<RootNamespace>ConradBI</RootNamespace>
<AssemblyName>PartnerFeedPlugin</AssemblyName>
</PropertyGroup>
<ItemGroup>
<!-- Framework is supplied by the host at runtime; do not copy it into the Plugins folder. -->
<ProjectReference Include="..\ConradFramework\ConradFramework.csproj" Private="false" />
</ItemGroup>
<!-- Deploy this external plugin into the host's Plugins folder so it is discovered at startup. -->
<Target Name="CopyToHostPlugins" AfterTargets="Build">
<PropertyGroup>
<HostPluginsDir>$(MSBuildProjectDirectory)\..\ConradTool\bin\$(Configuration)\net9.0-windows\Plugins\</HostPluginsDir>
</PropertyGroup>
<MakeDir Directories="$(HostPluginsDir)" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(HostPluginsDir)" SkipUnchangedFiles="true" />
</Target>
</Project>Private="false"keepsConradFramework.dllfrom being copied intoPlugins. ConradTool supplies the framework, and a second copy would duplicate the one it has loaded.AssemblyNamenames the DLL,PartnerFeedPlugin.dll, and is part of the pack URI of the plugin's views.- The
CopyToHostPluginsstep copies the built DLL into thePluginsfolder of a ConradTool built from source, so each build is ready to test. - The two paths assume that your project's folder sits beside the
ConradFrameworkandConradToolfolders, asSamplePlugin's does. Change them to match where yours are.
The smallest working acquisition
Here is Partner Feed in full, built the way SamplePlugin is. It loads two fixed rows, so it works before it talks to anything. Once it runs, replace the rows with code that reads your source.
PartnerFeedConfig.cs: what it loads
using ConradBI.Framework.Binding;
using ConradBI.Framework.Mvvm;
using ConradBI.Framework.Processing;
namespace ConradBI.PartnerFeed;
/// <summary>The Partner Feed's settings, the columns it offers, and what it loads when it processes.</summary>
public sealed class PartnerFeedConfig : BindableBase, IColumnSource, IProcessable
{
// The columns the feed loads, each with a friendly type.
private static readonly BindableColumn[] FeedColumns =
{
new("Order ID", FriendlyTypes.Text),
new("Order Date", FriendlyTypes.Date),
new("Product Code", FriendlyTypes.Text),
new("Units", FriendlyTypes.Number),
new("Unit Price", FriendlyTypes.Decimal),
new("Channel", FriendlyTypes.Text),
};
// A field the user fills in: typed, or taken from an environment variable.
public BoundString Channel { get; set; } = new("Partner");
// The names other elements can bind to.
public IReadOnlyList<string> GetBindableColumns() => FeedColumns.Select(c => c.Name).ToList();
// The same columns with their types, for the Schema tab and the elements built on this one.
public IReadOnlyList<BindableColumn> GetBindableSchema(IColumnSourceContext context) => FeedColumns;
public ProcessSource CreateSource(IProcessingContext context)
{
var channel = Resolve(Channel, context.EnvironmentValues);
// Two fixed rows: the smallest acquisition that works. Read the partner's system here instead.
var rows = new List<object?[]>
{
new object?[] { "P-5001", new DateTime(2026, 10, 29), "A-1020", 4, 24.50m, channel },
new object?[] { "P-5002", new DateTime(2026, 10, 30), "C-4100", 1, 149.00m, channel },
};
var columns = FeedColumns.Select(c => new ProcessColumn(c.Name, friendlyType: c.Type)).ToList();
var names = FeedColumns.Select(c => c.Name).ToList();
// Name the target after the element, never after what it reads.
return new ProcessSource(context.ElementName, columns, new ListDataReader(names, rows));
}
// Processing has no editor open, so a field bound to a variable takes the run's value for it.
private static string Resolve(BoundString field, IReadOnlyDictionary<string, string> values)
=> field.Source == FieldSource.Environment
&& !string.IsNullOrEmpty(field.VariableName)
&& values.TryGetValue(field.VariableName, out var value)
? value
: field.LiteralValue;
}GetBindableColumnslists the names other elements bind to.GetBindableSchemagives each one a type fromFriendlyTypes. The Schema tab shows them, and the elements built on this one read the types.CreateSourceis what processing calls. It returns aProcessSource: the table to write, named after the element; the columns, each with its friendly type; and anIDataReaderover the rows.ListDataReaderserves rows you hold in memory.- Processing runs with no editor open, so
Resolvetakes the value of a field bound to a variable fromcontext.EnvironmentValues, the values of the run's environment. ConradBI's own acquisitions use a helper in the core plugin for this, and a plugin references onlyConradFramework. - When the source fails, throw an exception with a plain message. Status shows "Failed: " and your message, and the elements built on this one fail too.
- To say something without failing, such as a file that wasn't there, return the source with notes:
new ProcessSource(…) { Notes = notes }. They show after Complete in Status, and in the run's log.
PartnerFeedElement.cs: the element and its setup
using ConradBI.Framework.Model;
using ConradBI.Framework.Plugins;
namespace ConradBI.PartnerFeed;
/// <summary>One Partner Feed in a project.</summary>
public sealed class PartnerFeedElement : ElementBase
{
public const string TypeIdValue = "Partner.FeedAcquisition";
public PartnerFeedElement(string name, Guid? elementId = null, PartnerFeedConfig? config = null)
: base(TypeIdValue, Category.Acquisition, name, elementId)
{
TypedConfig = config ?? new PartnerFeedConfig();
}
public PartnerFeedConfig TypedConfig { get; }
public override object Config => TypedConfig;
}
/// <summary>What the Add element dialog asks for: the name only.</summary>
public sealed class PartnerFeedSetupViewModel : SetupViewModelBase
{
}TypeIdValueis stored in the project file with every Partner Feed. Keep it the same in every version, or projects made with an older version lose their Partner Feeds.- The setup asks only for a name, so it needs no view of its own. For a setup without a
DataTemplate, the Add element dialog shows its plain Name box.
PartnerFeedElementType.cs: the factory
using System.Text.Json;
using ConradBI.Framework.Model;
using ConradBI.Framework.Plugins;
using ConradBI.Framework.Serialization;
namespace ConradBI.PartnerFeed;
/// <summary>The Partner Feed as a kind of element: its name in the menus, its group, and how it is made.</summary>
public sealed class PartnerFeedElementType : IElementType
{
public string TypeId => PartnerFeedElement.TypeIdValue;
public string DisplayName => "Partner Feed";
public Category Category => Category.Acquisition;
public bool UserCreatable => true;
public ISetupViewModel CreateSetupViewModel() => new PartnerFeedSetupViewModel();
public IElement CreateElement(ISetupViewModel setup) => new PartnerFeedElement(setup.Name);
public IElement LoadElement(string name, Guid elementId, JsonElement config)
{
var typed = config.Deserialize<PartnerFeedConfig>(ConradJson.Options) ?? new PartnerFeedConfig();
return new PartnerFeedElement(name, elementId, typed);
}
public IEditorViewModel CreateEditorViewModel(IElement element, IEditorContext context)
=> new PartnerFeedEditorViewModel(element, context);
}DisplayNameis the kind's name on the screen: the list says Add Partner Feed, the tree's tooltip says Partner Feed, and the plan's refusal starts with it.UserCreatableputs the type in the Acquisitions list.LoadElementreads the saved JSON withConradJson.Options, the options ConradTool writes it with.
PartnerFeedEditorViewModel.cs: the editor
using System.Text.Json;
using ConradBI.Framework.Model;
using ConradBI.Framework.Plugins;
using ConradBI.Framework.Serialization;
namespace ConradBI.PartnerFeed;
/// <summary>The Partner Feed's editor: one field, wired for undo and environment variables by Track.</summary>
public sealed class PartnerFeedEditorViewModel : EditorViewModelBase
{
public PartnerFeedEditorViewModel(IElement element, IEditorContext context)
: base(element, context)
{
Config = (PartnerFeedConfig)element.Config;
Track(Config);
}
public PartnerFeedConfig Config { get; }
public override object GetConfigForSave() => Config;
public override void Revert(JsonElement savedConfig)
{
var restored = savedConfig.Deserialize<PartnerFeedConfig>(ConradJson.Options) ?? new PartnerFeedConfig();
using (Undo.Suspended())
{
Config.Channel.CopyFrom(restored.Channel);
}
Undo.Reset();
}
}Track(Config)wires the whole config for undo, and gives its bound fields the project's environment. Call it once, after the config is set.GetConfigForSavereturns the live config. ConradTool saves it as JSON in the project's folder.Revertputs each field back from the saved JSON:CopyFromfor a bound field, insideUndo.Suspended(), thenUndo.Reset().
PartnerFeedEditorView.xaml: the editor's view
<UserControl x:Class="ConradBI.PartnerFeed.PartnerFeedEditorView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:fw="clr-namespace:ConradBI.Framework.Controls;assembly=ConradFramework">
<StackPanel Margin="8">
<TextBlock Text="Channel" Margin="0,0,0,4" />
<fw:BoundFieldControl DataContext="{Binding Config.Channel}" />
<TextBlock Margin="0,12,0,0" Foreground="{DynamicResource Theme.MutedText}" TextWrapping="Wrap"
Text="Loads the partner's orders. Every row gets the channel above." />
</StackPanel>
</UserControl>using System.Windows.Controls;
namespace ConradBI.PartnerFeed;
public partial class PartnerFeedEditorView : UserControl
{
public PartnerFeedEditorView()
{
InitializeComponent();
}
}BoundFieldControl draws a text box with the globe icon that binds it to a variable. Colors come from the theme, such as Theme.MutedText, so the view reads the same in dark mode as in light. ConradTool puts the view under its own Name box, and scrolls the editor when it is taller than the space it has.
The views and the entry point
Resources\PartnerFeedPluginResources.xaml maps the editor's view model to its view:
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:feed="clr-namespace:ConradBI.PartnerFeed">
<DataTemplate DataType="{x:Type feed:PartnerFeedEditorViewModel}">
<feed:PartnerFeedEditorView />
</DataTemplate>
</ResourceDictionary>PartnerFeedPlugin.cs is what ConradTool looks for in the DLL:
using System.Windows;
using ConradBI.Framework.Plugins;
namespace ConradBI.PartnerFeed;
/// <summary>The plugin's entry point: ConradTool finds it in the DLL and reads its element types and views.</summary>
public sealed class PartnerFeedPlugin : IPlugin
{
public string Name => "Partner Feed";
public IEnumerable<IElementType> ElementTypes { get; } = new IElementType[]
{
new PartnerFeedElementType(),
};
public IEnumerable<ResourceDictionary> ResourceDictionaries
{
get
{
yield return new ResourceDictionary
{
Source = new Uri(
"pack://application:,,,/PartnerFeedPlugin;component/Resources/PartnerFeedPluginResources.xaml",
UriKind.Absolute),
};
}
}
}The pack URI is the assembly's name, PartnerFeedPlugin, then the dictionary's path in the project. A .xaml file in a WPF project is compiled into the DLL, and that is where the URI points.
Tip: Check the pack URI against
AssemblyNameand the dictionary's folder. If it points at nothing, ConradTool can't start while the plugin is inPlugins. It stops with "ConradBI Tool couldn't start:" and "Cannot locate resource".
Build and test it
- Build the project in Visual Studio, or run
dotnet buildin its folder. The DLL lands inbin\Debug\net9.0-windows, and the copy step puts it in..\ConradTool\bin\Debug\net9.0-windows\Plugins. - Start that ConradTool and sign in. Or copy the DLL into your installed ConradTool's
Pluginsfolder, as in Install a plugin, and start that one. Open a project to test with, in Developer Mode. - Click the + on the Acquisitions row and pick Add Partner Feed. Name it
Partner Ordersand click OK. - Check the editor. It shows Name, then Channel holding
Partner, with a globe icon at its right. - Save, then click Process current. Status turns to Complete, Rows shows 2, and the Data tab shows two orders with Partner under Channel.
- Type
Marketplacein Channel and save. Close ConradTool, start it again and open the project. Channel still readsMarketplace, and processing puts it on both rows. - Bind Channel to a new variable with its globe icon, as in Your first variable. Type
Web Partnerin Channel: with the field bound, that changes the variable's value. Process again, and the rows read Web Partner. If they still read Marketplace,Resolveisn't reading the variable. - To see a failure, add
throw new InvalidOperationException("The partner feed didn't answer.");as the first line ofCreateSource, build, and process. Status reads "Failed: The partner feed didn't answer."
Tip: Close ConradTool before each build. It holds the DLL open, so the copy step can't replace it, and it reads plugins only as it starts anyway.
To hand the plugin over, build it with dotnet build -c Release and give people one file: bin\Release\net9.0-windows\PartnerFeedPlugin.dll. Leave out the other files in that folder. ConradTool has its own copy of the framework.
The rules
The rules ConradBI sets for plugins, and why:
| Rule | Why |
|---|---|
Reference only ConradFramework, with Private="false" |
ConradTool supplies it when the plugin runs. The core plugin's pieces aren't part of what a plugin builds on |
Target net9.0-windows |
ConradTool 1.2.59 runs on .NET 9 |
Keep the element type's TypeId the same in every version |
Projects store it. An element whose type no plugin provides is left out when its project opens |
Name the table after the element, with context.ElementName |
Element names are unique in a project, so no two elements share a table |
Give each ProcessColumn a friendly type |
SQL Server storage makes typed columns from it. Without one, the column is stored as varchar(max) |
Build the config on BindableBase, with SetProperty, public get and set properties, and ObservableCollection for lists |
System.Text.Json saves and loads it, and the editor's undo and unsaved mark follow it |
Save and load the config with ConradJson.Options |
They match what ConradTool writes |
Call Track(Config) once, after the config is set |
It wires undo and the environment for every field in the config |
In Revert, copy every member back |
If one is missed, ConradTool puts the saved config back whole and builds the editor again |
Subscribe to the config's events through Hook(...), or undo them in an OnEditorClosed() override that calls base |
A bare += keeps a closed editor alive, and reacting, for as long as the project is open |
| Keep view state and caches out of the saved config | Anything the editor writes into the config by itself counts as an unsaved change |
| Build the editor from whatever the config holds | Ask Conrad can change an element's settings without its editor, and ConradTool then builds the editor again |
| Never save a secret, such as a password, in the config | The config is a plain JSON file in the project's folder. Keep secrets in the editor's memory only |
Don't touch the screen from CreateSource |
Processing calls it on a background thread |
Take colors from the theme, such as {DynamicResource Theme.MutedText} |
A color written into the view stays the same in dark mode |
Give an editor's own ScrollViewer fw:WheelScroll.WholeView="True" |
The wheel then scrolls the list under the pointer first, and the page once the list is at its edge |
Use fw:ClickCheckBoxColumn for a check-box column in a grid |
The stock DataGridCheckBoxColumn needs two clicks to tick a box |
What a plugin can't do
- Run on a processor service. A service knows only ConradBI's own kinds of element, so a project that holds a custom acquisition can't run there, or on a schedule.
- Load while ConradTool runs. ConradTool reads its plugins as it starts, so a new or changed DLL needs a restart.
- Change ConradBI's own elements. A plugin adds kinds of element. It can't alter the built-in ones, and it can't borrow their parts. The File Acquisition's column list, with Determine types, lives in the core plugin, which a plugin doesn't reference.
- Draw a visual on a canvas or in the viewers. A plugin can add other kinds of element than acquisitions, but in 1.2.59 a visual from a plugin shows only a line of text on an Interactive Report canvas, and the Desktop and Web Viewers don't draw it. It can't read a fact either: the Visuals Engine that serves the built-in visuals is part of the core plugin.
When something goes wrong
| What you see | What to do |
|---|---|
| Add Partner Feed isn't in the Acquisitions list | ConradTool reads Plugins only as it starts, so close it and start it again. Check that the DLL is in Plugins itself, beside ConradTool.exe. A plugin that can't load is skipped without a message: ask its developer for a build for your ConradTool |
| "Partner Feed is a custom acquisition. Custom Acquisitions isn't included in your plan. See your account page at conradbi.com to add it." | Your plan doesn't include Custom Acquisitions, which comes with Enterprise. Projects that already hold one still open and process |
| ConradTool won't start: "ConradBI Tool couldn't start:", then "Cannot locate resource …" | A plugin's views can't be found. Move its DLL out of Plugins, start ConradTool, and ask its developer to check the pack URI |
| A project opens without its custom acquisitions | The plugin isn't installed on this PC. Close ConradTool without saving, install the plugin, and open the project again. See When the plugin is missing |
| Status reads Failed, with a message no guide mentions | It is the plugin's own message about its source. Ask its developer |
| A schedule loads nothing from the project | A processor service can't run a project that holds a custom acquisition. Process the project in ConradTool |
The editor shows a long name, such as ConradBI.PartnerFeed.PartnerFeedEditorViewModel, instead of fields |
The plugin has no DataTemplate for its editor. Its developer adds one to the plugin's resource dictionary |
The build can't copy the DLL into Plugins |
ConradTool is running and holds the DLL open. Close ConradTool and build again |
| A setting is back to its old value after the project is reopened | It isn't saved. Make it a public property with get and set |
Reference
Where things are
| What | Where |
|---|---|
| Plugins, for an installed ConradTool | AppData\Local\ConradBI\Tool\Plugins, in your Windows profile |
| Plugins, for a ConradTool built from source | ConradTool\bin\Debug\net9.0-windows\Plugins, beside the built ConradTool.exe |
| A plugin's built DLL | bin\Debug\net9.0-windows or bin\Release\net9.0-windows, in the plugin's project folder |
| ConradTool's error log | AppData\Roaming\ConradBI\tool-errors.log |
The contract
| Type | Namespace | What it is |
|---|---|---|
IPlugin |
ConradBI.Framework.Plugins |
The entry point: Name, ElementTypes and ResourceDictionaries |
IElementType |
ConradBI.Framework.Plugins |
TypeId, DisplayName, Category, UserCreatable, and the four factory methods |
SetupViewModelBase |
ConradBI.Framework.Plugins |
The setup, with Name and its check |
EditorViewModelBase |
ConradBI.Framework.Plugins |
The editor: Track, Hook, Undo, GetConfigForSave and Revert |
ElementBase, Category |
ConradBI.Framework.Model |
The element, and the group it belongs to |
BindableBase |
ConradBI.Framework.Mvvm |
The config's base class, with SetProperty |
IColumnSource, BindableColumn, FriendlyTypes |
ConradBI.Framework.Binding |
The columns on offer, with their types |
BoundString, BoundBool, BoundChoice |
ConradBI.Framework.Binding |
Fields that hold a value or an environment variable |
IProcessable, IProcessingContext, ProcessSource, ProcessColumn, ListDataReader |
ConradBI.Framework.Processing |
Loading the rows |
ConradJson |
ConradBI.Framework.Serialization |
ConradJson.Options, for saving and loading |
BoundFieldControl |
ConradBI.Framework.Controls |
A bound field's text box, with its globe icon |
Friendly types
| In code | On the screen |
|---|---|
FriendlyTypes.Number, FriendlyTypes.BigNumber |
Number, Big Number |
FriendlyTypes.Decimal |
Decimal |
FriendlyTypes.Text, FriendlyTypes.Paragraph, FriendlyTypes.Book |
Text, Paragraph, Book |
FriendlyTypes.Date, FriendlyTypes.DateAndTime |
Date, Date & Time |
FriendlyTypes.TrueOrFalse |
True or False |
Data types says what each one holds.
Missing something?
Tell us what you were trying to do and what this guide didn't answer. We update it with every release.
Write to usWhat changed in this guide
- November 21, 2026: First edition, written for ConradBI 1.2.59.
