0

I have created a lightning component in salesforce1 for my project to scan the QR code and then redirect to the contact, based on the QR code. I have used Scan.me app for QR code capture. For some reason, the url directs to classic salesforce and I have to login everytime in browser and then it opens in salesforce1.

if (component.get("v.UrlType") == "Custom Field"){

        var callback = component.get("v.baseURL")
          + "/apex/BarCodeSearch?objectName="
          + component.get("v.CustomObject") 
          + "&fieldName="
          + component.get("v.CustomField")
          + "&fieldValue=SCANNED_DATA";

        var url = "scan://scan?callback=" + encodeURIComponent(callback);    
        urlEvent.setParams({
            "url": url
        });
    }

BaseURL= https://coxauto--ssgph.lightning.force.com

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.