Skip to main content
Solved

Business Event -> trigger Action :Email Shipment" on Shipment Confirmed


rcreasy
Varsity I
Forum|alt.badge.img

I am trying to automate the send of Shipment Confirmation emails when a shipment is confirmed.

I have a business event set up - it triggers on the shipment status change to “Confirmed”. So, that part works.
I have an Action Execution set up as the subscriber - this runs but fails with the error “Object reference not set to an instance of an object”

How to I track down the cause of this error?
Are there any tutorials on how to accomplish what I am attempting?
Is there a better way to accomplish what I am attempting?

Best answer by ChandraM

Hi @rcreasy  and @meagan59 , Try the below Business Event steps with Record Change instead of the Action.

  • Create a Generic Inquiry to Show all the Confirmed Shipments

 

Generic Inquiry output

  • Create a Business Event for Record Change as shown below:
  • Trigger Conditions


​​​​​​
  • Subscribe Email Notification
  • Email Notification configurations

 

 

  • Confirming a Shipment will trigger the email, as show in the ”All Emails” screen.

 

Please wait. will shortly upload the GI , and Business Events here.

View original
Did this topic help you find an answer to your question?

9 replies

meagan59
Varsity I
Forum|alt.badge.img
  • 37 replies
  • May 2, 2024

@rcreasy I am running into the same error when trying to use the trigger by action to prepare invoice for confirmed shipments. I was hoping someone had supplied an answer, but no luck.

Did you get the error resolved?


Forum|alt.badge.img+8
  • Semi-Pro I
  • 715 replies
  • Answer
  • May 2, 2024

Hi @rcreasy  and @meagan59 , Try the below Business Event steps with Record Change instead of the Action.

  • Create a Generic Inquiry to Show all the Confirmed Shipments

 

Generic Inquiry output

  • Create a Business Event for Record Change as shown below:
  • Trigger Conditions


​​​​​​
  • Subscribe Email Notification
  • Email Notification configurations

 

 

  • Confirming a Shipment will trigger the email, as show in the ”All Emails” screen.

 

Please wait. will shortly upload the GI , and Business Events here.


Forum|alt.badge.img+8
  • Semi-Pro I
  • 715 replies
  • May 2, 2024

Hi @rcreasy and @meagan59 Please find the attached GI and Business Events that you can import to your Generic Inquiry and Business Events screens respectively using the “Import from XML” options.
Kindly verify in a local instance before trying on production.

ConfirmedShipments (1).xml - Generic Inquiry

SendMailonShipConfirm.xml - Business Event

Shipment Confirmation.xml - Email Template

 


Forum|alt.badge.img+8
  • Semi-Pro I
  • 715 replies
  • May 2, 2024

Hi @rcreasy and @meagan59 Kindly verify and let us know for any additional queries here.


meagan59
Varsity I
Forum|alt.badge.img
  • 37 replies
  • May 3, 2024

I appreciate the information; however, I am trying to ‘Prepare Invoice’ for the confirmed shipments. I tried updating the Business Event to use a GI and trigger on record change.

The Subscriber is an ‘Action Execution’ to run the prepare invoice action on the shipment screen. I am still getting the same error when the BE triggers.

Any suggestions or do I need to submit a support case?

 

 

 


rcreasy
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • 73 replies
  • May 3, 2024

@ChandraM Thank you. This process worked for me.

@meagan59 It looks like you are triggering on the creation of a shipment rather than on the shipment confirmation. Also, since you are doing something a little different than my original post, you may want to start a new thread to get more relevant attention.


Forum|alt.badge.img+8
  • Semi-Pro I
  • 715 replies
  • May 3, 2024

Thanks @rcreasy for the confirmation!

@meagan59 Please start a new post for Prepare Invoice on which I can review and keep you posted. This will help the community members to get the solutions on specific topics.

 

Thanks


Forum|alt.badge.img
  • Semi-Pro II
  • 122 replies
  • December 17, 2024

Hi ​@meagan59 ! Did you find a solution to your issue? If so, can you share please? I am trying to learn more about Action Execution in Business Events and how it works. It would be nice to see a working example. Thanks! 


meagan59
Varsity I
Forum|alt.badge.img
  • 37 replies
  • December 17, 2024

@jzhu Sorry, we were not able to get the BE to trigger on Action Execution. We went back to using a GI.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings