• sd2008
  • NEWBIE
  • 25 Points
  • Member since 2008

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 58
    Questions
  • 73
    Replies

I used the Generate from WSDL in Setup-> App Setup -> Develop -> Apex classes

It created a class from my webservice.

 

Now im confused about what the next step is.  How can I call my webservice functions from custom button presses, for example?

 

 

I am update/insert record into the Contact, and I got this error message:



"Unable to create/update fields: Name. Please check the security settings of this field and verify that it is read/write for your profile."



I checked my profile and standard object permissions, all checked.

I am update/insert record into the Contact, and I got this error message:

 

"Unable to create/update fields: Name. Please check the security settings of this field and verify that it is read/write for your profile."

 

I checked my profile and standard object permissions, all checked.

I want to setup an open activity for an object?

when the activity is setup, an email will be send to the user.

anyone has the sample code?

I want to setup an open activity for an object?

when the activity is setup, an email will be send to the user.

anyone has the sample code?

trigger AcctUpdateTrigger on Account (before insert, after update) {

 

   for(Account a: Trigger.New){

     Datetime mytime = datetime.now();

     Integer h = mytime.hour();

      if (h =< 18)

           {

                    if (a.RecordTypeID=='012400000000ztBAAQ')

              {

                function_Outcall.SaveAcct(a.AccountNumber);

               }

          }

     }

}

 

I got a "Unexpected Token : " error message.

what is wrong with it?

trigger AcctUpdateTrigger on Account (before insert, after update) {   for(Account a: Trigger.New){

     Datetime mytime = datetime.now();

     Integer h = mytime.hour();

      if (h =< 18)

               {                      if (a.RecordTypeID=='012400000000ztBAAQ'){

                function_Outcall.SaveAcct(a.AccountNumber);

               }

          }

     }

}

 

I got a "Unexpected Token : " error message.

what is wrong with it?

I have 5 scheduled job use CronKitBatchTrigger, it calls a webservice everynight.

It used to work fine everyday, but since last 2 weeks, 4 of the 5 jobs always got this problem:

 

"cronKitBatchTrigger: execution of BeforeUpdate

 

caused by: System.AsyncException: Rate Limiting Exception : FutureRequests Request Limit exceeded."

 

I did not change anything in the code, any ideas?

I have 5 scheduled job use CronKitBatchTrigger, it calls a webservice everynight.

It used to work fine everyday, but since last 2 weeks, 4 of the 5 jobs always got this problem:

 

"cronKitBatchTrigger: execution of BeforeUpdate

 

caused by: System.AsyncException: Rate Limiting Exception : FutureRequests Request Limit exceeded."

 

I did not change anything in the code, any ideas?

I have 5 scheduled job use CronKitBatchTrigger, it calls a webservice everynight.

It used to work fine everyday, but since last 2 weeks, 4 of the 5 jobs always got this problem:

 

"cronKitBatchTrigger: execution of BeforeUpdate

 

caused by: System.AsyncException: Rate Limiting Exception : FutureRequests Request Limit exceeded."

 

I did not change anything in the code, any ideas?

 

Is there a way to track how many @future function calls made and when?
  • April 29, 2009
  • Like
  • 0
Is there a way to track how many @future function calls made and when?
  • April 29, 2009
  • Like
  • 0

I got the message for the following code:

 

 

public class FirstClass

{

    public Integer tm()

    {

      Datetime mytime = datetime.now();

      Integer h = mytime.hour;

        return h;

    }

}

 

 

 

I also tried the following, but still not right.

 

 

public class FirstClass

{

    public string tm()

    {

      Datetime mytime = datetime.now();

      string h = string.valueof(mytime.hour);

        return h;

    }

}

  • April 22, 2009
  • Like
  • 0
I have a Cronkit job scheduled to run every night, and it has been doing fine for weeks, but last night 4 of the scheduled jobs did not run, and gives a message :

FutureRequests Request Limit exceeded.

 

What does this mean?

 
  • April 21, 2009
  • Like
  • 0
I have a Cronkit job scheduled to run every night, and it has been doing fine for weeks, but last night 4 of the scheduled jobs did not run, and gives a message :

FutureRequests Request Limit exceeded.

 

What does this mean?

  • April 21, 2009
  • Like
  • 0

I got a "Comparison arguments must be compatible types: Double, String" error message

 

the Fn_outcall.saveobj(str) function takes a string parameter.

here is the code:

 

trigger OriUpdateTrigger on Ori__c (after insert, after update) {

  

 for(Ori__c o: Trigger.New){

 

  if (o.AID__c != null && o.AID__c <>''){

   String str = String.valueOf(o.AID__c);

   fn_Outcall.Saveobj(str);

 

  }

 }

}

  • April 15, 2009
  • Like
  • 0

I have a function which takes a string parameter, but the value is a Double from Salesforce.

How do I convert a Double to String?

  • April 15, 2009
  • Like
  • 0
trigger WebUserClientIDTrigger on Web_User__c (before insert) {

 for(Web_User__c w: Trigger.New){

     if (w.Account_Name__c <> ''){

       string tempid = w.Account_Name__c;

       w.ClientID__c = [Select ClientID__c from Account where id = tempid].ClientID__c;

      }

   }

}

 

It returns "Unexpected Token tempID"

What did I do wrong?

  • April 03, 2009
  • Like
  • 0

I have a webservice it runs fine, but it takes a while to get a response because it loads lots of data.

when it callout from an apex class from salesforce, it always return : System.CalloutException: IO Exception: Read timed out.

 

Is there a property to set the time out period of the salesforce?

How do we address this problem?

  • March 18, 2009
  • Like
  • 0

I have a webservice it runs fine, but it takes a while to get a response because it loads lots of data.

 

when it callout from an apex class from salesforce, it always return

System.CalloutException: IO Exception: Read timed out.

 

Is there a property to set the time out period of the salesforce?

How do we address this problem?

  • March 18, 2009
  • Like
  • 0

 I have a webservice it runs fine, but it takes a while to get a response because it loads lots of data.

when it callout from an apex class from salesforce, it always return : System.CalloutException: IO Exception: Read timed out.

 

Is there a property to set the time out period of the salesforce?

How do we address this problem?

  • March 18, 2009
  • Like
  • 0
I am update/insert record into the Contact, and I got this error message:



"Unable to create/update fields: Name. Please check the security settings of this field and verify that it is read/write for your profile."



I checked my profile and standard object permissions, all checked.

I have 5 scheduled job use CronKitBatchTrigger, it calls a webservice everynight.

It used to work fine everyday, but since last 2 weeks, 4 of the 5 jobs always got this problem:

 

"cronKitBatchTrigger: execution of BeforeUpdate

 

caused by: System.AsyncException: Rate Limiting Exception : FutureRequests Request Limit exceeded."

 

I did not change anything in the code, any ideas?

I have 5 scheduled job use CronKitBatchTrigger, it calls a webservice everynight.

It used to work fine everyday, but since last 2 weeks, 4 of the 5 jobs always got this problem:

 

"cronKitBatchTrigger: execution of BeforeUpdate

 

caused by: System.AsyncException: Rate Limiting Exception : FutureRequests Request Limit exceeded."

 

I did not change anything in the code, any ideas?

 

I got the message for the following code:

 

 

public class FirstClass

{

    public Integer tm()

    {

      Datetime mytime = datetime.now();

      Integer h = mytime.hour;

        return h;

    }

}

 

 

 

I also tried the following, but still not right.

 

 

public class FirstClass

{

    public string tm()

    {

      Datetime mytime = datetime.now();

      string h = string.valueof(mytime.hour);

        return h;

    }

}

  • April 22, 2009
  • Like
  • 0
I have a Cronkit job scheduled to run every night, and it has been doing fine for weeks, but last night 4 of the scheduled jobs did not run, and gives a message :

FutureRequests Request Limit exceeded.

 

What does this mean?

  • April 21, 2009
  • Like
  • 0

I got a "Comparison arguments must be compatible types: Double, String" error message

 

the Fn_outcall.saveobj(str) function takes a string parameter.

here is the code:

 

trigger OriUpdateTrigger on Ori__c (after insert, after update) {

  

 for(Ori__c o: Trigger.New){

 

  if (o.AID__c != null && o.AID__c <>''){

   String str = String.valueOf(o.AID__c);

   fn_Outcall.Saveobj(str);

 

  }

 }

}

  • April 15, 2009
  • Like
  • 0

I have a function which takes a string parameter, but the value is a Double from Salesforce.

How do I convert a Double to String?

  • April 15, 2009
  • Like
  • 0
trigger WebUserClientIDTrigger on Web_User__c (before insert) {

 for(Web_User__c w: Trigger.New){

     if (w.Account_Name__c <> ''){

       string tempid = w.Account_Name__c;

       w.ClientID__c = [Select ClientID__c from Account where id = tempid].ClientID__c;

      }

   }

}

 

It returns "Unexpected Token tempID"

What did I do wrong?

  • April 03, 2009
  • Like
  • 0
If I have a record in Salesforce, and when I use Create() to create the same record, will it return an error message?
  • March 04, 2009
  • Like
  • 0

I want to insert data into Salesforce without modify existing data,

how do I do that?

because I can not use upsert()

 

  • February 27, 2009
  • Like
  • 0

I have a custom object, named obj,

and it has 10000 reocrds in it.

when I go to Data Management - Mass Delete Records

Mass Delete Obj is not there. I checked the profile settings, I have permission to delete Obj record.

 

can anyone give a hint?

  • February 20, 2009
  • Like
  • 0

I used the Generate from WSDL in Setup-> App Setup -> Develop -> Apex classes

It created a class from my webservice.

 

Now im confused about what the next step is.  How can I call my webservice functions from custom button presses, for example?

 

 

Hi,

 

I am tryin to invoke an external webservice from apex class.But i am unable to do so.

 

I have a webservice method which takes two input parameters and returns a output. This webservice was deployed using apache axis and saved with .jws extension. Apache axis automatically generates the WSDL for this webservice.

 

Now i want to write a client application in my case i want the client to be salesforce.com . Saying that i would like to invoke the above mentioned webservice method from the apex class.

 

My question is :

 

How can i invoke that webservice method from apex class as we wont be having AXIS libraries available in the apex class. Please let me know the correct way to do this.

 

I tried to import the wsdl file of the webservice method that i want to invoke and generated an Apex class from it.

 

1. How can i Run this client apex class and view the response of the webservice method.

2. Should we create a client stub to make this possible.

 

Guide us through the correct way of doing this.

 

 

Thanks ,

 

Prasuna.

I got an error message :

Attempting to update (as part of an upsert) parent field obj__c with new value a0740000002T9LgAAK, current value is a0740000002T9LmAAK116

  • February 05, 2009
  • Like
  • 0

I got an error message :

Attempting to update (as part of an upsert) parent field obj__c with new value a0740000002T9LgAAK, current value is a0740000002T9LmAAK116

  • February 05, 2009
  • Like
  • 0