Automation Event Trigger

For users or potential users.
Post Reply
pid_user
Posts: 67
Joined: Thu Jun 04, 2015 9:31 am

Automation Event Trigger

Post by pid_user » Mon Dec 17, 2018 4:40 am

We are not able to override hook "AutomationL.Trigger_CreateCommlog_start" event for automating our code by new patient's new appt creation(CreateApptNewPat). Please help us to achieve this.
Thank you.

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Automation Event Trigger

Post by cmcgehee » Mon Dec 17, 2018 8:14 am

Sure, are you trying to override only the Create Commlog action when creating a new patient appointment, or are you trying to override all actions from the new patient appointment trigger?
Chris McGehee
Open Dental Software
http://www.opendental.com

pid_user
Posts: 67
Joined: Thu Jun 04, 2015 9:31 am

Re: Automation Event Trigger

Post by pid_user » Mon Jan 07, 2019 12:05 am

I am overriding only the CreateCommlog action.

Following two are the main problems we are facing -

* On CreateCommlog event trigger ,which event is triggered(newPatNewAppt/scheduled appt/completed appt) is not known.

* Also, the parameters received such as patnum, aptnum etc on event trigger, AptNum is 0 in case of scheduled and completed appointment and correct aptnum is received only in case of newPatNewApt.

Please resolve the above issues.

We are looking forward for the solution.

Thank you

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Automation Event Trigger

Post by cmcgehee » Mon Jan 07, 2019 8:01 am

We can create a new hook that includes the trigger type for you. Are there any other parameters you would like us to pass in to the hook?

I'll look into why the AptNum is 0 in certain cases.
Chris McGehee
Open Dental Software
http://www.opendental.com

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Automation Event Trigger

Post by cmcgehee » Mon Jan 07, 2019 8:36 am

For each time that I triggered an automation event for the CreateAppt and CreateApptNewPat triggers, the patnum and the aptnum were passed in properly. Can you detail the steps that you took where the aptnum was 0?
Chris McGehee
Open Dental Software
http://www.opendental.com

pid_user
Posts: 67
Joined: Thu Jun 04, 2015 9:31 am

Re: Automation Event Trigger

Post by pid_user » Mon Jan 07, 2019 8:58 pm

Thanks , If you can pass triggertype in parameteres.
And yes i am getting zero AptNum in scheduled and complete procedcure event.

pid_user
Posts: 67
Joined: Thu Jun 04, 2015 9:31 am

Re: Automation Event Trigger

Post by pid_user » Mon Jan 07, 2019 10:07 pm

Also, with which version of OD you are integrating the hook method?

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Automation Event Trigger

Post by cmcgehee » Tue Jan 08, 2019 7:43 am

We will implement the hook in 18.4.

The ScheduledProcedure and CompletedProcedure are not designed to pass in the AptNum since they are concerned directly with procedures, not appointments.
Chris McGehee
Open Dental Software
http://www.opendental.com

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Automation Event Trigger

Post by cmcgehee » Wed Jan 09, 2019 7:47 am

I have added trigger type to the existing AutomationL.Trigger_CreateCommlog_start hook. It will be available in 18.4.14.
Chris McGehee
Open Dental Software
http://www.opendental.com

User avatar
mopensoft
Posts: 146
Joined: Tue Dec 04, 2012 3:33 pm
Location: Melbourne, Australia
Contact:

Re: Automation Event Trigger

Post by mopensoft » Wed Jan 09, 2019 9:15 pm

Does it change impact the hook created from this post viewtopic.php?f=3&t=6831?

User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Automation Event Trigger

Post by cmcgehee » Thu Jan 10, 2019 1:39 pm

It will not. Our plugin system is designed so that we can add new parameters to an existing hook without affecting other developers who are already using that hook.
Chris McGehee
Open Dental Software
http://www.opendental.com

Post Reply