Skip to content

Commit e7c3d40

Browse files
Fix XML parsing logic regression in the trigger response parsing code (#2025)
* FLOW-78: Support for adding recipient type in the add recipient action * add core required param for add recipient - param name : custom fields * Add custom fields to recipient * Support setting core params for all signer types * Support for inperson signer recipient type * Update response to fit schema for in person signer * New schema changs for connec 2.0 json sim * Update model to recognize Connect SIM 2.0 format * add custom fields to the webhook response model * Update webhook response transformation logic for connect 2.0 json sim format * FLOW-133: Support recipient types Agent, CC, Certified Delivery, Editor & Intermediary * Add recipient step has following 2 changes. * Remove custom fields * Update dropdown labels to match with NDSE * FLOW-136: Support witness recipient type * FLOW-84: Create envelope from template expects input for body when no recipients are specified Instead, present the user with option to add recipient name, email * Tag the recipient id field returned by add recipient step "important" , so that it shows in the UI output * In case recipient roles are not specified in the template, request "Email subject" and "Email body" from the user * Fix whitespaces * Make the connect trigger changes backward compatible using versioning * Keep the previous version of operation id the same for create envelope using template action * Update name for send envelope using template * Add custom fields to "create envelope using template" FLOW action * Extract parsing custom fields to a separate method * Use a prefix to differentiate between text custom field and list custom field * FLOW-159: enable user to set label for tabs, in the add recipient tabs step * FLOW-180: Version "add recipient to an envelope" action * Remove duplicated method * FLOW-184: Support adding list custom fields for "create envelope using template" and "create envelope" actions List custom fields shows up as an enum * FLOW-168: list custom fields missing in the connect response * Rename custom fields variable name * Fix merge conflicts * Move the login information code block to where it was * FLOW-200: IDV Workflow IDV is a mandatory field but flow saving without selecting Workflow IDV * Throw 400 BadRequest instead of InternalException to make the flow fail fast in case of user error * shorten the custom field suffix to allow for longer field names * Fix setting up phone authentication * FLOW-213: Merge sms related code changes from Angel * Change the field type of country code and phone number to integer * FLOW-225: Trigger do not work after connector upgrade from 2.0 to 2.1 xml parsing logic was missing
1 parent 3251427 commit e7c3d40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

certified-connectors/DocuSignDemo/script.csx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,10 @@ public class Script : ScriptBase
688688
var notificationContent = "";
689689
if (content.Contains("DocuSignEnvelopeInformation"))
690690
{
691-
notificationContent = TransformWebhookNotificationBodyDeprecated(content);
691+
var doc = new XmlDocument();
692+
doc.LoadXml(content);
693+
var jsonContent = JsonConvert.SerializeXmlNode(doc);
694+
notificationContent = TransformWebhookNotificationBodyDeprecated(jsonContent);
692695
}
693696
else
694697
{

0 commit comments

Comments
 (0)