Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Unanswered

How to put error when delete button logic is invoke

Posted on by 35
Hi everyone !
I am new to this , so i will really appreciate if someone can help me :)
 
What i need to do ? When the delete button on the Purchase Orders form is clicked, i need to check if Discount is greater then 0 and if so , delete is not allowed. Error should be showed, that indicate the same.
And if it is equal to 0 then delete is allowed.
 
Can someone help me, how to achieve this with x++ logic. 
  • Haig Liu Profile Picture
    Haig Liu Microsoft Employee on at
    How to put error when delete button logic is invoke
    Hi Anawi,
     
    Normally I would use ribbon workbench to add custom enable rules to the buttons.
    But if you want to use X++ logic, please refer to the following link:
     
    Best Regards,
    Haig Liu

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... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans