Skip to main content
Collection of all services that work with binary objects (BLOBS). For example, images and documents.

Constructors

NSBLOBAgent()

Initializes a new instance of the NSBLOBAgent class.

Methods

ChangeContactImage(Integer,Integer)

Changes the contact image link.
Returns: CRMScript.Global.Void
If the Binary object ID is 0, any image link is removed from the contact.

ChangePersonImage(Integer,Integer)

Returns: CRMScript.Global.Void
If the Binary object ID is 0, any image link is removed from the person.

ChangeProductImage(Integer,Integer)

Changes the project image link.
Returns: CRMScript.Global.Void
If the Binary object ID is 0, any image link is removed from the project.

ChangeProjectImage(Integer,Integer)

Changes the project image link.
Returns: CRMScript.Global.Void
If the Binary object ID is 0, any image link is removed from the project.

CleanupBatchTask(Integer)

Removes the binary objects linked to the batch task, the links themselves and the batch task.
Returns: CRMScript.Global.Void

CreateDefaultBlobEntity()

Sets default values into a new NSBlobEntity.
Returns: CRMScript.NetServer.NSBlobEntity - New BlobEntity with default values.
NetServer calculates default values (for example Country) on the entity, which is required when creating/storing a new instance.
Example:

DeleteBlobEntity(Integer)

Deletes the NSBlobEntity
Returns: CRMScript.Global.Void Example:

GetAppData(String)

Gets a CLOB (limited to a reasonable size by the mechanics of Web Services) according to a string key; ALSO limits to the current ApplicationToken if any
Returns: CRMScript.Global.String - The applications value, suggested to be a JSON, XML or other readable structure. Example:

GetBlobEntity(Integer)

Gets an NSBlobEntity object.
Returns: CRMScript.NetServer.NSBlobEntity - BlobEntity object. Example:

GetBlobEntityOnContact(Integer)

Gets the blob entity that represents the contact image binary object.
Returns: CRMScript.NetServer.NSBlobEntity - BlobEntity object. Example:

GetBlobEntityOnCountry(Integer)

Gets the blob entity that represents the country flag binary object.
Returns: CRMScript.NetServer.NSBlobEntity - BlobEntity object. Example:

GetBlobEntityOnPerson(Integer)

Gets the blob entity that represents the person image binary object.
Returns: CRMScript.NetServer.NSBlobEntity - BlobEntity object. Example:

GetBlobEntityOnProduct(Integer)

Gets the blob entity that represents the product image binary object.
Returns: CRMScript.NetServer.NSBlobEntity - BlobEntity object. Example:

GetBlobEntityOnProject(Integer)

Gets the blob entity that represents the project image binary object.
Returns: CRMScript.NetServer.NSBlobEntity - BlobEntity object. Example:

GetBlobStream(Integer)

Gets the binary object as a stream
Returns: CRMScript.NetServer.NSStream - The binary object as a Stream. Example:

GetChatImageWithSize(Integer,Integer,Integer)

Returns the chat image that is displayed in chat with a specified maximum size.
Returns: CRMScript.NetServer.NSImage - The image as a System.Drawing.Image. (If the the image is returned over web services, the stream is returned as a jpeg/base64 encoded string.). Example:

GetContactImage(Integer)

Returns the contact image that is displayed in the CRM application.
Returns: CRMScript.NetServer.NSImage - The image as a System.Drawing.Image. (If the the image is returned over web services, the stream is returned as a Base64 encoded string.). Example:

GetContactImageWithSize(Integer,Integer,Integer)

Returns the contact image that is displayed in the CRM application with a specified maximum size.
Returns: CRMScript.NetServer.NSImage - The image as a System.Drawing.Image. (If the the image is returned over web services, the stream is returned as a Base64 encoded string.). Example:

GetOutputFromBatch(Integer)

Gets the output of a batchtask as a stream
Returns: CRMScript.NetServer.NSStream Example:

GetPersonImage(Integer)

Returns the person image that is displayed in the CRM application.
Returns: CRMScript.NetServer.NSImage - The image as a System.Drawing.Image. (If the the image is returned over web services, the stream is returned as a Base64 encoded string.). Example:

GetPersonImageWithSize(Integer,Integer,Integer)

Returns the person image that is displayed in the CRM application with a specified maximum size.
Returns: CRMScript.NetServer.NSImage - The image as a System.Drawing.Image. (If the the image is returned over web services, the stream is returned as a Base64 encoded string.). Example:

GetProductImage(Integer)

Returns the product image (rank=1) that is displayed in the CRM application.
Returns: CRMScript.NetServer.NSImage - The image as a System.Drawing.Image. (If the the image is returned over web services, the stream is returned as a Base64 encoded string.). Example:

GetProductThumbnail(Integer)

Returns the product thumbnail that is displayed in the CRM application.
Returns: CRMScript.NetServer.NSImage - The image as a System.Drawing.Image. (If the the image is returned over web services, the stream is returned as a Base64 encoded string.). Example:

GetProjectImage(Integer)

Returns the project image that is displayed in the CRM application.
Returns: CRMScript.NetServer.NSImage - The image as a System.Drawing.Image. (If the the image is returned over web services, the stream is returned as a Base64 encoded string.). Example:

GetProjectImageWithSize(Integer,Integer,Integer)

Returns the project image that is displayed in the CRM application with a specified maximum size.
Returns: CRMScript.NetServer.NSImage - The image as a System.Drawing.Image. (If the the image is returned over web services, the stream is returned as a Base64 encoded string.). Example:

GetQuoteLineImage(Integer)

Returns the quoteline image (rank=1) that is displayed in the CRM application.
Returns: CRMScript.NetServer.NSImage - The image as a System.Drawing.Image. (If the the image is returned over web services, the stream is returned as a Base64 encoded string.). Example:

SaveBlobEntity(NSBlobEntity)

Updates the existing NSBlobEntity or creates a new NSBlobEntity if the ID parameter is 0.
Returns: CRMScript.NetServer.NSBlobEntity - New or updated BlobEntity. Example:

SaveImageStream(Integer,NSImage,String)

Stores an image in the database without linking it to a project or a person.
Returns: CRMScript.Global.Integer - The blob Id.
It is possible to ChangePersonImage or ChangeProjectImage to attach image later.
Example:

SaveProjectImage(String,NSImage)

Saves a project image that is displayed in the CRM application’s project image selection dialog to the database.
Returns: CRMScript.Global.Void

SetAppData(String,String)

Sets a CLOB (limited to a reasonable size by the mechanics of Web Services) according to a string key; ALSO limits to the current ApplicationToken if any.
Returns: CRMScript.Global.Void
Existing data, if any, will be overwritten. Overwrite with a blank value to delete.
Example:

SetBlobStream(Integer,NSStream)

Stores a binary object from its stream
Returns: CRMScript.Global.Void

SetContactImage(Integer,NSImage)

Stores the contact image that is displayed in the CRM application.
Returns: CRMScript.Global.Void

SetPersonImage(Integer,NSImage)

Stores the person image that is displayed in the CRM application.
Returns: CRMScript.Global.Void

SetProductImage(Integer,NSImage)

Stores the product image that is displayed in the CRM application. The image is scaled down to max 1000x1000. This method operates only the main (rank=1) image; future extensions may support multiple images. A thumbnail of size 75x75 is also automatically set.
Returns: CRMScript.Global.Void

SetProductThumbnail(Integer,NSImage)

Stores the product thumbnail that is displayed in the CRM application. The image is scaled down to max 200x200 pixels.
Returns: CRMScript.Global.Void

SetProjectImage(Integer)

Stores the project image that is displayed in the CRM application.
Returns: CRMScript.Global.Void