Add Job
| Function: | Adds a job, inserts in the audit log and sends an email alert. |
| Web service call: | https://proworkflow2.net/pwfaccountname/api/v2/jobs.cfm?customerkey=84DC6CF8-BF78-D79D-B25B-0C0D20229F17&api_call=addjob&UserID=xxx |
| Method: | POST |
| XML Request Data: |
|
| URL Parameters: | UserId is mandatory. |
| Notes: | Required fields must be included, other fields can be omitted. 'currentAutoNumber' is retrieved via the CreateJobNumber call. |
| Return Data: | XML data packet is constructed by the web service and sent to the user. It contains the success or failure message. If it is a success then a link of the job is also sent in the return data. |
| Status messages: | Success, Failure or Error. |
Example of return data:
- <?xml version="1.0" encoding="UTF-8"?>
- <addjob>
- <status>Success</status>
- <details>
- <message>Click on the link to view the job. https://proworkflow2.net/pwfaccountname/index.cfm?Fuseaction=jobs&Fusesubaction=jobdetails&Jobs_currentJobID= 1042</message>
- <jobid>1042</jobid>
- </details>
- </addjob>
- OR
- <?xml version="1.0" encoding="UTF-8"?>
- <addjob>
- <status>Failure</status>
- <details>
- <message>Error: You don't have permission to perform this action.</message>
- </details>
- </addjob>
- OR
- <?xml version="1.0" encoding="UTF-8"?>
- <addjob>
- <status>Failure</status>
- <details>
- <message>Not a valid client</message>
- </details>
- </addjob>




