How to: Connect to SaaS from the Mobile Device
Required settings
LS Central WS URL | This is the main URL to the LS Central Retail Web Service.
Example: https://api.businesscentral.dynamics.com/v2.0/<tenantID>/<environment>/WS/<CompanyName>/Codeunit/RetailWebServices?Tenant=<tenantID> |
LS Central OData URL | The URL to LS Central ODataV4 web service. Get the URI by going to the Web Service Setup page and Actions - Functions - Show OData V4 Uri, copy the URI part up to /%1_%2.
Example: https://api.businesscentral.dynamics.com/v2.0/<tenantID>/<environment>/ODataV4 |
Tenant ID | Tenant ID is required to obtain oAuth Token. |
Client ID | Enter the user name that was used when creating the Web Service URI, or the Client ID when using oAuth Authentication. |
Client Secret | Enter Client Secret. |
Timeout |
To get settings into the app
The app can now scan a QR code with the above settings to make the data entry easier. Create a QR code with the following json to make it work.
Copy
{
"LSCentralWsUrl":"YOUR_SAAS_WS_URL",
"LSCentralODataUrl":"YOUR_SAAS_ODATA_URL",
"LSCentralTenantId":"YOUR_TENANT_ID",
"LSCentralClientId":"YOUR_CLIENT_ID",
"LSCentralClientSecret":"YOUR_Client_SECRET",
"LSCentralTimeout":120,
}