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 365 | Integration, Dataverse...
Unanswered

How to put error when delete button logic is invoke

(0) ShareShare
ReportReport
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. 
I have the same question (0)
  • Haig Liu Profile Picture
    Microsoft Employee on at
    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

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 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 41

#2
Martin Dráb Profile Picture

Martin Dráb 38 Most Valuable Professional

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans