Skip to main content
Question

XML - How to perform an Error Message

  • Dec 5, 2024 9:29 AM UTC
  • 6 replies
  • 139 views

Forum|alt.badge.img+1

Hi there,

I'm trying to create an XML Business Rule in which I basically want to validate whether a user has a specific role in their set of roles and, if so, an error type message translation is run. Does anyone know if it's possible to write an XML code to run an already defined message translation or, alternatively, how to write an XML code to perform an error message?

6 replies

Chethana
Sidekick (Employee)
Forum|alt.badge.img+5
  • Sidekick (Employee)
  • Dec 5, 2024 10:36 AM UTC

Hi ​@anafilipapn ,

I found an MPM that might be useful for your requirement: perform_create_alert MPM.
I haven’t used it before, but it might help with your query.


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Partner)
  • Dec 5, 2024 11:05 AM UTC

Hi ​@Chethana,

Thank you so much for your response. Do you know the structure I need to use for that MPM? Like the required parameters I need to define?


Chethana
Sidekick (Employee)
Forum|alt.badge.img+5
  • Sidekick (Employee)
  • Dec 5, 2024 12:41 PM UTC

Hi ​@Chethana,

Thank you so much for your response. Do you know the structure I need to use for that MPM? Like the required parameters I need to define?

<perform_create_alert>
  <parameters>
    <datarow></datarow>
    <messageid></messageid>
    <message_value></message_value>
    <sound_id></sound_id>
    <secondstodisplay>30</secondstodisplay>
    <alerttype></alerttype>
  </parameters>
</perform_create_alert>


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Partner)
  • Dec 5, 2024 3:00 PM UTC

​@Chethana Thank you so much. However, do you know why this error might be happening: 

I have confirmed and that messageid does exist:

 


Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • Dec 6, 2024 12:25 AM UTC

Hi ​@anafilipapn 

Try changing the message type from ‘error’ to something else like information.

Cheers!

 


Forum|alt.badge.img+8
  • Sidekick (Partner)
  • Apr 30, 2025 2:58 PM UTC

What are the values that sound_id and alert_type could take?