BeyondERP.Newsletter
Menu

Setup step on the Archive credit card authorization data page · Accounts receivable

Archive aged credit card authorization data

Keep the credit card authorization table small by archiving aged token data.

Used by
System administrator
Business process
Record credit or debit card payments manually on a sales order in Dynamics 365 Supply Chain Management
Menu item
Action:CreditCardAuthTransArchive
Main table
CreditCardAuthTrans
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Old authorizations lose their token data”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA clean-up job that exports aged payment tokens from the credit card authorization table (CreditCardAuthTrans) to Azure Blob Storage and then deletes that token data from the table.
What you do hereUse it to manage database storage for credit card authorization tokens; a Prevent uploading into blob storage option deletes the token data permanently instead of archiving it.
ExampleFor example, BEAT gives refunds up to 180 days after invoicing, so it runs the job monthly with Minimum transaction age 365 days: token data of authorizations older than a year is archived to Azure Blob Storage and the table stops growing.
Archive credit card authorization data page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

When to run it

When to run itWhen the CreditCardAuthTrans table grows large, and only for authorizations older than your linked-refund period.
How oftenOn a regular schedule chosen to manage database storage; Learn gives no fixed cadence.
Batch settingsRun it as a batch job; the first run over a large backlog can take a long time.
What the output showsCard token fields (CardTokenRequest and CardTokenResult) removed from old authorization records, archived to Azure Blob Storage unless deletion was chosen. A refund on an archived order must then be a standalone refund.

Source: Microsoft Learn

Setup steps on this page

Archive aged credit card authorization data

Keep the credit card authorization table small by archiving aged token data.

Steps from Microsoft

  1. Go to Accounts receivable > Inquiries and reports > Clean up > Archive credit card authorization data.
  2. Enter the Minimum transaction age in days; set it long enough to cover your linked-refund period.
  3. Check the Archive before date, which shows the date that matches that age; older authorization tokens are processed.
  4. Leave Prevent uploading into blob storage on No to archive the tokens to Azure Blob Storage; set it to Yes only to delete them permanently.
  5. Select Next, confirm, and plan a recurring schedule so the CreditCardAuthTrans table stays small.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Minimum transaction ageThe age in days an authorization must reach before its token data is archived or deleted; set it longer than your linked-refund period.Microsoft Learn 365
Archive before dateThe date that matches the minimum age; authorizations older than it are processed.Microsoft Learn
Prevent uploading into blob storageWhen Yes, the token data is deleted permanently instead of archived to Azure Blob Storage.Microsoft Learn No

Common errors and fixes

MessageWhat to do
A refund can't be linked to the original card paymentThe token of an archived authorization is no longer in the table, so a refund on that order must be a standalone refund. Set Minimum transaction age longer than your refund period before the next run. Microsoft Learn
The first run takes a very long timeOn a large backlog the first run processes many records. Run it as a batch job outside business hours, then schedule it regularly. Microsoft Learn

Test checklist

  1. Authorization records older than the Archive before date no longer hold token data.
  2. The archive file is available in document management, unless deletion was chosen.
  3. Newer authorizations still support linked refunds.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Archive aged credit card authorization dataSchedule the job as a recurring batch job with Minimum transaction age longer than the linked-refund period and Prevent uploading into blob storage = No.Archiving keeps the tokens in Azure Blob Storage while removing them from the table; deletion can't be undone, and tokens still within the refund period are needed for linked refunds.Archive or delete aged card tokens?Setting Prevent uploading into blob storage to Yes to save time. The token data is then gone for good.Test: Old authorizations lose their token data
Solution architect

5Design impact

Shared or per companyPer company: credit card authorization records are kept per legal entity, so the job cleans up those of the current company. Microsoft data model
Can it be undoneIrreversible: Deleted token data can't be recovered, and archived data can't easily be restored.
If you change it laterExports aged payment tokens from CreditCardAuthTrans to Azure Blob Storage and deletes them from the table, or deletes them permanently when Prevent uploading into blob storage is on. Microsoft Learn
Technical architect

6Technical

Menu itemAction:CreditCardAuthTransArchive Checked in Dynamics 365
FormDialog Checked in Dynamics 365
TableCreditCardAuthTransShown as “Credit card transactions” in Record infoChecked in Dynamics 365
Who can open it

1 security role.

No security role holds the privileges that grant this page, so only the System administrator role, which is not limited by security, can open it. To give it to others, add one of these privileges to a role.

  • PrivilegeCreditCardAuthTransArchive
  • RoleSystem administrator-SYSADMIN-
Checked against Microsoft's standard security setup and a working Dynamics 365 system (version 10.0.49): no role holds these privileges
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=Action:CreditCardAuthTransArchive
Data migrationLoad order: Archive credit card authorization data has no data entity in Data management, so it can't be loaded from a file or a configuration template. It is a clean-up job. Card tokens aren't migrated; customers' cards are registered again with the payment service in the new environment.Microsoft Learn
Table definitionCreditCardAuthTrans columns and relations Microsoft data model
Everyone

8Sources

To cite this step: AR-INQ-140, Archive aged credit card authorization data. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/AR-INQ-140