You seem to be on the right track. Once you've extracted the document number from the PDF file, employ a "Regular Expression" to isolate just the document number from the extracted text. You could even use ChatGPT to generate some regular expression samples for this purpose. Afterward, you can use the extracted document number to create your PDF file.
Thanks,
Deenuji Loganathan 👩💻
Power Automate Desktop Community Champion 🤖
------------------------------------------------------------------------------------------------------------
If my suggestion helped resolve your issue, please consider marking it as the verified answer and giving it a like. Happy Automation!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.