In teamwork mode this function grants the specified elements to the given user.
GSErrCode ACAPI_Element_GrantElements ( const GS::Array<API_Guid>& elemGuids, short toUserId );
- [in] The list of the elements which must be granted.
- [in] The teamwork owner, to which the objects must be granted.
- The function has completed with success.
- The passed parameter
elemGuidsis empty, contains
APINULLGuid, or not all the elements are on the same floor.
- If any of the
elemGuidsis not an AddOnObject GUID.
For other common API errors see the API Errors document.
If the function has completed with success then the specified elements will be granted to the given user. The process runs in silent mode, no dialogs or messages will interrupt.
- Version: API 23 or later
- Header: ACAPinc.h