SFDO-Community / Summit-Events-App

Salesforce Event System developed at the University of St. Thomas
BSD 3-Clause "New" or "Revised" License
58 stars 56 forks source link

[BUG] Registration QR image broken #562

Open ppetersen15 opened 4 months ago

ppetersen15 commented 4 months ago

Describe the bug Summit_Events_Instancesr.summitRegistration_QR_Codec field does not generate the QR code and displays a broken image icon instead. I was able to create a new QR field (Registration QR Code v2) that uses a different website API to generate the QR and it was successful, so I suspect the issue is with the Google Chart API. New QR Field formula: IF($Setup.summitSummit_Events_Settingsc.summitManaged_Packagec, IMAGE('https://api.qrserver.com/v1/create-qr-code/?data=' + summitEventr.summitCommunity_Base_URLc + 'summitSummitEventsRegister?instanceID=' + Id + '&size=400x400','Scan QR code to open record in mobile.',250,250), IMAGE('https://api.qrserver.com/v1/create-qr-code/?data=' + summitEventr.summitCommunity_Base_URLc + 'SummitEventsRegister?instanceID=' + Id + '&size=400x400','Scan QR code to open record in mobile.',250,250) )

To Reproduce Steps to reproduce the behavior:

  1. Go to Summit Event Instance record
  2. Scroll down to Registration section
  3. See error: broken image displayed on Registration QR Code field.

Expected behavior QR code should appear for the Registration link.

Screenshots image

Desktop (please complete the following information):

Additional context

rdblake21 commented 4 months ago

Thank you for submitting the bug @ppetersen15! The QR Code is generated leveraging a Google service and we recently learned that Google stopped providing this service, thus breaking rendering of QR Codes - https://developers.google.com/chart/infographics/docs/qr_codes

We're currently working on a way to resolve this, so more to come!