web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Lock down expense report after it has been approved - XRM1

(0) ShareShare
ReportReport
Posted on by 1,328

We currently have this process: when users create receipts, they get rolled into a monthly expense report based on the receipt date of the receipt. The expense report then gets approved by their manager via a dialog.

However, we have an issue with users submitting additional receipts after an expense report has already been approved, and there is nothing preventing them from doing so. Is it possible to create an error message when a user tries to create a receipt for an expense report and have the condition where Approved By contains data?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ashlega Profile Picture
    34,477 on at

    You might want to create a real-time workflow for the receipt entity(on create).. add a condition to verify expense report status, and, if it's been approved, add a step to stop the workflow with status "cancelled". Make sure to set the properties of that step to display a meaningful message..

  • Suggested answer
    Community Member Profile Picture
    on at

    In workflow you may have options to check the status of current entity (receipt) and related entity (expense report), if you are able to identify the expense report status from the related entity attributes then you can implement the workflow as mentioned by Alex, else you may need to use FetchXML and XRMServiceToolkit (javascript) to solve this issue.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans