Skip to main content
Question

XML - How to perform an Error Message

  • December 5, 2024
  • 5 replies
  • 44 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?

5 replies

Chethana
Sidekick (Employee)
Forum|alt.badge.img+5
  • Sidekick (Employee)
  • 55 replies
  • December 5, 2024

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)
  • 3 replies
  • December 5, 2024

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)
  • 55 replies
  • December 5, 2024
anafilipapn wrote:

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)
  • 3 replies
  • December 5, 2024

@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)
  • 1138 replies
  • December 6, 2024

Hi ​@anafilipapn 

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

Cheers!

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings