d365-expense

Create expense reports in Dynamics 365 Finance & Operations via Playwright browser automation.

1|Updated May 13, 2026
One-click install
npx skills add https://github.com/coolrobertj/Agency-Cowork --skill d365-expense-coolrobertj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: d365-expense
Source: https://github.com/coolrobertj/Agency-Cowork/tree/main/skills/d365-expense/skills/d365-expense
Command: npx skills add https://github.com/coolrobertj/Agency-Cowork --skill d365-expense-coolrobertj

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, and includes scripts (resource) components.

What problem does it solve? Filing expense reports in Dynamics 365 Finance & Operations involves repetitive UI navigation — creating a report, attaching corporate card charges, and setting approvers. This Skill automates that workflow through Playwright browser automation so the report is created and populated without manual clicking. ## Core Features & Use Cases - Automated Report Creation: Drives the D365 Expense workspace to create a new report, fill in description, and attach all open corporate card (Amex) transactions in one pass. - Approver Configuration: Sets interim and final approvers (with defaults like Maila Lee and Tarri Edmonson) and verifies the final approver field, which often defaults incorrectly. - Resilient UI Handling: Manages common D365 quirks such as session timeout dialogs, network reconnection prompts, and stalled processing spinners. - Use Case: After returning from a conference, ask your agent to create an expense report named "KubeCon NA 2026" — it attaches all Amex charges, sets approvers and cost center 10217334, then hands off so you can attach receipts and submit. ## Quick Start Ask your agent to create a D365 expense report with a report name, description, and approvers, for example: "Create an expense report called March misc with the default approvers."

Frequently Asked Questions about d365-expense

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create an expense report in Dynamics 365 automatically?

Use Playwright browser automation to open the D365 Expense workspace, click New expense report, fill in the description, attach all open corporate card transactions, and set approvers. The skill's expense.py script exposes click, fill, select, and screenshot actions for each step.

Do I need to add individual expense lines in D365?

No. Corporate card (Amex) charges already appear automatically in the D365 Expenses tab. The workflow only creates the report and attaches existing transactions with the Add all option — creating individual draft lines is explicitly avoided.

Can the automation submit the expense report for me?

No. The automation only creates the report and attaches expenses, then stops. You must open the report in D365, attach receipts manually, review, and submit it yourself.

Why does the final approver field show the wrong person in D365?

D365 often defaults the final approver dropdown to someone else. The workflow always verifies this field after report creation and corrects it to the intended approver, such as the configured default.

What happens when D365 shows a session timeout or connection error?

The automation handles the "Are you still there?" dialog by clicking "I'm here" and clicks Reconnect on network errors. If a processing spinner stalls for over 30 seconds, the workspace URL is refreshed.