layoutIdentifier override not working
Hi, I am overriding the layoutIdentifier when triggering a workflow. When I get the email the desired layout is not applied.
This only happens for the code first workflows I have defined. For the ones created from the dashboard the layout is correctly applied when I use the layoutIdentifier override.
Here is the trigger information:
curl -X POST 'https://api.novu.co/v1/events/trigger' \
-H 'Authorization: ApiKey NOVU_SECRET_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "some-workflow",
"to": {
"subscriberId": "2"
},
"payload": {
"name": "Name 2",
"updatedBy": "Dragan"
},
"overrides": {
"layoutIdentifier": "test-layout"
}
}'
This only happens for the code first workflows I have defined. For the ones created from the dashboard the layout is correctly applied when I use the layoutIdentifier override.
Here is the trigger information:
curl -X POST 'https://api.novu.co/v1/events/trigger' \
-H 'Authorization: ApiKey NOVU_SECRET_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "some-workflow",
"to": {
"subscriberId": "2"
},
"payload": {
"name": "Name 2",
"updatedBy": "Dragan"
},
"overrides": {
"layoutIdentifier": "test-layout"
}
}'