BPM messages can be used to both debug BPMs and show information to Epicor users. The code shown below gives two examples of how messages can be used in your BPMs.

Please click on the images below for the larger size.

This is the complete code used in this example. Code can be copied at the bottom of this post.

This information message warns that the new customer address is missing.

This informational message about adding a new customer, in this example, with the name John Smith.

The following is the code I used for these examples:

/* Display informational and warning messages */ Define Variable debugMessage as Character. Define Variable debugMode as Logical init True.

If (ttCustomer.Address1 = “”) Then {lib/PublishInfoMsg.i &InfoMsg = “‘Warning: Address is missing from new customer'” &InfoSeverity = {&MESSAGE_WARN}}

If (debugMode = True) Then Do:

          Assign debugMessage = “Adding new Customer with name ” + ttCustomer.Name.
         {lib/PublishInfoMsg.i &InfoMsg = debugMessage &InfoSeverity =
         {&MESSAGE_INFO}}
    End.

End.

Suggested

Becky Lipnick

Recent Posts

Why Your Infor VISUAL Data Can’t Be Trusted (And How to Fix It)

Let’s start with something most teams won’t say out loud:If you’re running Infor VISUAL, there’s…

8 months ago

Not Using Your Infor VISUAL ERP to Its Full Potential? Here’s How to Unlock It

Many manufacturers invested in Infor VISUAL ERP years ago with the goal of improving visibility…

9 months ago

If You’re Still Manually Re-Entering Data Into Infor VISUAL, Read This

Let’s start with the honest truth.....If your team is still manually re-entering data into Infor…

9 months ago

Don’t Let the New Year Happen To Your ERP

A First-of-the-Year Reset for Infor VISUAL UsersThe start of a new year always brings momentum—new…

10 months ago