Automation Event Trigger

For users or potential users.

Automation Event Trigger

Postby pid_user » Mon Dec 17, 2018 5: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.
pid_user
 
Posts: 43
Joined: Thu Jun 04, 2015 9:31 am

Re: Automation Event Trigger

Postby cmcgehee » Mon Dec 17, 2018 9: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
User avatar
cmcgehee
 
Posts: 599
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Automation Event Trigger

Postby pid_user » Mon Jan 07, 2019 1: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
pid_user
 
Posts: 43
Joined: Thu Jun 04, 2015 9:31 am

Re: Automation Event Trigger

Postby cmcgehee » Mon Jan 07, 2019 9: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: 599
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Automation Event Trigger

Postby cmcgehee » Mon Jan 07, 2019 9: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
User avatar
cmcgehee
 
Posts: 599
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Automation Event Trigger

Postby pid_user » Mon Jan 07, 2019 9: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: 43
Joined: Thu Jun 04, 2015 9:31 am

Re: Automation Event Trigger

Postby pid_user » Mon Jan 07, 2019 11:07 pm

Also, with which version of OD you are integrating the hook method?
pid_user
 
Posts: 43
Joined: Thu Jun 04, 2015 9:31 am

Re: Automation Event Trigger

Postby cmcgehee » Tue Jan 08, 2019 8: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: 599
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Automation Event Trigger

Postby cmcgehee » Wed Jan 09, 2019 8: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
cmcgehee
 
Posts: 599
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Automation Event Trigger

Postby mopensoft » Wed Jan 09, 2019 10:15 pm

Does it change impact the hook created from this post http://opendentalsoft.com/forum/viewtopic.php?f=3&t=6831?
User avatar
mopensoft
 
Posts: 138
Joined: Tue Dec 04, 2012 4:33 pm
Location: Melbourne, Australia

Re: Automation Event Trigger

Postby cmcgehee » Thu Jan 10, 2019 2: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
User avatar
cmcgehee
 
Posts: 599
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon


Return to Main Forum

Who is online

Users browsing this forum: Google [Bot] and 7 guests