I’ve been struggling with creating business events to trigger an email, and I’ve come to the conclusion that building a GI specific to the email is probably my best bet, but unfortunately it is not working for me.
I created the GI and have all of the fields I need and the GI works fine.
In email notifications, I click INSERT > DATAFIELDS, find a field, then select it into the document. Adding any field results in the following error code “Object reference not set to an instance of an object.”
Best answer by Vinay Koppula
@brendan91 This is an issue in Acumatica itself. What I have found here is when we add any DataFields in the editor area it is throwing an error while selecting on the Preview action. Try with simple text without the DataFields it will work.
I’m assuming that the root cause of this issue there is no source of data to display in the DataFields in the Preview pane. Raise a support ticket for this.
In the time being, go ahead and create the notification template without using the preview action. To review the design you created is as expected then try to review it directly in the email when BE triggers.
@brendan91 Try to share the trace when getting the error message. You can do so in Tools > Trace at the top right of the Notification Templates screen:
That will give some clue about where the error is triggered.
@brendan91 This is an issue in Acumatica itself. What I have found here is when we add any DataFields in the editor area it is throwing an error while selecting on the Preview action. Try with simple text without the DataFields it will work.
I’m assuming that the root cause of this issue there is no source of data to display in the DataFields in the Preview pane. Raise a support ticket for this.
In the time being, go ahead and create the notification template without using the preview action. To review the design you created is as expected then try to review it directly in the email when BE triggers.