This repository was archived by the owner on Jan 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ if (remotetk.Client === undefined) {
57
57
*/
58
58
remotetk.Client = function(){
59
59
}
60
+
61
+ /** NOOP: for compatibility with forcetk
62
+ */
63
+ remotetk.Client.prototype.setSessionToken = function() {}
64
+ remotetk.Client.prototype.setRefreshToken = function() {}
65
+ remotetk.Client.prototype.setUserAgentString = function() {}
60
66
61
67
/*
62
68
* Completely describes the individual metadata at all levels for the
Original file line number Diff line number Diff line change @@ -45,6 +45,13 @@ public class RemoteTKController {
45
45
field .put (' type' , descField .getType ().name ().toLowerCase ());
46
46
field .put (' name' , descField .getName ());
47
47
field .put (' label' , descField .getLabel ());
48
+ List <String > references = new List <String >();
49
+ for (Schema .sObjectType t : descField .getReferenceTo ()) {
50
+ references .add (t .getDescribe ().getName ());
51
+ }
52
+ if (! references .isEmpty ()) {
53
+ field .put (' referenceTo' , references );
54
+ }
48
55
49
56
fields .add (field );
50
57
}
@@ -236,6 +243,8 @@ public class RemoteTKController {
236
243
237
244
Map <String , Object > result = new Map <String , Object >();
238
245
result .put (' records' , records );
246
+ result .put (' totalSize' , records .size ());
247
+ result .put (' done' , true );
239
248
240
249
return JSON .serialize (result );
241
250
}
You can’t perform that action at this time.
0 commit comments