Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Calling a workflow not working if I add enable rule on the custom button

$
0
0

Hi,

I have a quick question and I hope someone will help!!

I have a requirement as below and I am working on Dynamics 365 

  • show/hide custom button based on certain rules and
  • on click of custom button executing an on-demand workflow

So to achieve the above requirement, I have written one JavaScript function to show/hide buttons and calling it in Enable rules of the button command. To call the on-demand workflow I followed Scott's idea as below(Thanks).

ribbonworkbench.uservoice.com/.../132235-create-a-workflow-short-cut-ribbon-button-no-code

But when I tested the functionality individually, they are working beautifully but when I include both Enable rule and Action in the button command then calling workflow is not working. There is no action occurring. (I also tested with two JavaScripts one for show/hide of button and one for calling workflow but still no luck and separately they are working)

Any ideas would be greatly appreciated please...? Many Thanks for your time.


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images