Notifications
Announcements
No record found.
Hey ,
I am generating Vendor payment file through electronic reporting. It is an xml file , i want it to be encrypted with PGP Encryption. Can you please suggest how do that using in X++ ?
Hi Rohin,
In the past, I heard the option to use a third-party component to do the PGP encryption. You can e.g. have a look here www.nuget.org/.../1.2.0
Last project that I have made, we exported payment file from electronic reporting files to a Azure Blob Storage. Then encrypted data with PGP with Azure functions. PgpCore runs on .NET Core and also needs additional permissions in file systems. It was easy to manage PGP encryption outside D365 due to this restrictions.
Thanks Andre and Nuno. However, I was wondering that doesn't D365 FO has out of box classes for Encryption (Cryptography API ) ?? or it has another purpose??
out out the box, NET provides many standard cryptographic algorithms. For PGP you must third party library because isn't implemented in .NET Framework.
Thanks Nuno
@Andre - This PGPCORE library looks like is not compatible with Visual studio 2015 , its not opening. I saw it will be for VS2017 , please suggest
PgpCore is for .NET Core and it can't be loaded to .NET Framework applications such as D365FO. I suspect it's what you're trying to do.
Nuno suggested something else - using it in Azure Functions.
Visual Studio 2015 doesn't support .NET Core development, therefore use a newer version for this purpose.
Martin , I have to Encrypt payment file while its getting generated from D365FO.
Moreover , Encryption using Azure functions is something outside from D365FO ? I would like to know about this as well , please elaborate more
Azure functions runs outside D365 F&O, it’s a simple way to run processes, etc. that cannot be executed inside F&O. For example I already used Azure functions with F&O to export payment files to Bank’s SFTP, encrypt data with PGP, etc.
Not all is possible to perform inside F&O.
What you can do ( just an example ), there are other possibilities
1 - Export payment files from Electronic Reporting to Azure Blob storage.
2 - After exporting, inside F&O, execute an Azure Function to encrypt data ( read from Blob Storage and write back to Azure Storage ).
3 - Read Result from F&O
Thanks Nuno , I wanna understand more about point 2 . How to execute Azure function for PGP Encryption using X++ ? Would you please redirect me to some examples you wanna share?
Also note that there are .NET Framework libraries you could use, such as BouncyCastle.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 611 Most Valuable Professional
André Arnaud de Cal... 529 Super User 2025 Season 2
Sohaib Cheema 285 User Group Leader