/// <summary> /// Activates a process schedule associated with a queue /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Jobs or Jobs.Write. /// /// Required permissions: Schedules.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static void ActivateById(this IProcessSchedules operations, long id, long?xUIPATHOrganizationUnitId = default(long?)) { operations.ActivateByIdAsync(id, xUIPATHOrganizationUnitId).GetAwaiter().GetResult(); }