• jvaloto
  • NEWBIE
  • 25 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 8
    Replies

Hello,

 

I am using Analytics API to retrieve a report and I want to use a existing report and change the filter, I am using this code to get the describe of the report:

 

HttpRequest req = new HttpRequest();
req.setEndpoint('https://na8.salesforce.com/services/data/v29.0/analytics/reports/REPORT_ID/describe');
req.setMethod('GET');

req.setHeader('Authorization', 'OAuth MY_ACCESS_TOKEN');

Http http = new Http();

HTTPResponse res = http.send(req);

String responseDescribe = res.getBody();

 


This return the right describe, but my problem is when I change the filter and send in POST to retrieve the data of report with the new filter:

 

HttpRequest req2 = new HttpRequest();
req2.setEndpoint('https://na8.salesforce.com/services/data/v29.0/analytics/reports/REPORT_ID');
req2.setMethod('POST');

req2.setHeader('Authorization', 'OAuth MY_ACCESS_TOKEN');

//change the old value of parameter to the new value 
req2.setBody(responseDescribe.replace('Account 1', 'Account 2'));
    
Http http2 = new Http();

HTTPResponse res2 = http2.send(req2);

String responseDescribe2 = res2.getBody();

 

My responseDescribe2 have the data with the old filter, but when I execute in POST with the same result of reponseDescribe in workbench.developerforce.com this response works.

 

There is missing any parameter to send in my POST?

 

How can I change this filter to the new value and use in my apex class?

 

I need to include the Account Name in my filter.

 

Thanks.

Hello,

I sent my org to Secure Scanner with Beta Rules (+CRUD/FLS) and in the result that I received is this message:

Path 1:
Query Name - Dereferenced_Field
Severity
- Serious


This error does not contains explanation about what it's mean.

What does this message mean and how can I fix this error?

  • September 02, 2013
  • Like
  • 1

Hello,

I have a email template, this email is related to Lead, if I send a test of email template or an workflow I recieve the email with the variables, but if I send for a Send Email button in Activity History, the variables of template do not appears.

 

Anybody can help me?

 

Thanks.

Hello,

 

I am using this link http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_picklist.htm to work with picklist in API.


I found a way to delete the field, but I want to delete the option.

 

Anybody have a example to how to delete the option?

Hi,

 

I am trying to generate a wsdl, I copy the enterprise to a .wsdl file, when I execute the command line: java -classpath wsc-20.jar com.sforce.ws.tools.wsdlc enterprise.wsdl enterprise.jar


I receive several words on the screen to fade quickly, and in the end show me this message:
^
1 error
Error: Failed to compile

 

I already tryed wsc-20 and 22.

 

Anybody?

Hello,

 

I am building a JAVA application, and I use WSC, but is dynamic, I do not use Account[] or Lead[], I have to create a SObject to pass in my connection.

 

connection.upsert(externalIDFieldName, sObjects)

 

I have my search in SQL:

 

PreparedStatement ps = ConexaoSQL.conectaBanco().prepareStatement("SELECT TOP 1 Id_Salesforce, LastName, Company FROM lead");

 

Now I have to create an SObject starting from this research.

 

Could someone help me?

  • September 11, 2012
  • Like
  • 0

Hello,

 

I have my package and a Schedulable class, I want to create a Schedule job in a Post Install Script.

 

Anybody can help me?

Hello,

I sent my org to Secure Scanner with Beta Rules (+CRUD/FLS) and in the result that I received is this message:

Path 1:
Query Name - Dereferenced_Field
Severity
- Serious


This error does not contains explanation about what it's mean.

What does this message mean and how can I fix this error?

  • September 02, 2013
  • Like
  • 1
Hello,
I am having sandbox account.I need to do Salesforce to Salesforce communication as well as I need to use Managed Packages for distributing application to various clients.Somewhere I read that Developer Edition is required for using above functionalities.Please correct me and how can I move my objects,VF pages from sandbox to Developer Edition.

Hello,

 

I am using Analytics API to retrieve a report and I want to use a existing report and change the filter, I am using this code to get the describe of the report:

 

HttpRequest req = new HttpRequest();
req.setEndpoint('https://na8.salesforce.com/services/data/v29.0/analytics/reports/REPORT_ID/describe');
req.setMethod('GET');

req.setHeader('Authorization', 'OAuth MY_ACCESS_TOKEN');

Http http = new Http();

HTTPResponse res = http.send(req);

String responseDescribe = res.getBody();

 


This return the right describe, but my problem is when I change the filter and send in POST to retrieve the data of report with the new filter:

 

HttpRequest req2 = new HttpRequest();
req2.setEndpoint('https://na8.salesforce.com/services/data/v29.0/analytics/reports/REPORT_ID');
req2.setMethod('POST');

req2.setHeader('Authorization', 'OAuth MY_ACCESS_TOKEN');

//change the old value of parameter to the new value 
req2.setBody(responseDescribe.replace('Account 1', 'Account 2'));
    
Http http2 = new Http();

HTTPResponse res2 = http2.send(req2);

String responseDescribe2 = res2.getBody();

 

My responseDescribe2 have the data with the old filter, but when I execute in POST with the same result of reponseDescribe in workbench.developerforce.com this response works.

 

There is missing any parameter to send in my POST?

 

How can I change this filter to the new value and use in my apex class?

 

I need to include the Account Name in my filter.

 

Thanks.

Hello,

I have a email template, this email is related to Lead, if I send a test of email template or an workflow I recieve the email with the variables, but if I send for a Send Email button in Activity History, the variables of template do not appears.

 

Anybody can help me?

 

Thanks.

Hello,

 

I am trying show the quote line items in my visualforce page, but my standard controller is Contract, and I have a relationship with Opportunity.


For access the Quote Line Items is Contract.Oportunidade__r.SyncedQuote.QuoteLineItems, but show this error: Aggregate Relationship is used in an unsupported complex expression containing 'SyncedQuote.quotelineitems' .


Then I created another page that get this id of SyncedQuote and show the line items...


This is my call to another page:

 

<apex:include pageName="quote_line_items">
<apex:param name="id" value="{!Contract.Oportunidade__r.SyncedQuoteId}"/>
</apex:include>

 

and this is the error: Id value is not valid for the Quote standard controller...

 

Someone can help me?
Thanks.