Hi @pimonnat , I noticed your question hasn’t been answered yet. Don’t worry—we’ll keep an eye on it and try to get some input from other members soon.
I’d create a variable in the previous step (Assign Message Policy) and then I’ll reference the variable in the Javascript policy, as per the example below:
In this way, the variable name would be PolicyName. Additionally, depending on the use case, it could be created the properties object where javascript code can access to read custom values.