Classes and interfaces

In this section, each class and interface of the concept will be explained in details.

Kipon.Xrm.ActionTarget

Action target is the base interface for request generated actions bound to an entity

If you registre custom actions to be generated by the crmsvcutil, a request interface and and output instance class will be generated for each action


namespace Kipon.PluginExample.Plugins
{
    public class AccountCountContactsPlugin : Kipon.Xrm.BasePlugin
    {
        public Actions.AccountCountContactsResponse 
            OnPostkipon_AccountCountContacts(Actions.IAccountCountContactsRequest request)
        {
            return new Actions.AccountCountContactsResponse 
            { 
                Count = 10, 
                AMoney = new Microsoft.Xrm.Sdk.Money(500M) 
            };
        }
    }
}

Take a look at above plugin that listen to the POST event of the custom action kipon_AccountCountContacts. The plugin is taken a Actions.IAccountCountContactsRequest as first parameter. It is an interface generated by the Kipon.Solid.Plugin crmsvcutil extension, and it represents the input parameter in a stronly typed manner for the custom action. This interface is actually extending and implementing the interface Kipon.Xrm.ActionTarget<Entities.Account>.

You do not need to thing to much about this interface. All implementations is normally generated by extensions to crmsvcutil.

© Kipon ApS 2020, 2021, 2022, 2023. All content on the page is the property of Kipon ApS. Any republish or copy of this content is a violation. The content of this site is NOT open source, and cannot be copied, republished or used in any context without explcit permission from the owner.