SCSPrechatEntity
@interface SCSPrechatEntity : NSObject <NSCopying>
                A SCSPrechatEntity specifies a salesforce entity related to this chat session
that will be found or created on session start.
This object must be added to your chat configuration using
SCSChatConfiguration.prechatEntities.
- 
                  
                  
Name of the salesforce object being created or found. eg. Case or Contact
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *entityName;Swift
var entityName: String { get } - 
                  
                  
Indicates whether the entity should be shown to the console agent on creation.
Declaration
Objective-C
@property (nonatomic) BOOL showOnCreate;Swift
var showOnCreate: Bool { get set } - 
                  
                  
The sibling entityName to which this entity should be mapped. - see:
SCSPrechatEntity.linkToEntityFieldDeclaration
Objective-C
@property (nonatomic, copy, nullable) NSString *linkToEntityName;Swift
var linkToEntityName: String? { get set } - 
                  
                  
The field in a sibling entity to which this entity should be mapped. - see:
SCSPrechatEntity.linkToEntityNameDeclaration
Objective-C
@property (nonatomic, copy, nullable) NSString *linkToEntityField;Swift
var linkToEntityField: String? { get set } - 
                  
                  
The name of the field to which this entity should be linked in the LiveAgentChatTranscript object.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *saveToTranscript;Swift
var saveToTranscript: String? { get set } - 
                  
                  
Array of
SCSPrechatEntityFieldobjects to define the mappings.Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSMutableArray<SCSPrechatEntityField *> *entityFieldsMaps;Swift
var entityFieldsMaps: NSMutableArray { get } - 
                  
                  
Instantiates an
SCSPrechatEntityobject for use withSCSChatConfiguration.prechatEntities.Declaration
Objective-C
- (instancetype _Nonnull)initWithEntityName:(NSString *_Nonnull)entityName;Swift
init(entityName: String)Parameters
entityNameName of the salesforce object being created or found. eg. Case or Contact
Return Value
The
SCSPrechatEntityinstance. - 
                  
                  
Undocumented
Declaration
Objective-C
- (instancetype _Nonnull)init NS_UNAVAILABLE; 
            Install in Dash
          
      SCSPrechatEntity Class Reference