Community

Connect with us and enhance your M-Files experience using Extension Kit for M-Files. Here’s how to get started.

Notifications
Clear all

[Solved] Undo PDF Generation

0
Topic starter

I have a Document Processing Rule which is quite simple to undo the PDF Generation from M-Files State Action.

 

When document gets "approved" to be changed again, it should revert back to .docx

This is the configuration:

image

 

I can see it trigger in History of the document but it does not convert the file back to original .docx.

 

image

 

What could i be doing wrong?

2 Answers
0

Hi @karloadanic

 

The UndoPDFConversion state action uses filename wildcards not to select a file from the object, but to choose an older version from the object history that you want to roll back to. For example, if you’re converting contract.docx to contract.pdf and now want to revert to the docx version, you should enter *.docx in the placeholder field of the filename wildcard, not *.pdf:

 

image

 

You can also use contract* or *, as stated in the Documentation. However, if contract* is not working for you, please provide additional details so we can investigate further. For example, contract* will only work if your documents name starts with "contract" (e.g. contract2025.docx) and does not contain any capital letters (e.g. Contract2025.docx).

 

I hope this was helpful. If you need any further assistance, please let me know.

 

Best regards,

Nika

0
Topic starter

To add to this thread, im 100% sure that the extension is .pdf. I tried also following the guide from Official Documentation:

 

  • *.pdf to find all PDF files.
  • invoice* to find all files that start with “invoice” (e.g., invoice2021.docx, invoice_final.pdf).
  • * to find all files.

 

Only thing that worked was putting only * to find all files. searching for word contract* also does not work and it seems to trigger but with no results.

Answer

WATCH THE WEBINAR

Introducing Extension Kit Document AI: Add-on for AI-driven Document Management