@ambikaTewari_ATCI worked for me, I just used recently viewed criteria. below is the design block i used.
#set ($offerids = "\${user.endpoint.lastViewedEntity}")
<h1>First: $offerids </h1>
<h2> second: $entity1.id </h2>
mboxtrace output screenshot, h1 contains the code
Share your implemen...