Forum Discussion
Hi, telpochyaotl.
As of version 9.14, there is a FreeMarker variable called "activity.results." This variable contains keys related to both user and message events. For instance, after updating a user's settings, you can check the activity.results variable like so:
<#if activity.results.name.UserUpdated??> Success! Your settings have been updated. </#if>
Hope that helps!
Edit: I originally gave the wrong information in this reply, but have edited this post to correct the error.
Hi!
Sorry it took me so long to get back to this.
I am running 9.15.0, according to ${application.version.numbrer}
I tried the code you offered but
activity.results.UserUpdated
is always undefined... I figure it may be a diferent method name or attribute that I need to use. I've tried a few, but I'm blindly trying... Is there any way to explore the methods or properties available for activity and activity.results?
This seems to be exactly what I need but I have not been able to make it work...
Thanks!
- AdamT15 years agoLithium Alumni (Retired)
My apologies.
You'll need to reference the results as so:
<#if activity.results.name.UserUpdated??> ... </#if>
Sorry for the confusion!
- telpochyaotl15 years agoExpert
Oh, no need to apologize, specially when you offer the actual solution :)
Thanks a lot. That's exactly what I needed.
You certainly have access to priviledge information ;) Hopefully the docs for this type of info will make it to the lithosphere soon. Maybe it's already there?
Again, thanks!
- AdamT15 years agoLithium Alumni (Retired)
Glad to be of service!
You're right, it would be great to get these documents on the Lithosphere. So great, in fact, that it's one of the tasks currently assigned to our platform team! While I don't have an ETA, do know that it will be coming. I've already been asked to write a few articles about customization, and the "activity" object will be one of the first topics addressed.