Forum Discussion
PerBonomi Can you please tell me the REST call to or alternative way to get ${env.context.message.id} ?
I am getting freemarker error when I try to access ${env.context.message.id}, so I need some alternative way such as REST call or any other so that I could get the same value as I am getting by ${env.context.message.id} .
Which page did you add your custom component to? e.g. a tag page probably wouldn't have the env.context.message object. Also keep in mind that the preview in studio will only have some of the context objects populated with the community studio context. So if you see that freemarker error there... that doesn't necessarily mean your component won't work on the actual page.
- keshavkelkar9 years agoAce
ClaudiusH problem is solved I used "page.context.message.id" in place of "env.context.message.id". thanks for your inputs.