• cooldamsel
  • NEWBIE
  • 119 Points
  • Member since 2013
  • Certified Developer

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 21
    Questions
  • 41
    Replies
Hi All,

I have created a WCF service to update a case in Salesforce. My service is working fine and updating the case in Salesforce. I am updating ony the status field in Case but the Case owner is also getting updated. I am not sure of the reason why the owner is updated. My logic is also that am including only the status field and I have not included the owner field. Please advise me on this.

Thanks in advance.
Hi All,

I am new in Salesforce1 App development. I have created a VisualForce page which contains map, date picker, custom visualforce components and visuaforce remoting methods. I have created a functionality which redirects to another page url using window.location.href. Then i noticed from documentations that window.location will not work in mobile devices. Then on further analysis found that we need to use sforce.one.naviagteToURL and my code is

Redirect : function ()
{
    var url = '/apex/MyCustomPage';
    if( (typeof sforce != 'undefined') && (sforce != null) ) 
    {
          // Salesforce1 navigation
          sforce.one.navigateToURL(url);
    }
    else
    {
          // Set the windows URL
          window.location.href = url;
    }
}


This above code works fine in my desktop version but when i use the same in mobile device, the components like DatePicker, Custom Compoents, map inside MyCustomPage are not loaded in the page when this redirect method is called. Am breaking my heads with this. Anyone please help me out.

Thanks in Advance,
Indhu
Hi All,
I have a question whether if SFDC Id is given in address bar, can we redirect to a VF page automatically? The VF page being a detail page for a Custom Object.
Ex: Given: http://cs1.salesforce.com/aoB0000xxxxpOk in address bar,
Redirect To: http://cs1.salesforce.com/apex/<VF_Page>?id=​aoB0000xxxxpOk
 
Please help, thanks in Advance.
Aditya
Hello, I have a requirement to send Attachment file data to a third party system. Currently I am quering each attachment in a separate batch and then convert the blob data to base64 string to form a specific XML for the third party API to accept. Then issueing a apexcallout to send the attachment data to that system.
string requestBody = '<Job><InputType>'+attachment.ContentType.substringAfter('/')+'</InputType><InputURL></InputURL><InputBlob type="binary">'+EncodingUtil.base64Encode(attachment.Body)+'</InputBlob></Job>
request.setBody(requestBody);

This is working fine although the problem is with large attachments. When in an average, an attachment is of size around 7MB, the base64 string is hitting the System.heaplimitexception of 12MB and the callout fails. Salesforce supports to attach a file upto 25MB size, so i have to support that file size. But I am severely limited by the heaplimit exception. I tried the
request.setBodyAsBlob()

o send the blob data directly to external system but that again it has only 3MB of limit. Could you please help me to show any solution to get around it?
Thanks in advance.
Hi,

Can anyone explain me what the following exception refers.

'java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean'

I am not sure of where the exception occurs. Thanks in advance.
Here my Webservice code :
                     
                            Authentication authentication = new Authentication();
                            authentication.Username = "aaa";
                            authentication.Password = "bbb";
                            authentication.Domain = "http://my-pc:myport/tfs";
                            authentication.ServerURL = "http://localhost:myport/tfs";
                            WorkItem newBug = new WorkItem(DevelopmentProject(authentication).WorkItemTypes["Bug"]);
                            newBug.Fields["Title"].Value = "Attchments";
                            newBug.Attachments.Add(new Microsoft.TeamFoundation.WorkItemTracking.Client.Attachment("C:\\Users\\estsys\\Desktop\\test\\test.txt", "TextFile"", "TextFile"));
newBug.Save();   


above code is working ..... but, how can i use salesforce attachment path in the above code.......
here my requirments, i want to send files Salesforce TO TFS using outbound message.. is it possiable?....give me any idea...
Hi,

I am a newbie in salesforce. Can anyone please explain me how to solve the following scenario using data loader.

I have two objects: object1 and object2. The two objects have a common column 'global id'. There are 50000 records in object1. My scenario is when the column values are equal in two objects, i need to update object1.

Can anyone please provide a solution for this?

Thanks in advance.
Hi there,

I have more 2 yrs of Experience in salesforce, I am Salesforce Certified Developer, hands on experience in salesforce Cofiguration , Apex Class, Vf pages, Test classes, Integration, Triggers, documentation and handeling clients etc.
Currently am looking salesforce developer freelancer job.
Any help would be appreciated.

to know more about me.
My Linkedin Profile : http://www.linkedin.com/pub/abhi-tripathi-%E2%98%81/46/906/317
My Blog : http://abhithetechknight.blogspot.in/2014/05/opportunity-probability-field-value.html

Warm Regards,
Abhi Tripathi
Salesforce Certified Developer
Mobile : +91-9928833992
Skype : abhi.tripathi7


Hi,

I am a newbie in saleforce. Please help me to complete the below one.

I have an apex class which is a without sharing class. I need to write test class for that without sharing class. Whenever i run the test class, the class is getting failed and showing the error as 'Attenmpt to dereference a null object' in the place where am initiating my apex class.

Please help me out.

Regards,
Indhu R
have a webservice written in .net which gets the request from the outbound message and sends the response. But salesforce keeps hitting my application and it still waits in outbound queue. How do I stop salesforce to hit the application once the response is received? Following is my code sample

notificationsResponse INotificationBinding.Pur(PTrans.notifications PurP)
    {
        string id,session = null;
        PTrans.notifications test = PurP;
        session = test.SessionId;
        string url = test.EnterpriseUrl;
        PTrans.Transaction__cNotification[] request = PurP.Notification;
        PTrans.notificationsResponse response = new notificationsResponse();
        response.Ack = true;
        return response;
    }
When I tested with soapui, I get the following response,

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <notificationsResponse xmlns="http://soap.sforce.com/2005/09/outbound">
         <Ack>true</Ack>
      </notificationsResponse>
   </soap:Body>
</soap:Envelope>

I want to get pdf file content as string in apex, currently i don't see any option? how do I get raw pdf back with all formats like '%PDF', "%%EOF", "trailer"

 

All the pdf data i'm getting from content, document, visulaforce render as pdf are mostly blob or base64 format, but when i try to convert them into string using encoding util class, i can't able to get the raw pdf file as i epxect,

 

any help?

 

Thanks

Ram

hi,

   

  i wanna a use group by clause in my Soql but we need to do in dynamically. is it possible

 

 

i am getting fields and object and condition are dynamically.

  

now i need to add group by in that query which is selected by the user.

   

 is it possible with dynamic soql.

 

 

Regards

Ashok chandra