• hegde_hegdek
  • NEWBIE
  • 50 Points
  • Member since 2008

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 24
    Questions
  • 4
    Replies

Hello,

I want to write a google app engine java force.com application,which will be embbeded within force.com,can i use

{!$Api.Session_ID} for authentication if so how.

regards

kaushik

Hello,
I am creating a trip in tripit using tripitapi from salesforce apex,I am passing the following xml.
xml=<Request>
      <Trip>
        <start_date>2008-12-09</start_date>
        <end_date>2008-12-27</end_date>
        <primary_location>New York, NY</primary_location>
      </Trip>
    </Request>

I have also url encoded the entire above string including 'xml=; using EncodingUtil.urlEncode i am getting invalid signature error.
any help to resolve this error.
regards
kaushik

Hello,

Is there a way to call an apex class from another salesforce instance.

regards

kaushik

Hello,

I have a built a visualforce page with a lead standardcontroller,I have given read and write access to the lead object for the particular site application,which has the above visual force page,but whenever the site application with the visualforce application is launched,I enter the lead details and press submit(which calls the standard controller leads save option),but i get an error saying you are not authorized,can any one help me on this.

regards

hegdek

Hello, I have a custom field called total,which is calculated automatically by multiplying 2 custom fields unit and price,this should happen as soon as the unit and price fields are entered,I used a trigger i always get a readonly error,I cannot use formula as i cannot reference the othere fields

regards

hegdek

Hello,

How do i order the Tab Position in salesforce.

regards

kaushik

Hello Freinds,

I have a trigger on a child object,in this trigger i need to find reference to the master object,

But i am not able to get it ,it is always null.

regards

kaushik

Hello,

I am trying to use ajax toolkit in s-control in a professional saleforce edition but it doesnot work

 

eg code :-var result = sforce.connection.query("Select Name, Id from User");

I have Included <script src="/soap/ajax/13.0/connection.js">

but this doesnot work

regards

hegdek

Hello Friends,

does flex sdk work in salesforce professional edition.

regards

hegdek

Hello Friends,

I have a salesforce professional version,so i donot have acess to apex code,can i send an

email programtically using visual force page and not apex.

regards

hegdek

Hello Friends,

when i try to deploy an apex class from force.com ide,i get an error  Force.com project require an organization with metedata api enabled,how do i enable metadata api for an organization in my production system.

regards

hegdek

Hello Friends,

when i try to deploy an apex class from force.com ide,i get an error  Force.com project require an organization with metedata api enabled,how do i enable metadata api for an organization in my production system.

regards

hegdek

Hello Colleagues,

I am not able to see the apex class/trigger option under the develop menu,I have enable the develop checkbox to my user profile.Can any one please help me

regards

hegdek

Hello Friends,

I have customized the fields of standard object like oppurtunity,with a field 'yy' type text(20),how do i reterive the value of that through SOQL statement,because when i use a

a SOQL statement like select YY from opportunity. it give me an error.

please could any one help me.

regards

hegdek

Hello Friends,

Not able to close the visual force window using the following code

<apex:page >
<script>
function CloseWindow()
{
      var winMain=window.opener;
     
      if (null==winMain)
      {    
         winMain=window.parent.opener;
      }
      winMain.closePopup();
}
</script>>
  <apex:pageBlockButtons >
          <apex:commandButton value="Cancel" onclick="CloseWindow()"/>
  </apex:pageBlockButtons>
</apex:page>

 

 

any help please

regards

hegdek

hello friends,

I have an email template with an attachment(rendered in PDF),the attachment has reference to values from multiple standard objects like contact,oppurtunity etc.so what i have done to address this is to create a custom object,which is having all the needed fields from the standard objects.in the apex code then using the standard api Messaging.SingleEmailMessage,i use the method setTargetObjectId to set the cutom object and also the email template has the field relatedToType referencing this custom object,so that i can reference in the attachment,is this the right approach.

regards

hegdek

Hello Friends,

how do i get the username from ownerid,do i query the user table with id matching with the

owner id

regards

hegdek

Hello Friends,

I am new to salesforce object model

is there a sql query to get the contact onwer id from opputunity,please can any one provide me this query.

regards

hegdek

Hello Friends

when i render a visualforce page as a PDF,i want to add an image to the header and footer dynamically from the static resource how do i do that,is there some sample code for this.

regards

hegdek

Hello Friends,

I am not able to authorization error,when i do a rest call using the HttpRequest .should i use certificate,if so how do i handle it through coding

here is my cod example

 

public void basicAuthCallout(){HttpRequest req = new HttpRequest();
     req.setEndpoint(url);
     req.setMethod('POST');  
      String username = username;
     String password = password;
     String const_data = '<?xml version="1.0" encoding="UTF-8"?><activity name="New activity via salesforce"></activity>';
     Blob headerValue = Blob.valueOf(username + ':' + password);
     String authorizationHeader = 'BASIC ' +EncodingUtil.base64Encode(headerValue);
     req.setHeader('Authorization', authorizationHeader);
     req.setHeader('Accept', 'application/xml');
     req.setBody(const_data);  
       
     // Create a new http object to send the request object
   
     // A response object is generated as a result of the request  
   
     Http http = new Http();
     HTTPResponse res = http.send(req);
      res = http.send(req);
     System.debug(res.getBody());
   }

Hello Freinds,

I have a trigger on a child object,in this trigger i need to find reference to the master object,

But i am not able to get it ,it is always null.

regards

kaushik

Hello Friends,

I have customized the fields of standard object like oppurtunity,with a field 'yy' type text(20),how do i reterive the value of that through SOQL statement,because when i use a

a SOQL statement like select YY from opportunity. it give me an error.

please could any one help me.

regards

hegdek

Hello Friends,

I am not able to authorization error,when i do a rest call using the HttpRequest .should i use certificate,if so how do i handle it through coding

here is my cod example

 

public void basicAuthCallout(){HttpRequest req = new HttpRequest();
     req.setEndpoint(url);
     req.setMethod('POST');  
      String username = username;
     String password = password;
     String const_data = '<?xml version="1.0" encoding="UTF-8"?><activity name="New activity via salesforce"></activity>';
     Blob headerValue = Blob.valueOf(username + ':' + password);
     String authorizationHeader = 'BASIC ' +EncodingUtil.base64Encode(headerValue);
     req.setHeader('Authorization', authorizationHeader);
     req.setHeader('Accept', 'application/xml');
     req.setBody(const_data);  
       
     // Create a new http object to send the request object
   
     // A response object is generated as a result of the request  
   
     Http http = new Http();
     HTTPResponse res = http.send(req);
      res = http.send(req);
     System.debug(res.getBody());
   }

Hello All,

is there a possibility to call an SAP ABAP RFC from apex,if so there any sample program.

regards

hegdek