Пример #1
0
        /// <summary>
        /// Show all skills in the org
        /// </summary>
        public void GetSkill()
        {
            try
            {
                var pageNumber = 1;
                var pageCount  = 1;

                var skillEntityListing = routingApi.GetRoutingSkills(100, pageNumber, null);

                pageCount = skillEntityListing.PageCount.Value;

                foreach (var skill in skillEntityListing.Entities)
                {
                    AddLog("Get Name: " + skill.Name + " - Id: " + skill.Id);
                }
            }
            catch (Exception ex)
            {
                AddLog($"Error in GetSkill: {ex.Message}");
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }