Function: Inserts a Time record in the database
Web service call: https://proworkflow2.net/pwfaccountname/api/v2/time.cfm?customerkey=84DC6CF8-BF78-D79D-B25B-0C0D20229F17&api_call= edittimerecord
Method: POST
XML Request Data:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <edittimerecord>
  3. <userid>9</userid> REQUIRED FIELD
  4. <trackerid>6</trackerid> REQUIRED FIELD
  5. <trackerdate>1-May-2009 8:43:00 AM</trackerdate>
  6. <trackernotes>Client Meeting</trackernotes>
  7. <trackertimestarted>1-May-2009 8:23:00 AM</trackertimestarted>
  8. <trackertimefinished>1-May-2009 8:43:00 AM</trackertimefinished>
  9. <contactid>8</contactid>
  10. </edittimerecord>
Notes: TrackerDate, TrackerTimeFinished and TrackerTimeStarted should be in sql dateformat type.
Return Data: XML data packet is constructed by the web service and sent to the user. It contains the success or failure message.
Status messages: Success, Failure or Error.

 

Example of return data:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <edittimerecord>
  3. <status>Success</status>
  4. <details>
  5. <message>Time Record edit</message>
  6. <trackerid>7</trackerid>
  7. </details>
  8. </edittimerecord>
  9.  
  10. OR
  11.  
  12. <?xml version="1.0" encoding="UTF-8"?>
  13. <edittimerecord>
  14. <status>Failure</status>
  15. <details>
  16. <message>You have entered a Finish time which is BEFORE the Start time.</message>
  17. </details>
  18. </edittimerecord>
  19.  
  20. OR
  21.  
  22. <?xml version="1.0" encoding="UTF-8"?>
  23. <edittimerecord>
  24. <status>Failure</status>
  25. <details>
  26. <message>Error: You don't have permission to perform this action.</message>
  27. </details>
  28. </edittimerecord>
VN:F [1.7.5_995]
Was this article useful?