Timereg addUsers

From Catglobe Wiki
Revision as of 10:49, 31 May 2017 by Nguyenduyan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Timereg_addUsers

Add users inside a group to the timereg period

Syntax

Timereg_addUsers(timeregPeriod, groupRId);

Arguments

  • timeregPeriod: DateTime array. Find first timereg period that contains this date
  • groupRId: resource Id of group that contains users

Return type

number of users are added to the Timereg period

Example

DateTime dt = new DateTime("2017-05-18");
array timeregPeriod = dt.AsArray;
number groupRId = 6397;
Timereg_addUsers(timeregPeriod, groupRId);

Timereg addUsers.png