function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Breandan McCannBreandan McCann 

QR code opens up form on company website prefilled by salesforce data

Hi,

This is more of a question of where do i even start nevermind how to do it, haha


Basically what we want to happen is,
 
  1. Customer scans QR code and in the URL will be the ID of that corresponding machine(asset) on salesforce.
  2. It will need to call this record and get the data from salesforce and pre-fill a form on the company website from this data

Basically I need help on what way to go about this.

Will i need to find someone to build a script from scratch that will use the url and call on salesforce api to pull the data and prepopulate the form. I am not familliar with coding so i dont even know if this is possible.


Is there any easier ways that you guys can think of?
VinayVinay (Salesforce Developers) 
Hi Breandan,

This looks like bit tricky implementation and yes you would need to developer to build this solution and update records in salesforce as per your requirement.

Kindly review below examples that can help you and understand better.

https://salesforcecodes.blogspot.com/2021/06/how-to-scan-barcode-values-and-send-to-salesforce.html
https://www.simplysfdc.com/2015/02/salesforce-qr-code.html

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Yashika garg 1Yashika garg 1
To build your prefill link, you'll need:
The form's address (URL)
Go to the Publish page and copy the public address under Your form is publicly available at this address.

If you've published the form on your own website (https://techzoan.com/)page, you can also use that page's URL. Now, decide which fields you want to prefill.