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

_blobFind

Documentation: _blobFind Function#

The _blobFind function searches for blobs (files) in an Azure Blob Storage container that match a specified prefix. This function returns a JSON-serialized list of blob names that start with the given prefix. Before using this function, ensure that you have established a connection to Azure Blob Storage using the _blobConnect function.

Function Signature:#

Parameters:#

prefix:
Description: The prefix (initial part of the name) used to filter and find blobs within the Azure Blob Storage container. Only blobs whose names start with this prefix will be included in the result.
Type: string
Example:

Return Value:#

Returns:
A JSON-serialized string representing a list of blob names that match the specified prefix.
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.
Find Blobs:
Use the Azure Blob Storage client to search for blobs within the specified container whose names start with the provided prefix.
3.
Serialize List:
Convert the list of matching blob names to a JSON-serialized string.
4.
Return Result:
Return the JSON string representing the list of blobs that match the prefix.

Example Usage:#

Important Considerations:#

Connection Requirement:
Ensure that _blobConnect has been successfully called before using _blobFind. The function relies on an established connection to perform the search.
Prefix Accuracy:
The prefix parameter must be specified accurately to filter blobs effectively. Ensure that the prefix matches the beginning of the blob names you are searching for.
By using _blobFind, you can efficiently locate and retrieve a list of blobs in Azure Blob Storage that match a specific naming pattern, facilitating organized file management.
Previous
_blobGet
Next
_encodeBase64
Built with