Technology Encyclopedia Home >When Tencent Electronic Signature calls CreateFlowByFiles, how do I get the ComponentName value in the handler content control?

When Tencent Electronic Signature calls CreateFlowByFiles, how do I get the ComponentName value in the handler content control?

When using Tencent Electronic Signature to call the CreateFlowByFiles API, the ComponentName value in the handler content control can be obtained through the following steps:

Explanation

The CreateFlowByFiles API is used to create an electronic signature flow. The ComponentName is a key parameter that identifies the type of component in the signature process, such as text fields, checkboxes, or signature pads. This value is typically defined in the handler content control when designing the template.

Steps to Get the ComponentName

  1. Design the Template: Use the Tencent Electronic Signature console to design a signature template. During this process, you will add various components (e.g., text fields, checkboxes) to the template.
  2. Assign Component Names: When adding each component, assign a unique ComponentName to it. This name will be used to identify the component in subsequent API calls.
  3. Retrieve ComponentName: After designing the template, you can retrieve the ComponentName values from the template details in the console. These values will be used in the CreateFlowByFiles API call.

Example

Assume you have designed a template with the following components:

  • A text field named ApplicantName
  • A checkbox named AgreementAccepted

When calling CreateFlowByFiles, you would reference these ComponentName values in the handler content control to map the data correctly.

{
  "templateId": "123456",
  "componentValues": [
    {
      "componentName": "ApplicantName",
      "value": "John Doe"
    },
    {
      "componentName": "AgreementAccepted",
      "value": "true"
    }
  ]
}

Tencent Cloud Services Recommendation

For managing and automating electronic signature processes, consider using Tencent Cloud's Electronic Signature service. This service provides robust APIs and tools to streamline the creation and management of signature flows, ensuring secure and efficient document handling.