Continuing the discussion from Is there a way to create invite codes to complete forms?:
This post described how to create invitation code and send to users / emails. But it need to create / generate invitation code at first. And cannot be triggered by gform_after_submission action.