public List <Dynamics365Entity> GetEntities()
        {
            List <Dynamics365Entity> entities = new List <Dynamics365Entity>();

            try
            {
                entities.AddRange(Dynamics365Entity.GetEntities((Dynamics365Connection)Connection));
            }
            catch { }

            return(entities);
        }
示例#2
0
        /// <summary>
        /// Gets a list of entities that are owned by a user or team.
        /// </summary>
        /// <returns>A list of Dynamics365Entity objects.</returns>
        public List <Dynamics365Entity> GetUserOrTeamOwnedEntities()
        {
            List <Dynamics365Entity> entities = new List <Dynamics365Entity>();

            try
            {
                entities.AddRange(Dynamics365Entity.GetEntities(Connection).Where(entity => entity.IsUserTeamOwned).ToList());
            }
            catch { }

            return(entities);
        }
        /// <summary>
        /// Gets a list of Dynamics365Entity objects.
        /// </summary>
        /// <returns>The list of Dynamics365Entity objects.</returns>
        public List <Dynamics365Entity> GetEntities()
        {
            List <Dynamics365Entity> entities = new List <Dynamics365Entity>();

            try
            {
                if (Parent != default(IConnection))
                {
                    entities.AddRange(Dynamics365Entity.GetEntities((Dynamics365Connection)Parent));
                }
            }
            catch { }

            return(entities);
        }