• Hugo_Hernandez
  • 0 Points
  • Member since 2016
  • Developer
  • Doit Cloud Consulting

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 3
Hi all,

we found out some effects of using SItes and addind Visualforce pages to it.
Fonts, styles get distort, why this?.
Hi guys, I need your help. I am not a developer and I don't know to edit the codes below. I placed these codes on a Detail Page Button with Content Source as OnClick Javascript. These codes were only handed to me, with the purpose of calling an external web API.

HttpRequest req = new HttpRequest();
Http http = new Http();        
// set the request method


String url = 'http://api.xxx.com/quickbooks/createinvoice’ + '?invoiceRefNumber=' + EncodingUtil.urlEncode([TheInvoiceReferenceNumber],'UTF-8’) + '&price=' + EncodingUtil.urlEncode([TheInvoicePrice],'UTF-8’) + '&date=' + EncodingUtil.urlEncode([TheInvoiceDate],'UTF-8');
// add the endpoint to the request

// create the response object

HTTPResponse resp = http.send(req);

When the button is clicked, I get an error: Unexpected identifier 'req'

What should I do? Thanks guys.