The UserInvitation.AfterAccept Automation Event is not being triggered for me when I accept an invitation to join the site. When goes this event actually get triggered, and what triggers it?
The UserInvitation.AfterAccept Automation Event is not being triggered for me when I accept an invitation to join the site. When goes this event actually get triggered, and what triggers it?
Did you define the automation and configure/enable it through Automation > Automations (for general purpose automations) or through Membership > Points (for point automations)?
If you did, could you share the minimum implementation that you're having trouble with?
The cs_UserInvitation table is not getting updated with the AcceptedByUserID when the user is signed out and follows the link in the invitation email to join or sign in. It is only getting updated if a user is already signed in.
Please advise!
Read the Acceptor property on the event arguments. This will always be populated.
The event is not firing when the invitation is accepted. Please see the screenshot and code below:
#set($acceptor = $context_v2_automationTrigger.Arguments.Acceptor) #set($userId = $context_v2_automationTrigger.Arguments.UserId) #if ($acceptor) $core_v2_user.Update("%{ Id = $acceptor.Id, _ExtendedAttributes_InvitedBy = $userId }") #end
That automation worked successfully for me. It set the InvitedBy extended attribute to the ID of the user who created the invitation when the invitation was accepted.
Ensure:
That automation worked successfully for me. It set the InvitedBy extended attribute to the ID of the user who created the invitation when the invitation was accepted.
Ensure:
When is the invitation "Accepted"? Is it when the invited user clicks on the link in the email, or when they press the submit button on the sign-up page?
It is accepted when the user logs in (an existing account) or completes the creation of a new user account via registration using the invitation link.
Okay, thanks.