Extract data from PDF and Excel into your CRM
To move a document enquiry into a CRM, extract the fields, retain their source references, validate the values and then create or update the agreed record. Reading a document and writing to a CRM are separate stages. A person resolves conflicting values first.
Start with one operation staff currently perform by hand
For example, a staff member opens an email, copies the request reference, product codes and quantities from attachments, finds the company and creates a deal. A useful first outcome is a draft record with references for important fields and a clear review list. “Upload any document” defines neither the work nor acceptance.
- Consistent spreadsheets
- When columns and rules are stable, evaluate conventional import and field mapping first. A model may be unnecessary.
- Varied documents
- For changing layouts and free text, evaluate OCR, structural extraction and AI against an agreed sample.
- First-phase boundary
- One source, one document type and one record type. Order confirmation, quotations and stock reservations are separate actions.
An unknown field stays unknown. A company name in a file does not establish its CRM identity, and a readable price does not establish an approved selling price.
PDF and Excel need different checks
- Text PDF
- Check text and table extraction: rows, headings, units and which item each value belongs to. Selectable text does not guarantee the correct reading order.
- Scanned PDF
- OCR is required. Show an unclear digit alongside its page for staff review instead of substituting the most likely value. Include multiple pages and reverse sides in evaluation.
- Excel
- Read the selected sheet and range. Preserve codes as text and check cell types, units, hidden rows and totals. Agree how formulas are calculated and how fresh their results must be. Do not automatically run macros or external links.
- AI
- May help map varying labels and extract fields from changing text. Type checks, arithmetic, reference-data checks and permission to write remain separate.
Azure Document Intelligence extraction depends on the format and model version. Its layout documentation specifically notes that table analysis is not supported for XLSX input. Supporting a file format does not mean every feature is processed in the same way. Source: document layout analysis.
Microsoft also documents removal of leading zeros and loss of precision in long numeric values in Excel. Preserve the product code “000042” as an identifier rather than the number 42. Formatting cannot restore information already lost. Source: Excel zeros and long numbers.
Example: the PDF and Excel prices disagree
The PDF and Excel excerpts and manually prepared expected output below are fictional. This is a requirements example: no model was run, no real attachments were processed and nothing was written to a CRM. Amounts are illustrative and are not BYstudio service prices.
Source 1. PDF request, page 1
Request DEMO-104. Product code 000042, kit A, 12 units. Unit price 2,500 RUB. Amount 30,000 RUB.
Source 2. Excel, sheet “Items”, row 2
Request DEMO-104. Product code 000042, kit A, 12 units. Unit price 2,400 RUB. Amount 28,800 RUB.
What staff see before a write
- Matching values
- DEMO-104, code 000042 and 12 units match in both sources. Keep the code as text with its leading zeros.
- Decision required
- Unit price: 2,500 versus 2,400 RUB. Amount: 30,000 versus 28,800 RUB. The difference is 1,200 RUB. Both totals multiply correctly, so arithmetic alone cannot resolve the conflict.
- Still unknown
- The CRM company, owner and pipeline cannot be established from these excerpts. Do not invent them.
- Next action
- Pause the write and show both sources. In this example, an operator checked which request was current and approved the PDF price of 2,500 RUB. That approval is a separate assumption of the fictional scenario.
- Prepared result
- Draft: DEMO-104, code 000042, 12 units, 2,500 RUB, amount 30,000 RUB. A verified company, owner, pipeline and staff approval are still needed before writing. No CRM record has been created.
Staff can inspect the supporting excerpts: PDF, page 1; Excel, row 2. In production, a reference opens the permitted original at the relevant page or cell. These article links open the fictional excerpts only.
CRM delivery needs a verifiable completion state
- Keep the original and intake identifier. Distinguish redelivery of the same package from a new enquiry and a revised document.
- Agree the mapping: what to create or update, required values and who resolves conflicts. Match products and customers against permitted reference data.
- Check codes, quantities, currency, arithmetic and staff approval. Missing required values stay in review rather than receiving a partial success claim.
- Send approved values through an integration with limited permissions. Account for automation rules, emails and tasks triggered by saving.
- Retain the actual CRM identifier and verify important fields. Mark the record as created only after confirmation. Staff acceptance is a separate state.
- If the response is lost after a request, establish whether a record was created before retrying. Blind retries can create a second order.
Bitrix24 crm.item.add checks permissions, required fields and validity, and saving triggers downstream automation. The record type and product rows require their own configuration. An available create method does not itself resolve retries or price approval. Source: creating a CRM item.
Handle unreadable files and repeated emails explicitly
- Unreadable quantity
- Leave it blank, show the page and request clarification. A recognition-confidence score does not replace checking a critical field.
- Locked or damaged file
- Do not automatically bypass protection. Explain the failure, retain intake status and agree a permitted replacement.
- The same email delivered again
- Use the agreed delivery identifier to return the previous result or current state. Test parallel attempts so two workers do not create two records.
- Revised request
- Do not overwrite an approved order merely because the number matches. Show changed fields and agree an update. Identical file contents alone do not establish an identical business request.
- CRM outage
- Separate a failure before writing from an unknown outcome after sending. Expose the queue, reason and staff owner for reconciliation.
Attachments and their contents remain input data. A document instruction to “send this to everyone” does not grant an integration new permissions. Agree permitted data, processing environment, retention and access to originals before the pilot.
Verify the result before production
- A normal request: every required value is correct and points to its source page or cell.
- PDF and Excel conflict: both values are visible, writing pauses for a decision and the operator’s choice is retained.
- Code 000042: every character survives extraction, preparation and delivery. Zero quantity remains distinct from a missing value.
- An unreadable digit, missing field and extra total row: no guessed value, false product row or successful write with an omission.
- Redelivery, concurrent processing and a revision: the agreed create or update occurs without losing a new enquiry.
- Failure before writing and a lost response after writing: reconcile the outcome before another attempt and retain a working manual path.
- Insufficient permissions and CRM automation: prohibited actions do not occur and downstream tasks and notifications match the agreed scenario.
Measure more than readable characters. Track required-field correctness, line-item errors, review rate, review time, processing cost and confirmed CRM writes separately. Agree samples and tolerances against the consequences of an error. This article reports no measured performance.
What happens after document review
Extracted fields do not define the complete workflow. Before connecting systems, agree who approves the order, where fulfilment is maintained and what information customers may see.
- Document data
- Retain the source page or cell and the reviewer’s decision. A revised file does not overwrite an approved order without an agreed rule.
- Order fulfilment
- After data review, a separate workflow owns resources, staff assignment and the actual outcome. Creating a CRM record does not complete an order.
- Customer visibility
- Define the permitted fields and materials. Internal notes, source attachments and extraction errors do not automatically become public.
Prepare a bounded first phase
Describe one document source and one manual operation. Evaluation needs a field list, CRM record type, value-selection rules and examples of normal and error cases. Start with fictional excerpts, then agree a suitable transfer method for permitted material.
BYstudio’s initial task review is free. A full audit, document preparation, a pilot and production integration have separately agreed scope, price and acceptance. Formats, scan quality, product mapping, permissions, volume and failure recovery affect cost.
- AI implementation for business
- Service and CRM integrations
- Extracting a text enquiry
- Answers from company documents
- CRM retries and new enquiries
- AI pilot and acceptance criteria
Related verified work: Krest-NN has configured order stages and actions in Bitrix24. It illustrates a CRM workflow, not deployed PDF or Excel extraction. Krest-NN case.
Official sources checked on 29 October 2026. Verify capabilities and limitations against the chosen service versions.