Receive message from Automate

Hello,

I am looking for any references and examples of receiving a broadcast message from the Automate application.

Thank you.

Sending broadcast to Kustom Apps

Broadcast Send Block

Add a Broadcast Send block in Automate. Then in Input Arguments add these:

Action

"org.kustom.action.SEND_VAR"

Extras

{"org.kustom.action.EXT_NAME": "automate", "org.kustom.action.VAR_NAME": "NAME_OF_VARIABLE", "org.kustom.action.VAR_VALUE" : "VALUE"}

NOTE:

  • You can replace "automate" with any name you prefer, but you must replace the name in kustom also.
  • To send value as number you must add as int: VALUE. e.g. "org.kustom.action.VAR_VALUE" as int: 1234

Receiving broadcast from Automate

Add a text item, then in formula editor add this:

Text

br(automate, NAME_OF_VARIABLE)

Note:

  • NAME_OF_VARIABLE is the variable name we set in automate "org.kustom.action.VAR_NAME": "NAME_OF_VARIABLE".
3 Likes

Hi rahatulgazhi,

Thank you for your response & reference.

Best regards,
Baju