Hi, is there a reason my inline variables aren’t working?
Hi @Dw2456,
You would need to create Templating context in order to use those variable in Send Email Action.
Example of Templating Context:
{"displayName.$":"$.getIdentity.managerRef.name","reviewName.$":"$.getIdentity.name"}
Example of Email Body:
Hello ${displayName}, please review ${reviewName}.
The JSONpath looks correct and you are correctly referencing inline variables inside double curly braces. Are you seeing this error when testing the workflow? A common cause for this kind of issue when testing is that users aren’t providing an example trigger payload with a real identity ID, so the step to get the identity’s manager will result in nothing because it isn’t a real ID. If any variable in an email body is null or missing, none of the variables will render. Please make sure you are using a real identity ID in your test input.
Thank you this worked
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.