# Show Message on Method Directive Not Working

**URL:** <https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133>\
**Category:** Kinetic ERP\
**Tags:** baq, e10, bpm\
**Created:** [July 18, 2023, 6:03pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133 "2023-07-18T18:03:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![NateS](https://www.epiusers.help/user_avatar/www.epiusers.help/nates/32/18519_2.png) [@NateS](https://www.epiusers.help/u/NateS)\
**Post date:** [July 18, 2023, 6:03pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/1 "2023-07-18T18:03:46Z")

</div>

Good afternoon,  
I have a post-processing Method Directive based on Erp.Rpt.POForm.SubmitToAgent. I am trying to capture the event when a user clicks “print” in a PO to print or export the PO for the vendor. My other widgets in the BPM are firing, but I can’t get even an empty Show Message to appear. Even just going from Start \> Show Message = “Done”, will not work. When I try this, the BPM finished, but the message never shows. I can tell the BPM finishes because part of it is adding a new record to a UD table. The records are getting added, but the Show Message never shows. Is this blocked in method directives? What else would cause a Show Message to not show inside a method directive BPM?

Background:  
[PO Post Date - When was a PO last printed? - Kinetic 202X - Epicor User Help Forum (epiusers.help)](https://www.epiusers.help/t/po-post-date-when-was-a-po-last-printed/105116)

---

<div class="post-metadata">

**Author:** ![aarong](https://www.epiusers.help/user_avatar/www.epiusers.help/aarong/32/101218_2.png) [@aarong](https://www.epiusers.help/u/aarong)\
**Post date:** [July 18, 2023, 6:09pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/2 "2023-07-18T18:09:39Z")

</div>

Show us your bpm…

---

<div class="post-metadata">

**Author:** ![NateS](https://www.epiusers.help/user_avatar/www.epiusers.help/nates/32/18519_2.png) [@NateS](https://www.epiusers.help/u/NateS)\
**Post date:** [July 18, 2023, 6:13pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/3 "2023-07-18T18:13:52Z")

</div>

![Capture12315123](https://www.epiusers.help/uploads/default/original/3X/8/c/8cb0f20a1eb3611d7e2fcf80e42fb4880570a8a6.jpeg)  
Do you need inner details for anything?

---

<div class="post-metadata">

**Author:** ![NateS](https://www.epiusers.help/user_avatar/www.epiusers.help/nates/32/18519_2.png) [@NateS](https://www.epiusers.help/u/NateS)\
**Post date:** [July 18, 2023, 6:22pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/4 "2023-07-18T18:22:47Z")

</div>

Even this isn’t working. Weird, right?  
 ![Capture5435435](https://www.epiusers.help/uploads/default/original/3X/c/b/cb4cf8521f0127f91f5e8db880a841262409a23e.jpeg)

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [July 18, 2023, 6:26pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/5 "2023-07-18T18:26:24Z")

</div>

I just tested on my 2022.2.11 and it worked.

---

<div class="post-metadata">

**Author:** ![NateS](https://www.epiusers.help/user_avatar/www.epiusers.help/nates/32/18519_2.png) [@NateS](https://www.epiusers.help/u/NateS)\
**Post date:** [July 18, 2023, 6:27pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/6 "2023-07-18T18:27:58Z")

</div>

I am working in my Pilot DB Base: 11.2.300.0 Kinetic 2023.1.8.  
🤔  
 ![beard GIF](https://media1.giphy.com/media/14vxcRZWhmBWJq/giphy.webp?cid=e90edba3ahxq2eidzjy4u2nwayqzbzk02l1yhpggzvq9m05l&ep=v1_gifs_search&rid=giphy.webp&ct=g)

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [July 18, 2023, 6:29pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/7 "2023-07-18T18:29:47Z")

</div>

> [@NateS](#):
>
> Kinetic 2023.1.8

I think that’s still broken.

Try this and verify:

Add custom code block:

```cs
PublishInfoMessage("Hello", Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "", "");

```

---

<div class="post-metadata">

**Author:** ![NateS](https://www.epiusers.help/user_avatar/www.epiusers.help/nates/32/18519_2.png) [@NateS](https://www.epiusers.help/u/NateS)\
**Post date:** [July 18, 2023, 6:32pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/8 "2023-07-18T18:32:26Z")

</div>

> [@klincecum](#):
>
> Try this and verify:

Confirmed. This code also does not produce a pop-up message.

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [July 18, 2023, 6:33pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/9 "2023-07-18T18:33:17Z")

</div>

That’s the one that SHOULD work. wth 🤔

---

<div class="post-metadata">

**Author:** ![NateS](https://www.epiusers.help/user_avatar/www.epiusers.help/nates/32/18519_2.png) [@NateS](https://www.epiusers.help/u/NateS)\
**Post date:** [July 18, 2023, 6:35pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/10 "2023-07-18T18:35:03Z")

</div>

Its the silly little things huh? In this case I only want to post a message to see some of the variables available to me to identify the best one to use as the username. I have access to fields from POFormParam, so I wanted to see what value was sitting in those field. But I can’t even get a “Hello World” out!

---

<div class="post-metadata">

**Author:** ![utaylor](https://www.epiusers.help/user_avatar/www.epiusers.help/utaylor/32/64664_2.png) [@utaylor](https://www.epiusers.help/u/utaylor)\
**Post date:** [July 18, 2023, 6:36pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/11 "2023-07-18T18:36:38Z")

</div>

Are any other customizations working?

---

<div class="post-metadata">

**Author:** ![NateS](https://www.epiusers.help/user_avatar/www.epiusers.help/nates/32/18519_2.png) [@NateS](https://www.epiusers.help/u/NateS)\
**Post date:** [July 18, 2023, 6:38pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/12 "2023-07-18T18:38:51Z")

</div>

> [@utaylor](#):
>
> Are any other customizations working?

I do not have any customizations or personalizations on PO Entry. I tested other custom dashboards I have in pilot and they seem to be working ok.

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [July 18, 2023, 6:41pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/13 "2023-07-18T18:41:46Z")

</div>

Confirmed here too. 2023.1.8

- Widget doesn’t work
- PublishInfoMessage doesn’t work
- InfoMessage.Publish doesn’t work

Edit: Pre or Post

---

<div class="post-metadata">

**Author:** ![utaylor](https://www.epiusers.help/user_avatar/www.epiusers.help/utaylor/32/64664_2.png) [@utaylor](https://www.epiusers.help/u/utaylor)\
**Post date:** [July 18, 2023, 6:42pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/14 "2023-07-18T18:42:13Z")

</div>

OKay then…

---

<div class="post-metadata">

**Author:** ![NateS](https://www.epiusers.help/user_avatar/www.epiusers.help/nates/32/18519_2.png) [@NateS](https://www.epiusers.help/u/NateS)\
**Post date:** [July 18, 2023, 6:44pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/15 "2023-07-18T18:44:33Z")

</div>

Thanks guys! I’ll look into it tomorrow I don’t really need the message as much as I need the best field for identifying the user. I had workstation ID which pulls in the PC name, but I would rather have the userID. I will see if I can pull that out, and if not, I will just leave it at the workstation ID.

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [July 18, 2023, 6:48pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/16 "2023-07-18T18:48:58Z")

</div>

It’s not just this directive. Bug report time.

---

<div class="post-metadata">

**Author:** ![utaylor](https://www.epiusers.help/user_avatar/www.epiusers.help/utaylor/32/64664_2.png) [@utaylor](https://www.epiusers.help/u/utaylor)\
**Post date:** [July 18, 2023, 6:54pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/17 "2023-07-18T18:54:14Z")

</div>

😔

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [July 18, 2023, 6:54pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/18 "2023-07-18T18:54:46Z")

</div>

LOL, they all work in Kinetic UI.

---

<div class="post-metadata">

**Author:** ![klincecum](https://www.epiusers.help/user_avatar/www.epiusers.help/klincecum/32/100137_2.png) [@klincecum](https://www.epiusers.help/u/klincecum)\
**Post date:** [July 18, 2023, 7:04pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/19 "2023-07-18T19:04:09Z")

</div>

Case #: CS0003785248

**Description:**

The “Show Message” widget, PublishInfoMessage(), and InfoMessage.Publish() fail to work from method / data directives in the Classic Client. They work properly in 2022.2.11 and earlier.

All 3 are working in the Kinetic UI.

Steps to reproduce: Chose any method directive you know will be called.

Add a “Show Message” Widget and connect it to start. Design the template.

Enable and Save. Do something to trigger method. You will not get a message.

Using a custom code widget instead, neither of these will work either:

```cs
PublishInfoMessage("Test", Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "", "");

InfoMessage.Publish("Test");

```

---

<div class="post-metadata">

**Author:** ![aarong](https://www.epiusers.help/user_avatar/www.epiusers.help/aarong/32/101218_2.png) [@aarong](https://www.epiusers.help/u/aarong)\
**Post date:** [July 18, 2023, 7:19pm UTC](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133/20 "2023-07-18T19:19:13Z")

</div>

2023.1.8

```auto
Func<string, bool> publishErrorMessage = (message) =>
{
    this.PublishInfoMessage(message, Ice.Common.BusinessObjectMessageType.Error, Ice.Bpm.InfoMessageDisplayMode.Individual, "", "");
    return false;
};

```

```auto
publishErrorMessage("ABC")

```

This works on Data Directive and Method Directives.

Tested on  
Part.Update \> Post Proc

Kinetic UI (Browser) and Classic UI

[Next page](https://www.epiusers.help/t/show-message-on-method-directive-not-working/105133.md?page=2)
