Skip to main content



How we can read named data sources (SubStrings) from file in rest API



  • Avatar
    Xabier Clemente

    Hello Onkar,

    Thank you for reaching us via the BarTender Community Forums.

    To read named data sources (substrings) from a file using BarTender REST API, you can follow these general steps:

    1. Ensure you have the necessary software and permissions: You should have BarTender installed and configured with a REST API integration. Additionally, ensure that you have the required permissions to access and read files.
    2. Locate the REST API endpoint for reading substrings: Consult the BarTender REST API documentation or your specific integration to identify the endpoint that allows you to read substrings from a file.
    3. Prepare the request: Construct an HTTP request to access the desired endpoint. Typically, you will use the GET method for reading data. Provide the necessary parameters such as the file path or identifier to specify the file containing the substrings.
    4. Send the request: Use your preferred programming language or tool to send the HTTP request to the BarTender REST API endpoint.
    5. Handle the response: Receive the response from the API. If the request is successful, you will obtain the data containing the named data sources (substrings) from the file.
    6. Parse the response: Depending on the format of the response (e.g., JSON, XML), extract the relevant data from the response payload. Extract the named data sources (substrings) from the file based on their specific format.
    7. Process the substrings: Once you have retrieved the named data sources (substrings), you can process them as per your requirements. This may involve further manipulation, integration, or utilization within your application or workflow.

    If you'd like more information on the subject, please refer to the official BarTender REST API documentation or consult with the Professional Services team, who in exchange for a quote will provide you with specific details and implementation guidelines relevant to your version and setup of BarTender.

  • Avatar
    Lubin Chen

    After browsing Bartender REST API documentation, I don't find an action can do 2. above. Can you tell us which action we can use to do it? Thanks.


Please sign in to leave a comment.