Youreka App Configuration
Custom Host Provisioning
The Youreka application supports Salesforce custom host provisioning. This allows the MDM administrator to define the custom Salesforce Connections (Youreka Documentation) via their MDM App Configurator. There are two keys used to configure a custom host:
- AppServiceHostLabels - This is the label used for the Custom Host button displayed on the mobile app’s login screen
- AppServiceHosts - This is the URL that is opened when the user hits the Custom Host button on the mobile app’s login screen.
Key | Data Type | Platform | Description |
---|---|---|---|
AppServiceHostLabels |
String delimited by a ; Example: “Login1; Login2; Login3” |
iOS, Android |
Labels for the hosts. The number of AppServiceHostLabels entries must match the number of AppServiceHosts entries. |
AppServiceHosts |
String delimited by a ; Example: “https://Login1.com; https://Login2.com; https://Login3.com” |
iOS, Android |
Login hosts. Android: Requires https:// in the host URL. iOS: Doesn't require https:// in the host URL.
Note: all URLs must be properly encoded and must not include a semicolon unless it is encoded. An encoded semicolon would be %3B |
Example
The administrator creates a Production, Sandbox1, and Sandbox2 connection in their MDM portal. Then when their employees open the Youreka app they will see the custom host buttons for Production, Sandbox1, and Sandbox2.
XML
The XML (iOS) files would look like so:
<dict>
<key>AppServiceHosts</key>
<string>https://login.salesforce.com; http://sandbox1.my.salesforce.com; https://sandbox2.my.salesforce.com</string>
<key>AppServiceHostLabels</key>
<string>Salesforce;Sandbox 1; Sandbox 2</string>
</dict>
JSON
The JSON (Android) files would look like so:
{
"managedProperty": [
{
"key": "AppServiceHosts",
"valueString": "https://login.salesforce.com; http://sandbox1.my.salesforce.com; https://sandbox2.my.salesforce.com"
},
{
"key": "AppServiceHostLabels",
"valueString": "Salesforce; Sandbox 1; Sandbox 2"
}
]
}
Comments
0 comments
Article is closed for comments.