• Wmohan
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 0
    Replies
My VBA code as below has been working fine for long time, but recently it always get response = "". But I still can get authentication token as before. 
Dim objRequest As Object
    Dim fullUrl As String
    Dim blnAsync As Boolean
    Dim strResponse As String
    
    Set objRequest = CreateObject("MSXML2.XMLHTTP")
    fullUrl = Query_Data_Url_Production & query
        
    blnAsync = True
    With objRequest
        .Open "GET", fullUrl, blnAsync
        .SetRequestHeader "Authorization", "Bearer " & token
        .Send
        'spin wheels whilst waiting for response
        While objRequest.readyState <> 4
            DoEvents
        Wend
        strResponse = .ResponseText
    End With
I also tried with curl and the token I obtain from salesforce api. 
User-added imageand response is empty, too.
Please do me a favour.
 
  • November 08, 2019
  • Like
  • 0
Hi all,
I have "Force.com" Project source code. When I try to import this project into Eclipse Force.com IDE,there is a warning message to "Upgrade Force.com Project" to Summer'14.
I upgrade the project and some of the source files are replaced and reflect from the server. Is there anyways to avoid replacing original source code with ones from the server. Any ideas please
 
  • November 14, 2014
  • Like
  • 0

I have created a site to enter email and password.  The object used is contact, the fields used is contact.email and contact.password__c.

 

After the user enter the email and password, I have already placed to check for the existance of email, blank values etc.

 

I would like to check whether the password entered by the user is the same as what is there in the record corresponding to the email entered.

 

Not sure how to figure the logic.  any body can advice?

Trying to use webservie to create xml and ftp to jobcentral.

 

 public PageReference postJob() {
        HttpRequest req = new HttpRequest();
        HttpResponse res = new HttpResponse();
        Http http = new Http();
       
        req.setEndpoint('http://dpi.careerbuilder.com/webservices/dpitg.aspx');
        req.setMethod('POST');
        req.setHeader('Content-Type', 'application/xml');
        //req.setBody(this.xmlOutput);
        req.setBodyAsBlob(Blob.valueOf(this.xmlOutput));
        //req.setCompressed(true);
       
        Try {
            res = http.send(req);
            this.postResponse = res.toString() + ' : ' + res.getBody();
        }  Catch (Exception e) {
            this.postResponse = 'Error: ' + e.getMessage();
        }
       
        return null;  
        }

-------------------

I have the message below, not sure how to fix this.

 

System.HttpResponse[Status=OK, StatusCode=200] : <html><head><title>5|CBAction is a required field.<BR></title></head><body>5|CBAction is a required field.<BR></body></html>

 

 

 

  • March 20, 2013
  • Like
  • 0

Hi

 

I am new to the integration between salesforce and the other websites.

)

I would like to seek some help form experienced persons.

 

I would like to establish and test the connection from salesforce  to 3 sites, monster.com (using ftp), stjobs (using API) and jobcentral (using webservice)

 

It is highly appreciated, if any body can help / advice me. 

 

I am perty new to this type of integration.

  • March 16, 2013
  • Like
  • 0