Add a Work Flow Answer
Sets the answer to a workflow question on a contact note.
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | SaveWorkflowAnswer | Required |
QuestionId | Int | The unique identifier of the worksheet question which can be retrieved using Contact Notes | Required |
ContactNoteId | Int | The unique identifier of the contact note which can be retrieved using Contact Notes. | Required |
ContactNoteRef | String | The internal reference of the contact note. The Contact Reference or Id can be supplied. If both parameters are provided, the Contact Id will take precedence. | Required |
Answer | String | Answer value - E.g.: "True", "3.14", "List item 1". | Required |
Note | String | Comments or notes on the answer - Applicable to all answer types. | Optional |
Quantity | Double | Quantity value. | Optional |
ExclTax * | Double | Cost value - Either IncTax or ExclTax should be specified. | Optional |
Vat * | Double | Tax as a percentage of the cost IncTax. | Optional |
IncTax * | Double | Cost value - Either IncTax or ExclTax should be specified. | Optional |
Currency * | String | ISO 3 character currency identifier - E.g.: "GBP" "USD" "EUR". | Optional |
info
* Applicable to cost answer types
Response Codes
Code | Message | Information |
---|---|---|
0 | Response Object | See 'Response' example tab |
2 | QuestionId parameter required | Integer value is invalid or was not specified (when required) |
2 | ContactNoteId or ContactNoteRef parameter expected | Mandatory parameter was not supplied |
2 | Invalid ContactNoteId | Integer value is invalid or was not specified (when required) |
2 | Unable to locate contact note with Id {ContactNoteId} | The parameter value {ContactNoteId} is included in the error message for reference. |
2 | Unable to locate contact note with reference {ContactNoteRef} | The parameter value {ContactNoteRef} is included in the error message for reference. |
2 | Unable to save answer | An error occurred when attempting to save the Workflow Answer. Contact Support if this continues. |
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=SaveWorkflowAnswer&ContactNoteId=2332105&QuestionId=893772&Answer=ABC123
Response Data
{ "Code": 0, "Result": 141241261 }