SFSObjectTree Class Reference

Inherits from NSObject
Declared in SFSObjectTree.h

Overview

Helper class for sobject tree requests

– initWithObjectType:objectTypePlural:referenceId:fields:childrenTrees:

Constructor

- (nullable instancetype)initWithObjectType:(NSString *)objectType objectTypePlural:(nullable NSString *)objectTypePlural referenceId:(NSString *)referenceId fields:(NSDictionary<NSString*,id> *)fields childrenTrees:(nullable NSArray<SFSObjectTree*> *)childrenTrees

Parameters

objectType

Object type (e.g. “Contact”)

objectTypePlural

Plural object type (e.g. “Contacts”) - can be null for the root sobject

referenceId

Reference id for the root record

fields

Fields for the root sobject

childrenTrees

Array of SFSObjectTree for the children sobject’s

Declared In

SFSObjectTree.h

– asJSON

NSDictionary representing SObject tree

- (NSDictionary<NSString*,id> *)asJSON

Return Value

NSDictionary representing SObject tree

Declared In

SFSObjectTree.h