Twain.GetDSIdentity
-------------------

Queries data source with given index.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Twain](component_Twain.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Twain.GetDSIdentity"; Index { ; Selector } ) 

**MBS**( **"Twain.GetDSIdentity";** /\* Queries data source with given index. \*/  
**$Index**; /\* The index of the data source. From 1 to [Twain.GetDSIdentitiesCount](TwainGetDSIdentitiesCount.md).e.g. 1 \*/   
**$Selector**) /\* Optional; Optional, which value to query. If you have no selector string, you receive the product name.e.g. "ProductFamily" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Index | The index of the data source. From 1 to [Twain.GetDSIdentitiesCount](TwainGetDSIdentitiesCount.md). | 1 |  |
| Selector | Optional, which value to query. If you have no selector string, you receive the product name. | "ProductFamily" | Optional |

### Result

Returns requested value or error message.

### Description

Queries data source with given index.  
Possible selector values: Manufacturer, ProductFamily, ProductName, SupportedGroups, ProtocolMajor, Id, VersionMajorNum, VersionMinorNum, VersionLanguage, VersionCountry or VersionInfo.  
### See also

- [Twain.CurrentDSIdentity](TwainCurrentDSIdentity.md)
- [Twain.GetDSIdentitiesCount](TwainGetDSIdentitiesCount.md)
- [Twain.SelectDSIdentity](TwainSelectDSIdentity.md)

### Example Databases

- [Win Only/Scanning/Twain](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Scanning/Twain.shtml#1ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[Twain.GetDSIdentitiesCount](TwainGetDSIdentitiesCount.md) - [Twain.GetDefaultIdentity](TwainGetDefaultIdentity.md)

[HTML Version](TwainGetDSIdentity.shtml)