Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Custom button in D365 phone app

Posted on by

Hi,

I've created a custom button on the Lead entity and it shows in the mobile app, which is weird as I have other custom buttons in other entities and none of these are show.

Is a custom Qualify button and it has in common with the ootb button the images.

  1. Why this button is visible in the mobile app?
  2. Why the click event is not triggered?

The click event of the button calls a very simple function that shows an alert, I'm using following code 

var currency = Xrm.Page.getAttribute("transactioncurrencyid").getValue();	

    if (currency == null) {
        Xrm.Utility.alertDialog("You must enter a currency before qualifying a lead");
        Xrm.Page.getControl("transactioncurrencyid").setFocus(true);
        return;
    }


*This post is locked for comments

  • Jorge S Profile Picture
    Jorge S on at
    RE: Custom button in D365 phone app

    Create your button only with a command, don't add any display or enable rule at beginning, so when you add any of these rules, you know which rule makes the button not visible.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Custom button in D365 phone app

    Hi,

    I have the problem in my custom button that it is not appear on CRM APP ,What should I do ?

    I have been tried Display rule "CommandClientTypeRule" and it wasn't work.

  • Jorge S Profile Picture
    Jorge S on at
    RE: Custom button in D365 phone app

    Hi, 

    this is the mobile app, I don't think there is access to the console.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Custom button in D365 phone app

    Hi! 


    Try to open the console and take a look if any errors appear when you press the button. I don't think there are any errors in your code here.

    Hope this helps!

     

    Vlad

    http://dynamicalabs.com/

    Disclaimer: Any post on this page provided "as is" without warranty of any kind and is for educational and information purposes only. We disclaim any liability arising from any reliance placed on any post

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans