Quantcast
Viewing all articles
Browse latest Browse all 2504

Incident Updatetime format in ConnectPHP (2 Comments)

Topic by Baljeet Singh

Content

Hi,

I am using ROQL query to get incident record. As per business requirement, I need to save incident updated time in separate text file (.txt) and when I try to upload all incidents which are updated since last 15 minutes with their customer entries only.  Here is the ROQL query

$incident_query = RNCPHP\ROQL::query( "SELECT ID,UpdatedTime,ReferenceNumber,Threads.EntryType.LookupName as seller_entry,
                                    StatusWithType.StatusType.LookupName as status,
                                    Threads.Text as Comment,Source.LookupName as Channel
                      FROM Incident I
                      WHERE UpdatedTime > '2015-08-21T10:11:29Z' AND Threads.EntryType.ID =  3
                      ORDER BY Threads.ID DESC" )->next();
   How can I save the incident update time like this format "2015-08-21T10:11:29Z". I tried using date()

$only_time = date('c');

It display output 2015-09-10T16:15:30+05:30 but I need to get the same format which I mentioned earlier.

Does anyone has idea in which php date/time() we can save the exact format ?

Thanks!!

Baljeet Singh

              

Version

Oracle RightNow CX Service Cloud February 2014

Viewing all articles
Browse latest Browse all 2504

Trending Articles