• Samarjeet Kahlon 56
  • NEWBIE
  • 20 Points
  • Member since 2022


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

I'm currently facing an issue in computing for Case Milestone Target Date. I used calculateMilestoneTriggerTime method of MilestoneTriggerTimeCalculator interface to caluculate the trigger time. This method returns the value(in minutes) which will be added to the Case Milestone Start Date to get the Target Date. When I debug the value of Target Date it gives me the correct date and time, but the actual Target Date displayed on the Case Milestone page layout is different. Is there any other internal logic that is applied on top of the value output from this method?

Here are sample data:

1. Start Date : 2015-02-11 07:58:12
    Method Returns (in minutes) : 131048
    Target Date displayed on Debug Log: 2015-05-13 08:06:12
    Target Date displayed on UI : 2015-05-13 09:14

2.  Start Date : 2015-02-09 14:42:44
     Method Returns (in minutes) : 132191
     Target Date displayed on Debug Log: 2015-05-12 09:53:54
     Target Date displayed on UI : 2015-05-14 07:57

 

I am following the guidelines from the Chatter guide and somehow I can't get the OAuth to work. 

 

It's not working from Java or curl.   Here is what I am doing:

 

mike$ curl --form client_id=3MVG9yZ.WNe6bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxu5AjB4oT9kxi8SEhY --form client_secret=26542xxxxxxxxxxx78  --form grant_type=password --form username=xxxxxxxx@gmail.com --form password=xxxxxxx https://na11.salesforce.com/services/oauth2/token

 

What I am getting is:

{"error":"invalid_grant","error_description":"authentication failure - Invalid Password"}

 

I double checked and I am getting into na11 with the right password.  Is there anything else I need to do?

 

Here are the settings in my remote access:

 



Applicationchatter



Callback URLhttps://na11.salesforce.com/ConnectTest/oauth/_callback /// temp one



No user approval required for users in this organizationNot Checked