Custom File - Own classes

Using the below as described in Docs always raised errors and didn’t work.

Example 3

Add your own class such as custom list action to the project:

  • File Name - Use a unique file name with file extension .cs and the file name MUST be same as the class name, e.g. MyCustomAction.cs for your class MyCustomAction.
  • Include Common Files - DISABLE IT. Your class is standalone.
  • Caption - NOT used.
  • Path - Set the path as “Models/src/” (no quotes).
  • Content - Enter your whole class, note that you should use the special placeholder {ProjectNamespace} as your namespace and {ProjectClassName} as the partial class name, e.g.
namespace {ProjectNamespace}; // NOTE: Make sure you use {ProjectNamespace}

// Partial class
public partial class {ProjectClassName} // NOTE: Make sure you use {ProjectClassName}
{
    public class MyCustomAction : ListAction
    {
        // Constructor
        public ListAction() : base(

It only worked when adding ‘.Models’ after the place holder as follows:

namespace {ProjectNamespace}.Models; // NOTE: Make sure you use {ProjectNamespace}

// Partial class
public partial class {ProjectClassName} // NOTE: Make sure you use {ProjectClassName}
{
    public class MyCustomAction : ListAction
    {
        // Constructor
        public ListAction() : base(

The .Models is required if you are not using fully qualified namespace. It depends on where (under which namespace) you use the class.

1 Like