• Sayyada Habib
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
Hi,

I've been trying to install the Ant Migration Tool on my Apple Macbook Air, however I can't seem to get it to install correctly. There was a time when I installed it once and it seemed to be working okay. But then when I turned my laptop the next day, the tool was no longer installed on my laptop.

I've used quite a lot of resources online to assist me with this, however nothing seems to work for me. I just can't seem to install the tool on my laptop again.

Does anyone have any useful resources that they know for sure would help with installing the Ant Migration Tool for a Mac?

Thank you!
Hi, 

I am trying to generate a QR code for a customer based on their License Plate number using an Apex class on a VisualForce page.

I get the following error when I preview my VisualForce page: 

Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at input location [1,2] 
An unexpected error has occurred. Your solution provider has been notified. (System)

My code is as follows:

public with sharing class Customer{

public String qrcode {get;set;}

    public Customer(ApexPages.StandardController stdController) {
        Customer__c customer = (Customer__c)stdController.getRecord();
        List <Customer__c> c = [SELECT Id, License_Plate__c FROM Customer__c WHERE Id =:customer.Id];
        String customerLicensePlate = customer.License_Plate__c;
        
        String apikey = '96b8470ea48cf0f6551db96f3e505005268b52d1';
        
        String requestEndpoint = 'https://api.scanova.io';
        requestEndpoint += '?q=' + customerLicensePlate;
        requestEndpoint += '&APPID=' +apiKey;
        
        Http http = new Http();
        HttpRequest request = new HttpRequest();
        request.setEndpoint(requestEndpoint);
        request.setMethod('GET');
        HttpResponse response = http.send(request);
        
        if(response.getStatusCode() == 200) {
            Map<String, Object> results = (Map<String, Object>) JSON.deserializeUntyped(response.getBody());
            Map<String, Object> mainResults = (Map<String, Object>)(results.get('main'));
            qrcode = String.valueOf(mainResults.get('qrcode'));
        
        }
        
    }


}

Any ideas as to why I am getting the error above?

Thanks.
Hi,

I've created a QR code field for each customer record that is created in Salesforce and I'm trying to add this to a screen in flow builder. I am using the image display field in flow builder, however the QR code doesn't seem to be showing on the screen when I run the flow.

Any ideas on why this might be happening or what I can do to get this working?

Thanks
Hi,

I've been trying to install the Ant Migration Tool on my Apple Macbook Air, however I can't seem to get it to install correctly. There was a time when I installed it once and it seemed to be working okay. But then when I turned my laptop the next day, the tool was no longer installed on my laptop.

I've used quite a lot of resources online to assist me with this, however nothing seems to work for me. I just can't seem to install the tool on my laptop again.

Does anyone have any useful resources that they know for sure would help with installing the Ant Migration Tool for a Mac?

Thank you!
Hi, 

I am trying to generate a QR code for a customer based on their License Plate number using an Apex class on a VisualForce page.

I get the following error when I preview my VisualForce page: 

Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at input location [1,2] 
An unexpected error has occurred. Your solution provider has been notified. (System)

My code is as follows:

public with sharing class Customer{

public String qrcode {get;set;}

    public Customer(ApexPages.StandardController stdController) {
        Customer__c customer = (Customer__c)stdController.getRecord();
        List <Customer__c> c = [SELECT Id, License_Plate__c FROM Customer__c WHERE Id =:customer.Id];
        String customerLicensePlate = customer.License_Plate__c;
        
        String apikey = '96b8470ea48cf0f6551db96f3e505005268b52d1';
        
        String requestEndpoint = 'https://api.scanova.io';
        requestEndpoint += '?q=' + customerLicensePlate;
        requestEndpoint += '&APPID=' +apiKey;
        
        Http http = new Http();
        HttpRequest request = new HttpRequest();
        request.setEndpoint(requestEndpoint);
        request.setMethod('GET');
        HttpResponse response = http.send(request);
        
        if(response.getStatusCode() == 200) {
            Map<String, Object> results = (Map<String, Object>) JSON.deserializeUntyped(response.getBody());
            Map<String, Object> mainResults = (Map<String, Object>)(results.get('main'));
            qrcode = String.valueOf(mainResults.get('qrcode'));
        
        }
        
    }


}

Any ideas as to why I am getting the error above?

Thanks.
Hi,

I've created a QR code field for each customer record that is created in Salesforce and I'm trying to add this to a screen in flow builder. I am using the image display field in flow builder, however the QR code doesn't seem to be showing on the screen when I run the flow.

Any ideas on why this might be happening or what I can do to get this working?

Thanks