HomeWiki
HomeWiki
  1. Blob
  • Back to home
  • 2. Connectivity
  • Introduction
  • Custom Script
  • Playground
  • Database Explorer
  • Log Stream
  • Direct Communication
  • Softone
    • Getting Started
  • Datapump
    • Getting Started
    • Crons
    • Legacy Windows Support
    • SDK
      • DB
        • _executeQuery
        • _executeStoreProcedure
        • _executeInsertQuery
        • _executeInsertQueriesInTransaction
      • Import
        • _productsImport
        • _categoriesImport
        • _brandsImport
        • _attributesImport
        • _attributeSetsImport
        • _unitsImport
        • _quantityImport
        • _customersImport
        • _contactsImport
        • _callsImport
        • _eventsImport
        • _tasksImport
        • _ordersImport
        • _usersImport
        • _customerSourceTagsImport
        • _productSourceTagsImport
      • Log
        • _logDebug
        • _logInfo
        • _logWarn
        • _logError
      • Web Requests
        • _httpGetJson
        • _httpPostJson
        • _httpPutJson
        • _httpDeleteJson
        • _httpPatchJson
      • Variables
        • _saveVariable
        • _getVariable
        • _deleteVariable
      • Blob
        • _blobConnect
        • _blobExists
        • _blobGet
        • _blobFind
      • Utils
        • _encodeBase64
        • _sleep
        • _getLastSyncDate
        • _updateLastSyncDate
        • _resetLastSyncDate
  1. Blob

_blobGet

Documentation: _blobGet Function#

The _blobGet function retrieves the content of a specific blob (file) from an Azure Blob Storage container. This function returns the content as a JSON-serialized object. Before using this function, ensure that you have established a connection to Azure Blob Storage using the _blobConnect function.

Function Signature:#

Parameters:#

blobName:
Description: The name of the blob (file) whose content you want to retrieve from the Azure Blob Storage container.
Type: string
Example:

Return Value:#

Returns:
The content of the specified blob, serialized as a JSON string.
Type: string
Example:

Function Workflow:#

1.
Ensure Connection:
Verify that _blobConnect has been called successfully to establish a connection to Azure Blob Storage and specify the container. This function depends on an active connection to function correctly.
2.
Retrieve Blob Content:
Use the Azure Blob Storage client to fetch the content of the specified blob with the provided blobName.
3.
Serialize Content:
Serialize the content of the blob to a JSON string format before returning it.
4.
Return Result:
Return the serialized JSON string representing the content of the blob.

Example Usage:#

Important Considerations:#

Connection Requirement:
Ensure that _blobConnect has been successfully called before using _blobGet. The function relies on an established connection to perform the retrieval.
Blob Content:
The content of the blob must be in a format that can be serialized to JSON. Ensure that the blob content is valid JSON data to avoid errors.
By using _blobGet, you can retrieve and work with the content of a blob in Azure Blob Storage, enabling you to handle file data effectively.
Previous
_blobExists
Next
_blobFind
Built with