Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Using the Dexterity Trigger Technique

(0) ShareShare
ReportReport
Posted on by 505

Hi All,

I am trying to write customization on HR module. HR module already has functionality to filter employees based on Department and Division. My requirement is to add some more filter to this and filter the employees based on these. I found from HR source code that there is a global procedure Employeefilter which is taking care of this filter for department and division. So i wrote another procedure very similar to EmployeeFilter.

Now my problem is how to call this newly created procedure. My assumption was i can write a procedure trigger to call my procedure on EmployeeFilter, but how do I get values to parameters which is same as parameters for EmployeeFilter. Also based on the output parameter i need to reject record is value is false. The only way i know is write a trigger on all the places employeefilter is getting called, but it is very time consuming and not sure whether i can write on all the places. I found nearly 120 places EmployeeFilter is getting called inside HR module.

I also read "Using the Dexterity Three Trigger Technique" written by David. But i cant use that as there is no function or procedure getting called inside EmployeeFilter.

Thanks in advance,

Shyam.

*This post is locked for comments

  • Shyam Nath Profile Picture
    Shyam Nath 505 on at
    Re: Using the Dexterity Trigger Technique

    Thanks Siva. It worked.

    Cheers,

    Shyam.

  • Verified answer
    veeyeskay Profile Picture
    veeyeskay on at
    Re: Using the Dexterity Trigger Technique

    Shyam

    You can create a Procedure trigger and use the same parameters as the original procedure that you are triggering on, in your trigger procedure too.

    Check the Dexterity Help for the Trigger_RegisterProcedure() reference to get more details on this.

    Let us know if you need further assistance.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans