{ "workflow": { "id": 1588, "name": "integration with CPR - payment decline email", "description": "", "parameters": { "fields": [ { "index": "0", "default": "", "datatype": "Text", "required": false, "callout_id": "accountId", "field_name": "accountId", "object_name": "Workflow" }, { "index": "1", "default": "", "datatype": "Text", "required": false, "callout_id": "paymentId", "field_name": "paymentId", "object_name": "Workflow" } ], "entity_id": null, "entity_name": null }, "data": { }, "original_workflow_id": null, "type": "Workflow::Setup", "ondemand_trigger": false, "callout_trigger": true, "scheduled_trigger": false, "interval": null, "timezone": null, "status": null, "finished_at": null, "css": { "top": "40px", "left": "30px" }, "notifications": { "emails": [ ], "failure": false, "pending": false, "success": false }, "started_at": null, "call_type": null, "priority": "Medium", "sync_trigger": false, "run_mode": "automated", "delete_ttl": 60, "task_summary": { } }, "tasks": [ { "id": 2699, "name": "Retrieve Account Id", "parameters": { "fields": { "Account": { "Name": "true", "BillToId": "true", "AccountNumber": "true" } }, "placement": "", "batch_size": "2000", "where_clause": " Id = '{{Data.Workflow.accountId}}'", "strict_variables": "true" }, "action_type": "Query", "object": "Account", "object_id": null, "call_type": "SOAP", "task_id": null, "original_task_id": null, "original_workflow_id": null, "status": null, "error": null, "error_details": null, "process_id": null, "css": { "top": "40px", "left": "350px" }, "concurrent_limit": 9999999, "iterate_row_reference": null, "error_class": null, "object_batched_reference": null, "tags": [ "" ], "priority": "Medium", "assignment": [ ] }, { "id": 2700, "name": "Retrieve Payment", "parameters": { "fields": { "Payment": { "Amount": "true", "Gateway": "true", "GatewayState": "true", "GatewayOrderId": "true", "GatewayResponse": "true", "PaymentMethodId": "true", "GatewayResponseCode": "true" } }, "placement": "", "batch_size": "2000", "where_clause": "AccountId= '{{Data.Workflow.paymentId}}'", "strict_variables": "true" }, "action_type": "Query", "object": "Payment", "object_id": null, "call_type": "SOAP", "task_id": 2699, "original_task_id": null, "original_workflow_id": null, "status": null, "error": null, "error_details": null, "process_id": null, "css": { "top": "40px", "left": "650px" }, "concurrent_limit": 9999999, "iterate_row_reference": null, "error_class": null, "object_batched_reference": null, "tags": [ "" ], "priority": "Medium", "assignment": [ ] }, { "id": 2697, "name": "Retrieve Payment Method", "parameters": { "fields": { "PaymentMethod": { "CreditCardType": "true", "CreditCardHolderName": "true", "CreditCardMaskNumber": "true", "CreditCardExpirationYear": "true", "CreditCardExpirationMonth": "true" } }, "placement": "", "batch_size": "2000", "where_clause": " Id = '{{Data.Payment[0].PaymentMethodId}}'", "strict_variables": "true" }, "action_type": "Query", "object": "PaymentMethod", "object_id": null, "call_type": "SOAP", "task_id": 2700, "original_task_id": null, "original_workflow_id": null, "status": null, "error": null, "error_details": null, "process_id": null, "css": { "top": "40px", "left": "940px" }, "concurrent_limit": 9999999, "iterate_row_reference": null, "error_class": null, "object_batched_reference": null, "tags": [ "" ], "priority": "Medium", "assignment": [ ] }, { "id": 2698, "name": "Test Email", "parameters": { "email": { "cc": [ ], "to": [ "ktomura@zuora.com" ], "bcc": [ ], "from": "workflow@zuora.com", "name": "ktomura@zuora.com", "subject": "Payment Declined Test Email", "reply_to": "", "template": "
{{Data.Account[0].Name}},
${{Data.Payment[0].Amount}} against {{Data.Payment[0].Gateway}} did not pass due to {{Data.Payment[0].GatewayResponse}}
Card Holder Name: {{Data.PaymentMethod[0].CreditCardHolderName}}
Card Type: {{Data.PaymentMethod[0].CreditCardType}}
Card Number: {{Data.PaymentMethod[0].CreditCardMaskNumber}}
Card Expiration: {{Data.PaymentMethod[0].CreditCardExpirationMonth}}/{{Data.PaymentMethod[0].CreditCardExpirationYear}}
", "attachments": { "invoices": "false" }, "preview_only": "false", "disable_editor": "false" }, "files": { }, "strict_variables": "true" }, "action_type": "Email", "object": null, "object_id": null, "call_type": "SOAP", "task_id": 2700, "original_task_id": null, "original_workflow_id": null, "status": null, "error": null, "error_details": null, "process_id": null, "css": { "top": "270px", "left": "320px" }, "concurrent_limit": 9999999, "iterate_row_reference": null, "error_class": null, "object_batched_reference": null, "tags": [ "" ], "priority": "Medium", "assignment": [ ] } ], "linkages": [ { "source_workflow_id": null, "source_task_id": 2700, "target_task_id": 2697, "linkage_type": "Success" }, { "source_workflow_id": null, "source_task_id": 2697, "target_task_id": 2698, "linkage_type": "Success" }, { "source_workflow_id": null, "source_task_id": 2699, "target_task_id": 2700, "linkage_type": "Success" }, { "source_workflow_id": 1588, "source_task_id": null, "target_task_id": 2699, "linkage_type": "Start" } ] }