Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Unanswered

Posted Warehouse Receipt Message showing up again and again

Posted on by 53
Hey,

Is there a way I can only display one message to end user in BC when warehouse receipts are posted instead of it sending one message again and again. I have an automation process, in which number of warehouse receipts are posted and it displays this message again and again. Like following:
 
OnBeforeGetResultMessage is an event subscriber I can use to suppress messages altogether. However, I'm looking for a way to display a single message at the end, stating 'Warehouse receipts are now posted' instead of showing multiple same messages for each posted receipt.

Also, I do not want to stop this message from being shown altogether, I just want to suppress it with another message in the automation. In normal running whenever someone posts these receipts, I want it to show this message. 
 
Thanks
 
 
Categories:
  • CU25061419-0 Profile Picture
    CU25061419-0 53 on at
    Posted Warehouse Receipt Message showing up again and again

    I have already created a custom table to store global information. In this table, I added a field named Enable Event Subscriber. This field is toggled within my automation function to control event handling. Here’s how it works:

    1. The Enable Event Subscriber field is set to true in the automation function.
    2. In the EventSubscriber, it checks the value of this field from my setup table.
    3. If enabled, it handles the corresponding message.

    At the end of my procedure, I reset the Enable Event Subscriber field back to false. This ensures that under normal circumstances, the same message will be displayed.

    Regards,

  • CU25061419-0 Profile Picture
    CU25061419-0 53 on at
    Posted Warehouse Receipt Message showing up again and again
    Yes, if I handle it like this, I will never get any message. Which is not great for my scenario. I want to display message in normal BC workings, and just suppress it in my automation process where number of warehouse receipts are posted.
  • gdrenteria Profile Picture
    gdrenteria 5,168 Super User on at
    Posted Warehouse Receipt Message showing up again and again
    Hi
    In this event, are you working the Ishandled option?
     
    Br
    GR

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans