i used same fieldid for both tables salesheader and salesinvoiceheader
field(50199; "QRCodeImage"; Blob)
{
Caption='QR Code Image';
}
in this field of sales header i saved qrcodeimage and i want after posting it also saved in salesinvoiceheader table how is it possible
i also write eventhandler but it cannot work
Copying the QR code Blob after posting didn’t work because either the event didn’t fire, the Blob wasn’t loaded, or the value was overwritten later in posting. The reliable approach is to copy the Blob after the Sales Invoice Header is inserted, call CalcFields on the Sales Header Blob, copy the stream, and then Modify the posted invoice header to persist it.
Generating a QR code from a TLV string without external APIs is supported in BC Cloud by building the TLV, converting it to Base64, and using Business Central’s built-in QR/Barcode generation to create an image stream and store it in a Blob. No .NET or external services are required.
Regards,
Oussama Sabbouh
1 people found this reply helpful.
Was this reply helpful?YesNo
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.