• java dev
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 16
    Replies
Hi all,
   
    Salesforce has opportunity & opportunity products. When i update opportunity products, the lastmodifiedate of opportunity also getting modified.

I have two objects ,quotes & quote lines. Quote lines has master-detail relationship with quotes. A quote may have one or more quote lines. So when i updating quote lines, lastmodifieddate field of quotes is not getting modified.
I want it to be modified same as how salesforce is doing with opportunity & opportunity products.

Can any body suggest how to implement this.Hope i will get response very soon.

Thank you,
Sudheer Tumu.
Hi All,
      
       I think salesforce already released new API (is it version 8.0?). When I dowloaded the WSDL file from my developer's account, It says version 8.0.

But i have old wsdl file of my account (v 7.0) & i am using that wsdl to query salesforce & it is working fine.
So, That means
Can i use old wsdl even the new wsdl is there in my account to query?

Will the salesforce remove compatibility with old wsdl or not?

Hope  i will get reponse very soon.

Thank you,
Sudheer Tumu.


Hi all,

    I have to write one application which will query salesforce data for every 5 mins & put that data in my local Databse.

But in the process os querying , some times i am getting "Connection reset " exception.

1) How to detect this exception?
2) How to avoid getting this exception?

After transferring some data to my target Db, some intermediate query is giving me this exception. So, my subsequent queries are failing.
As a result , my target Db is in inetrmediate state.I am using JDBC to connect to my target Db.

3)How to maintain consistancy for my target Db?

Please any body help me.

Thank you,
Sudheer Tumu.

Hi all,

    I have to write an application which will query salesforce fo revery 5 mins & get the data and put it on my target Database.

But after 2 hours running continuously, I am getting "Invalid session Id" exception & my session is getting timed out. I know the default session time period is 2 hrs for salesforce.

So ,1) how to detetc whether the session is expired or not?

2) If session is expired, how to set it back dynamically, So i need to login again?

Currently what iam doing is, I am storing my login time, & when ever i am queying for salesforce, I am checking whethet the time of querying is 1hr 50min from login time. If yes i am again loging in.

so, 3) what about my previous session?
4) Is it good to keep that sessions open?

Any one please help me. I want this urgently.

Thank you,
Sudheer Tumu.

   
Hi all,
 
In IE(Internet Explorer) When I am executing my s-controls by my links, after clikcing on the custom link, I am getting
 
Security INformation saying "Your page contains Both secure and non-scure items", Do you want to allow?
 
Even with small scontrol, like
 
<html><head><title> </title>
<script src="
https://www.salesforce.com/services/lib/ajax/beta3.3/sforceclient.js"
 type="text/javascript"></script>
<script language="JavaScript">
function reSizeWindow() {
 alert("hello");
}
</script>
<body onload="reSizeWindow();">
<center>
<iframe name="emailFrame" id="emailIframe" width="0" height="0" frameborder="0"></iframe>
<br><br><br>
<SPAN STYLE=" font-size: 75%; font-family: 'Arial', 'Helvetica', sans-serif;"> 
Please Wait....
</span><br><br>
<img src="/img/waiting_dots.gif" alt="Please wait..." title="Please wait..." height="20" width="196">
</center>
</body>
</html>
 
Can any body give me suggestions to avoid getting the Security messages coming from IE.
 
I dont want to get those messages.
 
 

Hi all,

In my Quote lines Object which is having master relationship to the Quotes Object.

A Quote may have one or more Quote lines.

In maill merge, Iam able to replace Quote Amount because it is single vale. But I am not able to replace Quote Lines replated data (beacuse there may be so many Quote lines ), I dont know how to give template fields for Quote Lines.

How to iterate throughout all the Quote Lines?

 

Can any one help me. I want this very urgent.

 

Thank you.

Hi all,
 
Iam using "sales Quote with line Items App". For Quote Amount calculation , Now I have to click on "calculate QuoteAmout " custom link.
 
But what i want is , whenever i have added Quote Lines Itself has to give me Quote Amount without clicking on that custom link.
 
Can any one tell me how to do this?
 
When clicking "save" Button after adding quote lines , I have to invoke that custom link,
 
Is there any way to change the salesforce pages & their links? 
 
I want solution for this as soon as possible.
 
Sudheer Tumu.
Hi All,

I want to generate mail merge Word document with data about Quote & Quote Lines.

Iam using "Mail merge for quotes". But it is not replacing Quotes & QuoteLines. Can any one please suggest me which App to use.
 
Its very urgent for me, please...

ThankYou,
Sudheer Tumu.
Hi All,

I want to generate mail merge Word document with data about Quote & Quote Lines.

Iam using "Mail merge for quotes". But it is not replacing Quotes & QuoteLines. Can any one please suggest me which App to use.
 
Its very urgent for me, please...

ThankYou,
Sudheer Tumu.

Hi all,
 
I have downloaded  "Mail Merge for Quotes Application " and installed in my account. But  My Quote Lines are not getting replaced by the Original data. Quote fields are getting replaced But Quote Line Fields are not getting replaced.
Iam using the default template documents provided by that App only.
 
can any one suggest me what is the real problem.
 
Thank You,
Sudheer Tumu.
Hi there,
   I am trying to query custom objects 'Quote'. I am using the enterprise WSDL.
a) The query runs from the SForce explorer and returns the results.
b) I am able to get the metadata for the object 'SFDC_520_Quote__c'.
c) The following java code throws an exception
 
qr = binding.query("select Id, opportunity__c from SFDC_520_Quote__c");
Exception:
Sep 18, 2006 5:30:22 PM org.apache.axis.client.Call invoke
SEVERE: Exception:
org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.SObject - Opportunity__c
 at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
 at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
 ...
Am I missing something or is there a bug? Please help.
 
Sudheer
 
      
Hi there,
   I am not able to query custom objects like 'Quote' through java.
 
a) I am able to get the metadata for the 'SFDC_520_Quote__c' object, but am not able to retreive any fields other than id.
 
b) I get results in the SForce explorer SOQL window for the query 'select Id, opportunity__c from SFDC_520_Quote__c'.
 
c) I get the the exception for the following line:

qr = binding.query("select Id, opportunity__c from SFDC_520_Quote__c");

Sep 18, 2006 5:30:22 PM org.apache.axis.client.Call invoke

SEVERE: Exception:

org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.SObject - Opportunity__c

at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)

at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)

at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)

d)

Hi all, I have a reqquirement to get All the email Templates of an account and list all those in my Application.
 
Can any one Suggest me how to do it & plz provide SampleCode.
 
ThankYou
Sudheer
Hi all,
   
    Salesforce has opportunity & opportunity products. When i update opportunity products, the lastmodifiedate of opportunity also getting modified.

I have two objects ,quotes & quote lines. Quote lines has master-detail relationship with quotes. A quote may have one or more quote lines. So when i updating quote lines, lastmodifieddate field of quotes is not getting modified.
I want it to be modified same as how salesforce is doing with opportunity & opportunity products.

Can any body suggest how to implement this.Hope i will get response very soon.

Thank you,
Sudheer Tumu.
This board is for any and all questions about the Apex programming language, including syntax, features and capabilities.
  • October 07, 2006
  • Like
  • 1
Hi all,
 
Iam using "sales Quote with line Items App". For Quote Amount calculation , Now I have to click on "calculate QuoteAmout " custom link.
 
But what i want is , whenever i have added Quote Lines Itself has to give me Quote Amount without clicking on that custom link.
 
Can any one tell me how to do this?
 
When clicking "save" Button after adding quote lines , I have to invoke that custom link,
 
Is there any way to change the salesforce pages & their links? 
 
I want solution for this as soon as possible.
 
Sudheer Tumu.
Hi all,
 
I have downloaded  "Mail Merge for Quotes Application " and installed in my account. But  My Quote Lines are not getting replaced by the Original data. Quote fields are getting replaced But Quote Line Fields are not getting replaced.
Iam using the default template documents provided by that App only.
 
can any one suggest me what is the real problem.
 
Thank You,
Sudheer Tumu.
Hi there,
   I am trying to query custom objects 'Quote'. I am using the enterprise WSDL.
a) The query runs from the SForce explorer and returns the results.
b) I am able to get the metadata for the object 'SFDC_520_Quote__c'.
c) The following java code throws an exception
 
qr = binding.query("select Id, opportunity__c from SFDC_520_Quote__c");
Exception:
Sep 18, 2006 5:30:22 PM org.apache.axis.client.Call invoke
SEVERE: Exception:
org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.SObject - Opportunity__c
 at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
 at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
 ...
Am I missing something or is there a bug? Please help.
 
Sudheer
 
      
Hi,
 
I have two questions on mail megre.
 
1. Is there a way to display a lead date field + 30 days ?
 
2. I have a list of items in my document. How can I display line numbers automatically for number of items displayed (eg; below)
 
1.    Item Name1(Merge Field from SF)           Item Desc1(Merge Field from SF)   
2.    Item Name2(Merge Field from SF)           Item Desc2(Merge Field from SF)   
3.    Item Name3(Merge Field from SF)           Item Desc3(Merge Field from SF)   
 
Thanks.
 
  • August 11, 2006
  • Like
  • 0

Hello,

I have developed  some Word mail merge templates for my company (Enterprise edition) that print an opportunity with a specific layout (something like an order acknowledgement). We have been using the template for two weeks now with no problems, and all of a sudden from the beginning of this week we are getting different error messages.

More specifically, I get messages like: "Merge data error: End tag 'esforce.com' does not match start tag 'data'", or other versions of this message (instead of esforce.com, I get parts of the Opportunity information), or “A string literal was expected, but no opening quote character was found.

My guess is that information during a mail merge is passed on using URL encoding, and when special characters are involved (ex. Product description) the URL parameters break. However, I've not been able to pinpoint the problematic characters.

Has anyone faced the same problem? Or has anything in the mail merge process changed during the last week? (Opportunity field names?)

Any help would be greatly appreciated.

Thank you,

Alex

Hello,
 
handling the sforce - API is quiet new to me. I think it's the best way to describe what I've already done:
 
I've downloaded the Enterprise WSDL, and succeeded in generating customer object classes.
 
When I try to query any one of these customer object, I get the message above.
...
queryString = "select Plan_Summe__c from Projekt__c";
        try {
            qr = binding.query(queryString);
            boolean done = false;
            if (qr.getSize() > 0) {
                while (!done) {
                    for (int i = 0; i < qr.getRecords().length; i++) {
                        Projekt__c records = (Projekt__c) qr.getRecords(i);
                        System.out.println("Summe: " + i + " " + records.getPlan_Summe__c());
                    }
...
 
When I try to bypass the 'invalid field' problem by using an ID-field as it is used in alle SObject classes, I will encounter a ClassCastException. Querying a standard SObject (e.g. Contact) works fine. The debugger showed that the QueryResult contains an array of com.sforce.soap.enterprise.sobject.SObject when it should instanciate com.sforce.soap.enterprise.sobject.Projekt__c.
 
What could be the problem?
 
Thanks in advance.
Andy
 
 
  • March 13, 2006
  • Like
  • 0
I have an Email template setup where I am trying to print out the Opportunity Line Item fields.
I can get access to all other related fields except the line items (products)

This works if I use a Mail Merge option with a Word doc template.

Reason for using an HTML email template - so that the sales rep can email out a proposal
Any help/suggestions are appreciated

Thanks
MC

We are currently creating contracts (in Word) using the mail merge template function.  The problem is that our customers don't want to see language specific to a product they didn't purchase.  Also, we don't want to print every possible product/service that isn't included in the sale.  Creating many, many possible versions of the contract just isn't practical. 

One of my peers has developed a Word document containing macros that parses through the output of the mail merge and includes or excludes sections using bookmarks.  The macro displays a window where the user selects various options that control the customization.  He created this process because he was told that you couldn't mix macros with the mail merge functionality.  It appears to me that you could mix the two but would have to have Office Edition installed.  True or false?

The process this person developed requires too many steps and I fear that our sales people will mess it up and thus proclaim it a failure.  The solution I would like to create would prompt the user for information needed to customize the contract language and then create the output in a single step.  Any thoughts on how I could do this in Word or any other technology? 

I've created an sforce control to generate quotes based on opportunity information. I've gotten as far as creating the word document out of a mail merge template, create an activity to say the quote has been created, and open up the browser to the new email page using an email template. The thing I want to do now is turn that document into an email attachment. How can I do that????

This is the link I'm using to open up the email:

window.top.location =  '/email/author/emailauthor.jsp?retURL=/' + Opportunity_ID + '&what_id=' + Opportunity_ID + '&who_id=' + Contact_ID + '&template_id=' + email_Template_Id

 

Help!

Rod

  • August 09, 2004
  • Like
  • 0

Hi,

Is there a way to keep the session alive through the API by making some API calls within every two hour timeout period?  It seems that trying to keep the session alive using global describe calls or query calls  fails after a certain time, even though the session does last longer than the original 2 hour period.  

What is the maximum amount of time a session can be kept alive? 

What API calls should be used to keep the session alive?

Thanks,

Shun

 

  • December 21, 2003
  • Like
  • 0