How to open the SugarCRM app (SDK Mobile) on a specific view of a module from an external apache cordova application?

Good day community.

I come to you because I have been stuck in a development and I have not been able to solve it.

I'm developing an application with apache cordova and I want this application to open a SugarCRM application previously installed on the device.

I am currently using the "startapp" plugin that can be downloaded from https://github.com/lampaa/com.lampa.startapp and I have managed to open the sugarCRM app through the package path "com.myapp.sugarcrm" .

                        var sApp = startApp.set ({
                                 "application": "com.myapp.sugarcrm"
                                    }). start (function (success) {
                                                  console.log (success);
                                    }, function (error) {
                                                  console.error (error);
                                     });

Does anyone know how to access a specific VIEW within the SugarCRM application, that is, how could I access to specific record of Accounts module through a route such as #Accounts/123456789 from an external application?

Thanks in advance

Regards

Salvador L.

  • Hi Salvador Lopez
    Basically our mobile app registers and handles sugarcrm:/// protocol when it is installed on device. This means that when user clicks link with href starting from sugarcrm:/// or when similar Intent (using Android terms) is activated, sugarcrm mobile app will start.

    It is possible to pass a number of parameters inside such link, page to open is one of them

    // Format is sugarcrm:///Configure
    //           ?username=<USER_NAME>
    //           &url=<SERVER_URL>
    //           &sso= // "" - SSO Visible, "0" = SSO hide, "1" = "Hide username, password, login button"
    //           &ssl=1 //// ""/1 = use https, 0 - disable https
    //           &page=<APPLICATION_PAGE>?parm1=<value>&parm2=<value>

    In your case you want to pass page parameter to open a specific page. So your link or Intent should look like this:

    sugarcrm:///Configure?page=Accounts/1568ac00-7d4a-11e9-ba8b-5ed09d5ef01f. Ofc you should replace last part with correct AccountId.
    Hope this helps
    Eugene
  • Thanks so much Eugene Bychkov.

    Thanks for your suggestion, i have achieved it by adding something like this:

     {SugarClub Administrator Edit: We're sorry, but this image is no longer available}  


    As you can see, I'm using the startapp plugin and the deep link that you mention.

    Regards.

    Salvador L.