MongoDB.GetServiceName
----------------------

Queries service name for login.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MongoDB](component_MongoDB.md) | [12.3](newinversion123.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "MongoDB.GetServiceName"; MongoDBRef ) 

**MBS**( **"MongoDB.GetServiceName";** /\* Queries service name for login. \*/  
**$MongoDBRef**) /\* The reference number for the mongo connection.e.g. $MongoDB \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| MongoDBRef | The reference number for the mongo connection. | $MongoDB |

### Result

Returns text or error.

### Description

Queries service name for login.  
Returns the SRV service name of a MongoDB URI.  
### See also

- [MongoDB.GetServiceHostName](MongoDBGetServiceHostName.md)

This function checks for a license.

Created 2nd June 2022 , last changed 2nd June 2022

  
[MongoDB.GetServiceHostName](MongoDBGetServiceHostName.md) - [MongoDB.GetTLS](MongoDBGetTLS.md)

[HTML Version](MongoDBGetServiceName.shtml)