SObject Tree

Creates one or more sObject trees with root records of the specified object type.

Parameters 

  • API version (string, optional)
  • Object type (string)
  • Object trees (list or array of sObject tree objects)

iOS 

Swift

1RestClient.shared.request(forSObjectTree:objectTrees:apiVersion:)
Objective-C

1- (SFRestRequest*) requestForSObjectTree:(NSString*)objectType
2                             objectTrees:(NSArray<SFSObjectTree*>*)objectTrees
3                              apiVersion:(nullable NSString *)apiVersion;

Android 

Kotlin

1@Throws(JSONException::class)
2fun getRequestForSObjectTree(apiVersion: String?, objectType: String?,
3    objectTrees: List<SObjectTree>): RestRequest
Java

1public static RestRequest getRequestForSObjectTree(String apiVersion, String objectType, List<SObjectTree> objectTrees) throws JSONException

See Also 

We've Moved

Welcome to the new home of the Mobile SDK Developer Guide! For now, the Japanese guide can be found in PDF form.