Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Disabling and enabling...
Finance forum
Answered

Disabling and enabling the button based on workflow approval

Posted on by 43
I had created the custom workflow for Bank account reconcilation but now I want to disable the Reconcile account button and need to enable it after workflow approval 
 
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 7,209 User Group Leader on at
    Disabling and enabling the button based on workflow approval
    Hi,
     
    Surely there's a status to indicate the state of the WF (Approved, Rejected ...).
    As Martin and Baharani said, you can apply the Active() method.
     
    Mohamed Amine MAHMOUDI
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,526 Super User on at
    Disabling and enabling the button based on workflow approval
    You can add this check that if workflow is approved then only enable the reconcile button in the form data source level active method post next().
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 225,490 Super User on at
    Disabling and enabling the button based on workflow approval
    The state of the document must be stored in a field. Then you'll simply check whether the status is Approved and enable or disable the button. That's normally done in active() method, but don't forget to check whether the form doesn't already contain another piece of logic enabling the button. If so, you'd need to take that into account.
     
    (Moved from D365 general forum.)

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans