Microsoft Dynamics Forums Homepage

Forum Home Forum Home > Microsoft Dynamics GP (Great Plains) > GP - Customization and Integration
  New Posts New Posts RSS Feed - Dynamic GP Extension assembly
  FAQ FAQ  Forum Search   Register Register  Login Login

Dynamic GP Extension assembly

 Post Reply Post Reply
dleary View Drop Down Member Member

Joined: April 15 2013
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote dleary Quote  Post ReplyReply Direct Link To This Post Topic: Dynamic GP Extension assembly
    Posted: April 15 2013 at 2:10pm
I'm in the process of creating an extension assembly for Dynamic GP2010 that will monitor the "Created" event for newly created SO's. I have read all the documentation regarding this on MSDN, but i'm falling short a few details... my extension assembly looks like this:

namespace MyGPService

  public static class GPExtensions
    //private static Connection connection;
    public static void OnRecordCreated(object sender, BusinessObjectEventArgs e)
        Customer customer;
        Extension CustomerEmailExtension = new Extension();
        //get current cust connection
        //connection = Connection.GetInstance();
        if (e.BusinessObject.GetType() == typeof(Customer))
          customer = (Customer)e.BusinessObject;
          // Look at the Extension list passed along
          foreach (Extension ext in customer.Extensions)
      catch (Exception ex)

my BusinessObjectFile.config file has the following entry:

    <Key xsi:type="xsd:string">Microsoft.Dynamics.GP.Customer</Key>
    <Value xsi:type="BusinessObjectConfiguration">

This event of course isn't firing as planned (i originally had some logging code i removed for this post), and i understand why but don't understand how to fix it?
This entry obviously wants to monitor "Customer" object, but to what extent? if a customer is created will this fire?

I want to monitor for sales order creation, am i still looking to monitor event handler type: Microsoft.Dynamics.Common.BusinessObjectEventHandler.

Any direction would be greatly appreciated.

Back to Top
Sponsored Links

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Copyright 2013 All rights reserved. is an independent non-Microsoft website.
Email: contact AT microsoftdynamicsforums DOT com