web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to test the crm mobile application for running Javascript.

(0) ShareShare
ReportReport
Posted on by 441

Hello All,

            I have written some code for the mobile client and want to test the same .How can I do it?I tried by opening mobile site in browser for my organization and tried to test but no  javascript and Business Rules are getting called on mobile form in browser where as it is sucessfully getting call from the web browser.

          Do we need to test the same in CRM mobile app? Or Can we test it on the browser also?

          I have added simple alert using following code and calling "isMobileClient" function on load of the form.Its giving alert in online crm form but not in mobile form.

  

Xrm.Utility.alertDialog("hello out");

function isMobileClient() {

    Xrm.Utility.alertDialog("hello in");

var isCrmForTablets = (Xrm.Page.context.client.getClient() == "Mobile")  

if (isCrmForTablets) {

        Xrm.Utility.alertDialog("hello");    

// Code for CRM for tablets only goes here, 

    } 

else {   // Code for web browser or CRM for Outlook only goes here. 

    }

}

Your help is very very appreciated.Please help ASAP.

*This post is locked for comments

I have the same question (0)
  • Mahendar Pal Profile Picture
    45,095 on at

    You need to test your code in mobile app only, because through browser, it display mobile express forms, not the CRM phone client.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans