Forum Discussion

keshavkelkar's avatar
8 years ago

REST call for context object ${env.context.message.id} ?

Can anyone 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} .

  • cike The problem is solved. I used "page.context.message.id" in place of "env.context.message.id". Thanks for your efforts.

  • Hi keshavkelkar,

     

    what error is returned by your Freemarker code? The env methods can only be used on specific page types (see Lithium Freemarker Doc).

     

    I'm not seeing any API call to return the same data as the ${env.context.message.id} object.

     

     

    Kind regards,

    Christian

    • cike The problem is solved. I used "page.context.message.id" in place of "env.context.message.id". Thanks for your efforts.

      • cike's avatar
        cike
        Champion
        Great news!
        Happy coding. :)