#g4msod_addRecipient

*//////////////////////////////////////////////////////////////*

* g4msod_addRecipient - Add Recipient *

* *

* Input: *

* in_recip [r] - The email address, alias, or objectID *

* of the recpient. *

* in_recipType - The recpient type. *

* Valid Values: email, alias, objectId (case sensitive). *

* email the default. *

* *

* Output: *

* out_errMsg - The error message (if error exists). *

* *

* Returns: *

* -1 for error, number of recipients *

* *

*//////////////////////////////////////////////////////////////*

D g4msod_addRecipient...

D PR 10i 0

D in_recip 256 Const

D in_recipType 256 Const Options(*NOPASS)

D out_errMsg 256 Options(*NOPASS)

g4msod_addRecipient is used to add recipients to a list that will be used to send a sharing invite to using #g4msod_sendItemInvite.

NOTE: One issue I did find was that if you try to add an email address that matches your recovery email address it will not be used by Microsoft to send the invite to that specific address.

Returns: -1 for error, total recipients in the list for success.

Required Parameters:

  • in_recip - Specify the recipient (email address, alias or objectId)

  • in_recipType - Specify the type of recipient. Use the values "email", "alias", or "objectId" (without quotes, case sensitive). If not passed, the default value of "email" will be used.

Optional Parameters:

  • Error Message (output) - Error message