Skip to main content
Level 4
Feb 23, 2026 10:30 PM UTC
Solved

Metadata Execution in CJA

Dear Community,

 

I have a question regarding the use of the metadata execution helper function in CJA.

 

Our use case is to leverage metadata execution to register the use of fragments without having to create multiple journey nodes in AJO. We are currently testing a journey execution that includes two parameters in the metadata.

 

In the message feedback dataset, the metadata is stored as a map, and I can see the data structured as follows:

[key1 → value1; key2 → value2]

 

However, when I add the metadata field in CJA, it appears in separate rows:

-journey. Breakdown: 

--value1

--value2

 

I would like to know whether there is a way to concatenate the metadata values in CJA so that they appear as:

-journey. Breakdown: 

--value1 - value2

 

I hope I was able to clearly explain my question. Please accept my apologies for not including screenshots, as the current test data cannot be shared.


Thank you in advance for your support.

Filipe Freitas

    This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
    FilipeFreitasAccepted solution
    Level 4
    Feb 25, 2026 1:44 AM UTC

    Hey Community,

     

    just to share we managed to solve the problem by adjusting the metadata in AJO directly, so the data comes already concatenated in CJA.

     

    In AJO:

    {% let param = "1" %}

    {%#if profile.profile_attributes.attributeA = "XX" %}

      {% let param = "2" %}

    {%else if profile.profile_attributes.attributeA = "YY" %}

      {% let param = "3" %}

    {%/if%}

     

    {%let metadataValue = concat(concat(param , " - "), profile.profile_attributes.attributeB) %}

     

    {{executionMetadata

       key="Metadata"

       value= metadataValue

    }}

     

    Best regards,

    Filipe Freitas

    1 reply

    FilipeFreitasAuthorAccepted solution
    Level 4
    Feb 25, 2026 1:44 AM UTC

    Hey Community,

     

    just to share we managed to solve the problem by adjusting the metadata in AJO directly, so the data comes already concatenated in CJA.

     

    In AJO:

    {% let param = "1" %}

    {%#if profile.profile_attributes.attributeA = "XX" %}

      {% let param = "2" %}

    {%else if profile.profile_attributes.attributeA = "YY" %}

      {% let param = "3" %}

    {%/if%}

     

    {%let metadataValue = concat(concat(param , " - "), profile.profile_attributes.attributeB) %}

     

    {{executionMetadata

       key="Metadata"

       value= metadataValue

    }}

     

    Best regards,

    Filipe Freitas

    Translate