Esempio n. 1
0
        public List<string> GetObjects(SFDC_Personal.SforceService SFService)
        {
            List<string> Results = new List<string>();

            try {
            DescribeGlobalResult dgr = SFService.describeGlobal();
            DescribeGlobalSObjectResult[] sObjResults = dgr.sobjects;
            for (int i = 0; i < sObjResults.Length; i++) { Results.Add(sObjResults[i].name); }
            Results.Sort();
            return Results;

            } catch (Exception e) { Err.Add("ERROR", System.Reflection.MethodBase.GetCurrentMethod().ToString(), e.InnerException.Message.ToString()); return Results; }
        }
Esempio n. 2
0
        public QueryResult GetUsers(SFDC_Personal.SforceService SFService)
        {
            QueryResult Results = null;

            String soqlQuery = "SELECT FirstName, LastName, Username FROM User";
            Results = SFService.query(soqlQuery);

            return Results;
        }