Newer Version Available
Get Assessment Response Summary
In Discovery Framework, the responses from an assessment are stored in the AssessmentQuestionResponse object and the form metadata stays in OmniScript. You can use this invocable action to pass assessment summary data to the downstream processes. This invocable action provides a summary JSON that can be consumed in Docgen workflows to generate documents.
The Get Assessment Response Summary invocable action takes assessment ID as the input to get the OmniProcess ID, which is used to retrieve the OmniProcess elements. The assessment ID also retrieves the assessment response and merges the response with the OmniProcess elements to create an assessment summary response in JSON.
This object is available in API version 56.0 and later.
Supported REST HTTP Methods
- URI
- /services/data/v56.0/actions/standard/getAssessmentResponseSummary
- Formats
- JSON
- HTTP Methods
- GET
- Authentication
- Authorization: Bearer token
Inputs
| Input | Details |
|---|---|
| assessmentId |
|
Outputs
| Output | Details |
|---|---|
| assessmentResponseSummary |
|
Usage
- Sample Input
-
When exposing the Get Assessment Response Summary invocable action in a REST API, you can use the following format to pass input, which includes the assessmentId and its value.
1{ 2 "inputs" : [ {"assessmentId" : "0U3RO00000005FN0AY"} ] 3} - Sample Output
-
In this example, the first line indicates the OmniScript type, subtype, and language. For each step, there are multiple questions that appear in the OmniScript. You can use this information in a downstream process, such as generation of PDF document using Docgen capability.
1"KYC_Individual_English": { 2 "Step1": { 3 "label": "Identity Details", 4 "value": { 5 "LC_Survey_Question_2": { 6 "label": "Full Name", 7 "value": "Joe Smith" 8 }, 9 "DateofBirth_m": { 10 "label": "Date of Birth", 11 "value": "Thu Jul 27 00:00:00 GMT 2000" 12 }, 13 "Gender_m": { 14 "label": "Gender", 15 "value": "Female" 16 }, 17 "EmailAddress_m": { 18 "label": "Email Address", 19 "value": "Joe.Smith@company.com" 20 }, 21 "PAN": { 22 "label": "PAN", 23 "value": "QWEASDZXC" 24 } 25 } 26 }, 27 "Step2": { 28 "label": "Address Details", 29 "value": { 30 "Address_CorrespondenceAdd_Corporate": { 31 "label": "Address of Correspondence", 32 "value": "100 Some St, San Francisco, CA 12345, United States" 33 }, 34 "Address_ContactDetails_Corporate": { 35 "label": "Telephone/Mobile", 36 "value": "1616111233" 37 }, 38 "Alternate_Contact": { 39 "label": "Alternate Mobile Number", 40 "value": "1911212123" 41 } 42 } 43 }, 44 "Step3": { 45 "label": "Account Declaration", 46 "value": { 47 "Account_declaration": { 48 "label": "I declare that I have following deposit accounts with your/ 49other bank's branches :", 50 "value": [ 51 { 52 "Bank": { 53 "label": "Bank", 54 "value": "Acme1" 55 }, 56 "Branch": { 57 "label": "Branch", 58 "value": "Mission St" 59 }, 60 "Type_of_Account": { 61 "label": "Type of Account", 62 "value": "Checking" 63 }, 64 "Account_Number": { 65 "label": "Account Number", 66 "value": "12345678" 67 } 68 }, 69 { 70 "Bank": { 71 "label": "Bank", 72 "value": "Acme2" 73 }, 74 "Branch": { 75 "label": "Branch", 76 "value": "Mission St" 77 }, 78 "Type_of_Account": { 79 "label": "Type of Account", 80 "value": "Savings" 81 }, 82 "Account_Number": { 83 "label": "Account Number", 84 "value": "1234567890" 85 } 86 } 87 ] 88 } 89 } 90 }, 91 "Step4": { 92 "label": "Declaration", 93 "value": { 94 "Declaration_m": { 95 "label": "The customer declares and certifies that the information in this 96form is true and correct. Any pre-filled sections of this form must be reviewed prior 97 to signing and submitting, to ensure the information accurately conveys the new 98account details.", 99 "value": "true" 100 } 101 } 102 } 103 } 104}