Hi guys,
How do I access contact activities info through the API for an anonymous user?
I currently have a form that an anonymous user is filling out, but I want to append some extra information to that form before is submitted, and that information is inside the activity log for that anonymous contact.
I can access activities for registered users (using their id) following this example: https://docs.kentico.com/pages/viewpage.action?pageId=3309730#Managingon-linemarketingactivities%28API%29-Loggingcustomactivities
But how do I access the same for the current anonymous user?
Thanks
Hi Harold,
you can use OnlineMarketingContext.CurrentContact to get the anonymous contact.
OnlineMarketingContext.CurrentContact
Please, sign in to be able to submit a new answer.