API:InviteByName

Invites using character name or the Unitid system

Arguments

 * string
 * name - Player name, must be exact and case sensative.
 * UnitId - the unit to invite, "target","focus1","party1","raid1","mouseover","pet"

Returns
nil

Example
Invites the current target to party.

Invites the character Charname to party.