Skip to main content

Earmark deal approval and Earmark claim approval

This page is for system administrators who set up workflow, and for accounting managers and approvers who keep approvals moving. Earmark sends every deal, every amendment to an approved deal and every claim through a standard Dynamics 365 workflow before it can cost money or credit anyone. Earmark ships the two workflow types and their approval steps; you create, configure and activate the workflows themselves in the standard workflow editor.

Runs: by itself, each time someone submits a deal, an amendment or a claim. The workflow engine runs in Microsoft's workflow batch jobs, which must be running in the environment. Set up by: System administrator or Information technology manager (creates and activates the workflows); Accounting manager or System administrator (runs Check approval workflows). Watched by: Earmark deal approver and Earmark claims approver (their work items); Accounting manager (the setup-gap tiles).

Why it exists​

Approval is the control between writing a document and its money. An approved deal starts pricing order lines and accruing; an approved amendment changes a deal in force; an approved claim creates the credit on the counterparty's account. Who approves differs from company to company, so Earmark leaves the routing to the standard workflow editor: assignment, conditions, limits, escalation and delegation are all standard. What Earmark adds is checks that run whatever the workflow says: at submission, again when the approver chooses Approve, and again when the workflow completes.

When it runs​

EventWhereWhoWhat starts or stops
Submit a dealSubmit on the deal page or the deals listDeal maintainers (Sales manager, Purchasing manager, Inventory accountant)An Earmark deal approval workflow on the deal
Propose an amendmentAmend or Submit cap change on an approved dealThe same rolesAn Earmark deal approval workflow on the parent deal, carrying the amendment
Submit a claimApproval group > Submit for approval on All claims or ClaimAccounts receivable clerk, Accounts payable managerAn Earmark claim approval workflow on the claim
Vendor settlement runRun vendor settlement submits each claim it raisesAccounts payable managerAs for a claim (Vendor settlement run)
Resubmit after Reject or Request changeResubmit on the workflow barThe originatorThe same submission and checks as the Submit buttons
Act on a work itemThe workflow bar on the deal or claim, a work item or notification, or Approval group > Approve or Reject on All claims (these two act on your own work item on the selected claim)Earmark deal approver, Earmark claims approverThe step completes, or the work item is delegated. The license and segregation checks below apply to every route.
RecallRecall on the deal (with a reason code), or Approval group > Recall on the claimFor a deal, anyone who holds Recall (Sales manager, Purchasing manager, Inventory accountant), not only its author; for a claim, Accounts receivable clerk or Accounts payable managerCancels the workflow; the document goes back to Planning or Open
Decide a claim outside the workflowThe approveClaim JSON service onlyThe integration's userEarmark decides the claim with the same checks, then cancels the workflow still pending on it
End a dealClose, Cancel or AbortSee End a dealWithdraws a pending amendment and cancels its workflow

The workflow bar never offers Submit or Recall: those stay on Earmark's own buttons, which run Earmark's checks and list every reason a document is refused.

Menu paths. Create and maintain the workflows at System administration > Workflow > User workflows (click New, then choose Earmark deal approval or Earmark claim approval, both in the Earmark category). Check them with Check approval workflows: the button Earmark adds to the User workflows page, or the Approval workflow inactive and Claim approval workflow inactive tiles on the Earmark configuration workspace. It writes nothing: it reports, for each workflow, "Earmark deal approval: an active workflow is in place. Nothing was changed." or the steps to create it, and opens User workflows when one is missing and you may open that page. Microsoft's workflow processing is configured at System administration > Workflow > Workflow infrastructure configuration, and its jobs show on System administration > Inquiries > Batch jobs.

Recurrence. There is nothing of Earmark's to schedule. A submitted document reaches an approver only once Microsoft's workflow processing batch jobs have picked it up (not verified on every F&O version), so they must be running in every environment; follow Microsoft's guidance for their recurrence.

Settings​

SettingWhereDefaultEffect
An active Earmark deal approval workflowSystem administration > Workflow > User workflowsNone. Earmark does not create one.Without it, deals and amendments cannot be submitted, and the Approval workflow inactive tile is lit. The tile and Check approval workflows look for an active workflow in any company, so one active in another company can leave the tile dark here (from reading the code; not run).
An active Earmark claim approval workflowThe same pageNoneWithout it, claims cannot be submitted, and the Claim approval workflow inactive tile is lit.
Approval step Approve Earmark deal / Approve Earmark claimWorkflow editorNoneAssign it to the Earmark deal approver or Earmark claims approver role, as Earmark's own check message says. Its outcomes are Approve, Reject and Request change; Delegate is available, and there is no Deny.
Conditions and assignment rulesWorkflow editorNoneCan use fields of the deal or claim header. The workflow document is the header only; it has no lines.
Automatic actions, time limits, escalationWorkflow editorOffStandard. An automatic approval completes the step with no work item, so the work-item check below does not run; Earmark still checks when the workflow completes.
Allow amendments on approved dealsEarmark > Setup > Earmark parameters, Lifecycle tabSetCleared, Amend is refused and no amendment workflow starts.
Block claim approval by the deal's approverClaims tabSetSet, someone who approved a deal behind a claim line cannot approve the claim. Cleared, it is a warning.
Block claim approval of return-flagged linesClaims tabSetSet, a claim with an unaccepted return flag goes back to Open at approval. Cleared, it is a warning.
Auto-post claim approval journalClaims tabClearedSet, a customer claim's approval journals post on the next Accrual event processor run. Post automatically on the Claim approval row of the Posting control tab has the same effect; either one is enough.
Segregation-of-duties rulesSegregation rules not seeded tile, Seed rulesNot seededThe standard rules that stop conflicting duties being assigned to one user. Earmark's own approval checks run whether or not they are seeded.
Workflow execution account and batch jobsSystem administration > Workflow > Workflow infrastructure configurationPer environmentStandard. Without them no workflow moves.

What it does​

Deals and amendments

  1. Submit. Earmark checks the deal (every problem is listed at once; see Submit a deal for approval), then in one transaction starts the workflow and moves the deal to Pending approval, stamping Submitted by. An amendment starts the same workflow type on its parent deal and stays Pending.
  2. The approver chooses Approve. Before the work item completes, Earmark refuses if the approver created or submitted the deal (or raised or submitted the amendment), or if the license is blocked. The work item stays assigned, and a refused approver gets a SoD denied row on the timeline and is told to delegate.
  3. The workflow completes. Earmark checks again, then approves: the deal becomes Approved, Approved by names the person who acted on the work item (not the account the workflow runs under), a timeline row is written and the Earmark deal approved business event is sent when Publish deal events is on. An amendment is applied instead, in one transaction under the deal lock, and the amended terms take effect at once.
  4. Reject or Request change returns the deal to Planning with the approver's comment (no reason code). For an amendment, reject, request change, recall or cancel closes it as Rejected. Only Approve is checked before the work item completes: a reject or request change on an amendment by its own author or submitter is refused after the work item has closed, which leaves the amendment undecided.

Claims

  1. Submit. Earmark checks the claim (lines still claimed, claim journals posted, approval account resolvable, period open, no blocking return flag; see Submit a claim for approval), starts the workflow and moves the claim to Pending approval.
  2. The approver chooses Approve. Before the work item completes, Earmark refuses an approver who generated or submitted the claim, does not hold Approve Earmark claims, or (while blocking is set) approved a deal behind one of its lines, and refuses everyone while the license is blocked.
  3. The workflow completes. Earmark re-runs the segregation check and every submission check. If they pass, the claim becomes Approved, the Earmark claim approved business event is sent when Publish Earmark claim events is on, and Earmark writes one unposted approval journal per claim line (for a vendor claim, an AP proposal). If a submission check fails, the claim goes back to Open with the reason on its timeline.
  4. Reject, Request change or a canceled workflow returns the claim to Open.

A deal follows the same shape, from Planning through Pending approval to Approved, and back to Planning on reject, request change or recall.

Before it can run​

  • Both workflows exist and are active in each company (check each company yourself: the tiles do not filter by company). Creating them needs the standard User workflows page, which the System administrator or Information technology manager role opens; the steps are in Activate the approval workflows.
  • Someone is assigned a role holding Approve Earmark deals (as shipped, Earmark deal approver); until then the No deal approver assigned tile is lit on the Earmark configuration workspace. Someone is assigned the Earmark claims approver role (there is no tile for that one).
  • Microsoft's workflow infrastructure is configured and its batch jobs run.
  • Recommended: the segregation-of-duties rules are seeded (Seed the segregation-of-duties rules).

What goes in and what comes out​

InOut
A deal in Planning, an amendment, or an Open claim, submittedA workflow instance and work items (standard)
The approver's decision and commentThe new status, with Submitted by and Approved by stamps
Timeline rows: Submitted, Approved, Rejected, Change requested, Recalled, SoD denied; for an amendment, Amendment submitted, Amendment applied, Amendment withdrawn
Business events: Earmark deal submitted, Earmark deal approved, Earmark deal amended, Earmark claim approved, each when its family is switched on
For an approved claim: one approval journal per line, unposted (customer) or an AP proposal (vendor)

Watching it​

  • Work queues: Earmark > Deals > Deals pending my approval and the Deals pending my approval tile (deals and amendments assigned to you); the Claims pending my approval tile on the Earmark workspace (for the Earmark claims approver); the Pending approval views on the deals list and All claims.
  • Workflow history: View history on the workflow bar (standard).
  • Setup-gap tiles on the Earmark configuration workspace: Approval workflow inactive, Claim approval workflow inactive and No deal approver assigned, also rows of the setup checklist.
  • Timeline: the deal's or claim's timeline FactBox, or Earmark > Inquiries and reports > Earmark timeline.
  • Earmark execution exceptions: Workflow callback write rows (a deal outcome that could not be written, or a workflow that could not be stopped or canceled), Post claim approval journal rows and Journal post rows.
  • Batch jobs: Microsoft's workflow processing jobs, on System administration > Inquiries > Batch jobs.

When it fails​

What you seeKindWhat to do
"Deal <deal> cannot be submitted because no active Earmark deal approval workflow is configured. …" or "No active claim approval workflow is configured, so claim <claim> cannot be submitted."Verdict; nothing is submittedCreate and activate the workflow, then submit again.
A submitted document never reaches anyone's work itemsWorkflow processing (standard)Check Workflow infrastructure configuration and the workflow batch jobs (not verified).
Approve refused at once: "… The work item has not been completed and is still assigned to you. Delegate it to another approver who may approve this document."Verdict (segregation of duties)Delegate the work item. The document stays Pending approval.
Approve refused with "Earmark's license has reached its block date on this production environment. …"VerdictThe work item stays assigned. Approve it once the license is restored (Check the license status).
A claim is back in Open after approval: "Claim <claim> was returned to open at approval: <reason>"Verdict; nothing postedFix the cause and submit again.
"The claim approval journal for claim <claim> could not be posted." and a Post claim approval journal rowFailure; the claim stays Approved, Posting pendingFix the setup, then Retry selected. It cannot credit a line twice.
A Workflow callback write rowFailureFix the cause, then Retry selected. For a deal it applies the workflow's outcome again; for a claim it cancels the workflow still pending on the claim.

Automatic approval at the license block date. When a workflow approves automatically, there is no work item for Earmark to refuse. The workflow finishes, and the deal or claim stays Pending approval, not approved. An amendment's workflow stops with an error instead. Once the license is restored, recall the deal or claim and submit it again (the Approve button on All claims cannot help here, because it acts on a work item and there is none; only the approveClaim service can approve such a claim directly), and for an amendment, cancel its stopped workflow in the standard workflow history, which closes the amendment as Rejected, then raise it again.

Applying an outcome twice is harmless. An approval arriving for a deal that is already Approved does nothing, and a claim approval's journals are written only for lines that do not have one yet, so Retry selected on either kind of row never doubles anything.

Retry selected needs Process Earmark execution exceptions (Accounts receivable manager, Accounts payable manager, Accounting manager).

Effects on the rest of Earmark​

  • Approved deals price and accrue. Only an Approved deal is found by price build-up and the accrual engine. An applied amendment changes the deal for every commitment at once; accruals already made are not recalculated.
  • Approved claims credit. The approval journals post on the next Accrual event processor run when automatic posting is set, or wait for a person; a vendor claim's credit waits for Accounts payable (Hand approved vendor claims to accounts payable).
  • Locks. Submitting and approving take the deal row (deals and amendments) or the claim row (claims); a claim approval then runs the accrual engine line by line under the deal and balance locks.
  • Pending documents are held. A deal in Pending approval cannot be edited, and a claim in Pending approval changes only by recall or by an approver's decision.
  • At the license block date approving is refused on production, while rejecting, recalling and ending stay open (License check).