Skip to main content

Here is my event action that refuses to work in our production environment: 

 

Here is the custom event I created:

I am unable to get it working. I tried changing it to “new objects created” but wasnt able to get it to work either. i want when a new user adds a voucher with the type “MV” for an automatic email to be sent to a certain user group. This event is working in our other environments but not production. It doesnt even create an application message to show me if it failed to run it just doenst even attempt to run,. 

 

Here is the previous version of the event I had which also did not work:

 

 

Here is my event action that refuses to work in our production environment: 

 

Here is the custom event I created:

I am unable to get it working. I tried changing it to “new objects created” but wasnt able to get it to work either. i want when a new user adds a voucher with the type “MV” for an automatic email to be sent to a certain user group. This event is working in our other environments but not production. It doesnt even create an application message to show me if it failed to run it just doenst even attempt to run,. 

 

Here is the previous version of the event I had which also did not work:

 

 

 @William  if you have it in other non prod environment, why don’t you try to export and import that event from other environment to PROD ? i think that is the most productive and safest way to get this event into prod.

if it still not working can you attach the exported xml file here so I can have a look into it .

 

kind Regards!

Niyomal.


Sorry I should have specified further. These were all exported and imported into our live environment so there wouldnt be any discrepancy. attached are the xml’s with the emails removed from the event action for obvious security reasons


@William  i think the issue is with the condition that you have  in the event,  can you change the condition parameters to check the row status instead of Voucher NO 

 

 

Kind Regards!
Niyomal.


I have changed it to where only the “rowstate” is in the changed attributes portion of the event:

I will wait until a new entry is posted soon to the voucher by a user and see if it works!


I have changed it to where only the “rowstate” is in the changed attributes portion of the event:

I will wait until a new entry is posted soon to the voucher by a user and see if it works!

awesome, based on the setup, this email will be sent out as soon as the row state is changed  and if the voucher type MV voucher is created with the new row state is set “AwaitingApproval”. hope this is the intended behavior ?


Well the intention is when a user causes a new voucher transaction in this specific voucher type MV and it posts to the voucher_tab table, the only rowstate that the email notification should be recognizing is “awaitingapproval.” And only want it running for this specific voucher type. 

 

These entries from yesterday in the voucher_tab table were created but before i had posted my question in here my event was not recognizing them and sending out an email:

 


Well the intention is when a user causes a new voucher transaction in this specific voucher type MV and it posts to the voucher_tab table, the only rowstate that the email notification should be recognizing is “awaitingapproval.” And only want it running for this specific voucher type. 

 

These entries from yesterday in the voucher_tab table were created but before i had posted my question in here my event was not recognizing them and sending out an email:

 

@William  in that case you can remove the below condition from the event 

 

what happen is event will trigger each time a row has been created in voucher tab, but even action will only execute when the voucher type is MV and status is awaiting approval  🙂.

this should do the trick, so please remove the row state from event :)


That seemed to work and process an email..but it is sending as a negative vouch number. almost as if its sending me a temporary placeholder when i create a new voucher entry?

 

 


That seemed to work and process an email..but it is sending as a negative vouch number. almost as if its sending me a temporary placeholder when i create a new voucher entry?

 

 

IS this the same voucher number that you in the front end ? 


Reply