Search code examples
androiddynamics-crm

Start Dynamics CRM for Phone with parameters


Is it possible to start the Dynamics CRM app programmatically from another app and pass for exemple an ID of a contact to open it directly ?

Or is it possible to know what are the available parameters to pass to an Android app ?

For exemple :

Intent intent = new Intent(android.content.Intent.ACTION_VIEW, 
Uri.parse("http://maps.google.com/maps?saddr=20.344,34.34&daddr=20.5666,45.345"));

I tried :

Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.microsoft.crm.crmphone");
launchIntent.setData(Uri.parse("https://org.crm4.dynamics.com/main.aspx?etn=cont‌​act&pagetype=entityrecord&id=%7B0e0cf917-005c-e511-80f8-3863bb357fc0%7D")); 
startActivity(launchIntent);

It opens the app but on the homepage and not on the right contact

Thanks for your answers


Solution

  • In the upcoming version, you will be able to use deep links.

    App-to-app deep linking: Enables other mobile apps (such as email or your custom web-based app) to link and directly navigate to a record, view, or dashboard in CRM mobile apps.