Hook into deny event on approval process

Hello, we would like to be able to hook into the "Deny" event on the approval process, does your software expose that event?

Have more questions? Submit a request

6 Comments

  • 0
    Avatar
    Matthew McBride

    The Q4 2008 release of ExCM will expose the OnDenied and OnApproved approval events.

    Jeremy Luerkens
    Manager, Software Production
    SharePoint Solutions
  • 0
    Avatar
    Matthew McBride

    I just checked the latest release - I don't see that functionality. Is it still a planned feature? Also where can I find documentation about the User Automation Overview features - how do I set the policies?

  • 0
    Avatar
    Matthew McBride

    The latest release does support an OnDenied and OnApproved event on the RegistrationApproval.aspx page or the RegistrationApprovalPage class. All of the application events still need to be moved over to our new documentation site. We are working to get this done. Hopefully, it will be updated by this Friday. Here are the method signatures...

    public void OnDenied()
    public void OnApproved()

    You can use the following methods to get approval data...

    public MembershipUser RequestedUser
    public string RequestedUserName
    public ApprovalStatus RequestedApprovalStatus

    Regarding the User Automation feature, here is the documentation....

    (User Automation Overview)
    http://help.sharepointsolutions.com/products/excm/webframe.html?User_Automation_Overview.html

    You can set the policies by using the 'stsadm -o userautomation-setpolicies' command.

  • 0
    Avatar
    Matthew McBride

    How do we reference the DLL's in the new version? I don't see them installed on our server now with the new version - is this because of the wsp install?

  • 0
    Avatar
    Matthew McBride

    Sorry - i justrealized I can extract the DLLS from the wsp file by using a zip program.

  • 0
    Avatar
    Matthew McBride

    The wsp file is a .CAB file. You can rename the file with a .CAB extension and extract the DLLs. However, I think it it much easier to just override the methods directly in the .aspx files. I would recommend making a backup copy of the ExCM .aspx files before you begin modifying them. Just include the method in the .aspx file inside a <script /> tag.

    <script runat="server">

    /// <summary>
    /// Define on approved event
    /// </summary>
    /// <param></param>
    protected override void OnApproved()
    {
        // Do something
    }


    </script>

    Of course, extracting the DLL and making a seperate base class can be nice if you are using a source control environment.

Please sign in to leave a comment.