I'm trying to create a new Automation rule to award points to a user who votes in a poll but I can't get the points to be awarded. Debugging the code shows that all the values are correct in the award point function, but still no points.
var userId = context_v2_automationTrigger.Arguments.VotingUserId; var contentId = context_v2_automationTrigger.Arguments.ContentId; var contentTypeId = context_v2_automationTrigger.Arguments.ContentTypeId; if (context_v2_automationTrigger.Event == 'OnVote') { core_v2_eventLog.Write("TRIGGER Poll.OnVote", { Category: 'element14 AR', EventId: -1, EventType: 'Information' }); context_v1_pointsAutomation.AwardPoints(userId, contentId, contentTypeId); } core_v2_eventLog.Write("Poll Status: " + context_v2_automationTrigger.Event + " - UserId: " + userId + " - contentId: " + contentId + " - contentTypeId: " + contentTypeId, { Category: 'element14 AR', EventId: -1, EventType: 'Information' });
Member Point rule is setup to use this automation: