From 0c22ef0b4958953d30ffdac2351ecd3581483c39 Mon Sep 17 00:00:00 2001 From: "Christian G. Warden" Date: Tue, 7 May 2013 15:17:57 -0700 Subject: [PATCH] Include createable/updateable flags with field descriptions Include the createable/updateable flags with the fields returned by the describe call so fields that should not be sent to create/update/upsert calls can be filtered out. --- RemoteTKController.cls | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RemoteTKController.cls b/RemoteTKController.cls index 859cd3a..03fab09 100644 --- a/RemoteTKController.cls +++ b/RemoteTKController.cls @@ -106,6 +106,8 @@ public class RemoteTKController { field.put('type', descField.getType().name().toLowerCase()); field.put('name', descField.getName()); field.put('label', descField.getLabel()); + field.put('updateable', descField.isUpdateable()); + field.put('createable', descField.isCreateable()); List references = new List(); for (Schema.sObjectType t: descField.getReferenceTo()) { references.add(t.getDescribe().getName());