MQTT Topic Mapping

I am new to EMQX. I would like to create a rule to perform a MQTT topic mapping operation by reading the input data payload. Is it possible? Thanks.

Input Topic company_A/Topic/# ----> Output Topic ABC/xyz/#
{
“field 1” : “ABC”,
“field 2” : “xyz” ,

}

Hello,

Yes, you can use rule engine with republish action.

Example rule:

SELECT
  payload.foo as foo
FROM
  "t1/#"

Output topic of the republish action supports templating, example:

t2/${foo}