Beispiel #1
0
        public static void Update <T>(T obj) where T : SObject
        {
            var jsonData   = JsonFactory.GetJsonUpdate(obj);
            var objectName = typeof(T).Name;

            HttpManager httpManager = new HttpManager();

            httpManager.Patch($"sobjects/{objectName}/{obj.Id}", jsonData);
        }
Beispiel #2
0
        public static void Update <T>(IEnumerable <T> objects) where T : SObject
        {
            var objectName  = typeof(T).Name;
            var httpManager = new HttpManager();

            foreach (var obj in objects)
            {
                var jsonData = JsonFactory.GetJsonUpdate(obj);
                httpManager.Patch($"sobjects/{objectName}/{obj.Id}", jsonData);
            }
        }