Hi Community,
I have .pfx certificate file that I have setup and marked as Active on Electronic Signature Certificate Form (AOT Name for table: XMLCertificate)
Requirement:
Whenever I generate an Invoice in D365fO (lets take the Sales Invoice example), I would like the Digital signature(selected in Electronics Signature Certificate form) to show up when generating Sales Invoice.
This is a dummy code I have referred and written. How can I use the certificateValue in my SalesInvoice Report and design for me to show the digital signature fetched using below code. At the design level, should i create an image control and what should be its properties ? And for Report logic does localCertificate value needs to be stored in temp table and in which format ?
Would appreciate your help on this ?
using System.Security.Cryptography.X509Certificates;
X509Certificate2 certificateValue;
XmlCertificate localCertificate;
localCertificate = XmlCertificate::findActiveXmlCertificate(curUserId()); // since it needs to be fetched only per user
certificateValue = localCertificate.getDigitalCertificate();