File tree Expand file tree Collapse file tree
app/eSignature/examples/eg023_idv_authentication Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,10 +109,20 @@ def get_workflow(args):
109109
110110 # Check that idv authentication is enabled
111111 if workflow_response .identity_verification :
112- workflow_id = workflow_response .identity_verification [0 ].workflow_id
113- app .logger .info ("We found the following workflowID: " + workflow_id )
112+ # Find the workflow ID corresponding to the name "DocuSign ID Verification"
113+ workflow_id = None
114+
115+ for workflow in workflow_response .identity_verification :
116+ if workflow .default_name == "DocuSign ID Verification" :
117+ workflow_id = workflow .workflow_id
118+ break
119+
120+ if workflow_id is not None :
121+ app .logger .info ("We found the following workflowID: " + workflow_id )
122+ else :
123+ app .logger .info ("No workflowID was found for DocuSign ID Verification." )
124+
114125 session ['workflow_id' ] = workflow_id
115-
116126 return workflow_id
117127
118128 else :
You can’t perform that action at this time.
0 commit comments