{"id":3913,"date":"2024-01-23T21:44:45","date_gmt":"2024-01-23T13:44:45","guid":{"rendered":"http:\/\/www.ponybai.com\/?p=3913"},"modified":"2023-12-03T08:04:34","modified_gmt":"2023-12-03T00:04:34","slug":"%e5%9c%a8-flow-builder-%e4%b8%ad%e8%87%aa%e5%ae%9a%e4%b9%89%e6%93%8d%e4%bd%9c%e5%92%8c%e5%b1%8f%e5%b9%95%e7%bb%84%e4%bb%b6-ui","status":"publish","type":"post","link":"http:\/\/www.ponybai.com\/?p=3913","title":{"rendered":"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI"},"content":{"rendered":"\n<p>\u5f00\u53d1\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\uff0c\u5f53\u7ba1\u7406\u5458\u5728 Flow Builder \u4e2d\u914d\u7f6e\u81ea\u5b9a\u4e49\u5c4f\u5e55\u7ec4\u4ef6\u6216\u53ef\u8c03\u7528\u64cd\u4f5c\u65f6\uff0c\u8be5\u7f16\u8f91\u5668\u53ef\u4e3a\u5176\u63d0\u4f9b\u7b80\u5316\u7684 UI\u3002\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u662f\u4e00\u4e2a Lightning Web \u7ec4\u4ef6\uff0c\u5b83\u63d0\u4f9b\u7528\u4e8e\u8f93\u5165\u8f93\u5165\u503c\u7684\u81ea\u5b9a\u4e49 UI\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"compare-a-custom-property-editor-to-a-standard-property-editor\">\u5c06\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e0e\u6807\u51c6\u5c5e\u6027\u7f16\u8f91\u5668\u8fdb\u884c\u6bd4\u8f83<\/h2>\n\n\n\n<p>\u5982\u679c\u6ca1\u6709\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\uff0c\u5f53\u7ba1\u7406\u5458\u5728 Flow Builder \u4e2d\u914d\u7f6e\u81ea\u5b9a\u4e49\u6d41\u5c4f\u5e55\u7ec4\u4ef6\u6216\u53ef\u8c03\u7528\u64cd\u4f5c\u65f6\uff0cUI \u7531\u7ec4\u4ef6\u8f93\u5165\u503c\u7684\u6587\u672c\u6846\u6216\u7ec4\u5408\u6846\u7ec4\u6210\u3002\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684 UI \u53ef\u4ee5\u7531\u4efb\u4f55\u8f93\u5165\u7ec4\u4ef6\u7ec4\u6210\uff0c\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528\u81ea\u5b9a\u4e49\u6837\u5f0f\u3002\u6b64\u793a\u4f8b\u663e\u793a\u4e86\u4e00\u4e2a\u6ca1\u6709\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684\u81ea\u5b9a\u4e49\u6d41\u5c4f\u5e55\u7ec4\u4ef6\u3002\u8be5\u7ec4\u4ef6\u663e\u793a\u5c06\u6570\u636e\u4f20\u9012\u5230\u6d41\u4e2d\u7684\u8f93\u5165\u5c5e\u6027\u7684\u6587\u672c\u6846\u548c\u7ec4\u5408\u6846\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"544\" src=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_none-1024x544.png\" alt=\"\" class=\"wp-image-3915\" srcset=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_none-1024x544.png 1024w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_none-300x159.png 300w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_none-768x408.png 768w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_none.png 1188w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u76f8\u53cd\uff0c\u8bf7\u521b\u5efa\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\uff0c\u4e3a\u7ba1\u7406\u5458\u63d0\u4f9b\u7b80\u5316\u7684\u4f53\u9a8c\u3002\u6b64\u793a\u4f8b\u663e\u793a\u4e86\u4e00\u4e2a\u81ea\u5b9a\u4e49\u6d41\u5c4f\u5e55\u7ec4\u4ef6\uff0c\u8be5\u7ec4\u4ef6\u5177\u6709\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\uff0c\u8be5\u7f16\u8f91\u5668\u4f7f\u7528\u81ea\u5b9a\u4e49\u6807\u7b7e\u548c\u6ed1\u5757\u7ec4\u4ef6\u4f5c\u4e3a\u8f93\u5165\u503c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"274\" src=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_volume-1024x274.png\" alt=\"\" class=\"wp-image-3916\" srcset=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_volume-1024x274.png 1024w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_volume-300x80.png 300w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_volume-768x205.png 768w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_volume.png 1181w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"example:-custom-property-editor-for-an-invocable-action\">\u793a\u4f8b\uff1a\u53ef\u8c03\u7528\u64cd\u4f5c\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668<\/h2>\n\n\n\n<p>\u6b64\u793a\u4f8b\u521b\u5efa\u4e00\u4e2a\u53ef\u8c03\u7528\u64cd\u4f5c\u53ca\u5176\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002\u5728 Flow Builder \u4e2d\uff0c\u7ba1\u7406\u5458\u4e3a\u201c\u53d1\u9001 HTML \u7535\u5b50\u90ae\u4ef6\u201d\u53ef\u8c03\u7528\u64cd\u4f5c\u8bbe\u7f6e\u8f93\u5165\u503c\u3002\u5f53\u7528\u6237\u8fd0\u884c\u6d41\u65f6\uff0c\u53ef\u8c03\u7528\u64cd\u4f5c\u4f1a\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u3002<\/p>\n\n\n\n<p>\u6b64 Apex \u7c7b\u6587\u4ef6\u5b9a\u4e49\u4e86\u53ef\u4f5c\u4e3a\u53ef\u8c03\u7528\u64cd\u4f5c\u8fd0\u884c\u7684\u65b9\u6cd5\u53ca\u5176\u8f93\u5165\u53d8\u91cf\u3002\u6ce8\u91ca\u6807\u8bc6\u53ef\u4f5c\u4e3a\u53ef\u8c03\u7528\u64cd\u4f5c\u8fd0\u884c\u7684\u53ef\u8c03\u7528\u65b9\u6cd5\u3002\u6ce8\u91ca\u6807\u8bc6\u53ef\u8c03\u7528\u65b9\u6cd5\u4f7f\u7528\u7684\u53d8\u91cf\u3002<code>sendEmails<\/code><code>@InvocableMethod<\/code><code>@InputVariable<\/code><\/p>\n\n\n\n<p>\u53ef\u8c03\u7528\u65b9\u6cd5\u5728\u4fee\u9970\u7b26\u4e2d\u6ce8\u518c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002\u9664\u975e\u7ec4\u7ec7\u5177\u6709\u81ea\u5b9a\u4e49\u547d\u540d\u7a7a\u95f4\uff0c\u5426\u5219\u547d\u540d\u7a7a\u95f4\u3002\u5982\u679c\u7ec4\u7ec7\u5177\u6709\u81ea\u5b9a\u4e49\u547d\u540d\u7a7a\u95f4\uff0c\u8bf7\u4f7f\u7528\u8be5\u547d\u540d\u7a7a\u95f4\u6ce8\u518c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684\u540d\u79f0\u4e3a \u3002<code>configurationEditor<\/code><code>c<\/code><code>c-html-email-editor<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ HtmlEmailAction.cls\nglobal class HtmlEmailAction {\n    global class EmailActionRequest {\n        @InvocableVariable\n        global String senderName;\n\n        @InvocableVariable\n        global String replyToEmail;\n\n        @InvocableVariable\n        global String recipientName;\n\n        @InvocableVariable\n        global String sendToEmail;\n\n        @InvocableVariable\n        global String subject;\n\n        @InvocableVariable\n        global String htmlBody;\n    }\n\n    global class EmailActionResult {\n        @InvocableVariable\n        global Boolean isSuccess;\n\n        @InvocableVariable\n        global String errorMessage;\n    }\n\n    @InvocableMethod(label='Send HTML Email' configurationEditor='c-html-email-editor')\n    global static List&lt;EmailActionResult&gt; sendEmails(List&lt;EmailActionRequest&gt; requests) {\n        List&lt;EmailActionResult&gt; results = new List&lt;EmailActionResult&gt;();\n\n        for(EmailActionRequest request : requests){\n            results.add(sendEmail(request));\n        }\n\n        return results;\n    }\n\n    public static EmailActionResult sendEmail(EmailActionRequest request) {\n        Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();\n\n        String&#91;] sendToEmail = new String&#91;]{ request.sendToEmail };\n        mail.setToAddresses(sendToEmail);\n        mail.setSenderDisplayName(request.senderName);\n        mail.setReplyTo(request.replyToEmail);\n        mail.setSubject(request.subject);\n        mail.setHtmlBody(request.htmlBody);\n        mail.setOptOutPolicy('FILTER');\n\n        Messaging.SingleEmailMessage&#91;] messages = new List&lt;Messaging.SingleEmailMessage&gt;();\n        messages.add(mail);\n\n        Messaging.SendEmailResult&#91;] results = Messaging.sendEmail(messages);\n        EmailActionResult emailActionResult = new EmailActionResult();\n\n        for(Messaging.SendEmailResult result :results) {\n            if(result.IsSuccess()) {\n                emailActionResult.isSuccess = true;\n            } else {\n                emailActionResult.isSuccess = false;\n                Messaging.SendEmailError&#91;] errors = result.getErrors();\n                if (errors.size() &gt; 0 ){\n                    emailActionResult.errorMessage = errors&#91;0].getMessage();\n                }\n            }\n        }\n\n        return emailActionResult;\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u8fd9\u4e9b HTML\u3001CSS\u3001JavaScript \u548c\u914d\u7f6e\u6587\u4ef6\u5b9a\u4e49\u64cd\u4f5c\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002<\/p>\n\n\n\n<p>HTML \u6a21\u677f\u5b9a\u4e49 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684 UI\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--htmlEmailEditor.html--&gt;\n&lt;template&gt;\n  &lt;div class=\"slds-m-bottom_x-small\"&gt;\n    &lt;h2 class=\"slds-text-heading_medium slds-p-around_xx-small lgc-bg-inverse\"&gt;\n      Sender Information\n    &lt;\/h2&gt;\n\n    &lt;div class=\"slds-p-around_xx-small lgc-bg\"&gt;\n      &lt;lightning-input\n        type=\"text\"\n        label=\"Sender Name\"\n        placeholder=\"Enter sender name here...\"\n        value={senderName}\n        onchange={handleSenderNameChange}\n      &gt;\n      &lt;\/lightning-input&gt;\n\n      &lt;lightning-input\n        type=\"email\"\n        label=\"Reply-To Email Address\"\n        placeholder=\"Enter reply-to email address here...\"\n        value={replyToEmail}\n        onchange={handleReplyToEmailChange}\n      &gt;\n      &lt;\/lightning-input&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=\"slds-m-bottom_x-small\"&gt;\n    &lt;h2 class=\"slds-text-heading_medium slds-p-around_xx-small lgc-bg-inverse\"&gt;\n      Recipient Information\n    &lt;\/h2&gt;\n\n    &lt;div class=\"slds-p-around_xx-small lgc-bg\"&gt;\n      &lt;lightning-input\n        type=\"text\"\n        label=\"Recipient Name\"\n        placeholder=\"Enter recipient name here...\"\n        value={recipientName}\n        onchange={handleRecipientNameChange}\n      &gt;\n      &lt;\/lightning-input&gt;\n\n      &lt;lightning-input\n        type=\"email\"\n        label=\"Send-To Email Address\"\n        placeholder=\"Enter send-to email address here...\"\n        value={sendToEmail}\n        onchange={handleSendToEmailChange}\n        required\n      &gt;\n      &lt;\/lightning-input&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=\"slds-m-top_small\"&gt;\n    &lt;h2 class=\"slds-text-heading_medium slds-p-around_xx-small lgc-bg-inverse\"&gt;Subject and Body&lt;\/h2&gt;\n\n    &lt;div class=\"slds-p-around_xx-small lgc-bg\"&gt;\n      &lt;lightning-input\n        type=\"text\"\n        label=\"Subject\"\n        placeholder=\"Enter subject here...\"\n        value={subject}\n        onchange={handleSubjectChange}\n      &gt;\n      &lt;\/lightning-input&gt;\n\n      &lt;div class=\"row\"&gt;\n        &lt;lightning-textarea\n          name=\"body\"\n          label=\"HTML Body\"\n          placeholder=\"Enter html body here...\"\n          value={htmlBody}\n          onchange={handleHtmlBodyChange}\n        &gt;\n        &lt;\/lightning-textarea&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>\u6b64\u793a\u4f8b\u663e\u793a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668 UI\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"692\" src=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_for_action-1024x692.png\" alt=\"\" class=\"wp-image-3917\" srcset=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_for_action-1024x692.png 1024w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_for_action-300x203.png 300w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_for_action-768x519.png 768w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_for_action.png 1041w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u521d\u59cb\u5316\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u540e\uff0cJavaScript \u7c7b\u4f1a\u4ece Flow Builder \u63a5\u6536\u6d41\u5143\u6570\u636e\u7684\u526f\u672c\u3002\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u66f4\u6539\u503c\u65f6\uff0c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4f1a\u8c03\u5ea6\u4e00\u4e2a\u4e8b\u4ef6\u4ee5\u5c06\u66f4\u6539\u4f20\u64ad\u56de Flow Builder\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>\u4f7f\u7528\u5c5e\u6027\u4ece\u6d41\u4e2d\u6355\u83b7\u6570\u636e\u3002\u4f7f\u7528\u4e8b\u4ef6\u5728\u8fd0\u884c\u65f6\u62a5\u544a\u5bf9\u6d41\u7684\u66f4\u6539\u3002<code>@api<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ htmlEmailEditor.js\nimport { LightningElement, api } from \"lwc\";\nexport default class HtmlEmailEditor extends LightningElement {\n  @api\n  inputVariables;\n\n  get senderName() {\n    const param = this.inputVariables.find(({ name }) =&gt; name === \"senderName\");\n    return param &amp;&amp; param.value;\n  }\n\n  get replyToEmail() {\n    const param = this.inputVariables.find(({ name }) =&gt; name === \"replyToEmail\");\n    return param &amp;&amp; param.value;\n  }\n\n  get recipientName() {\n    const param = this.inputVariables.find(({ name }) =&gt; name === \"recipientName\");\n    return param &amp;&amp; param.value;\n  }\n\n  get sendToEmail() {\n    const param = this.inputVariables.find(({ name }) =&gt; name === \"sendToEmail\");\n    return param &amp;&amp; param.value;\n  }\n\n  get subject() {\n    const param = this.inputVariables.find(({ name }) =&gt; name === \"subject\");\n    return param &amp;&amp; param.value;\n  }\n\n  get htmlBody() {\n    const param = this.inputVariables.find(({ name }) =&gt; name === \"htmlBody\");\n    return param &amp;&amp; param.value;\n  }\n\n  @api validate() {\n    const validity = &#91;];\n    if (\n      !this.isValidEmailAddress(this.sendToEmail) ||\n      !this.isValidEmailAddress(this.replyToEmail)\n    ) {\n      validity.push({\n        key: \"SendToAddress\",\n        errorString: \"You have entered an invalid email format.\",\n      });\n    }\n    return validity;\n  }\n\n  isValidEmailAddress(email) {\n    const emailRegex = \/^\\w+(&#91;\\.-]?\\w+)+@\\w+(&#91;\\.:]?\\w+)+(\\.&#91;a-zA-Z0-9]{2,3})+$\/;\n    return emailRegex.test(email);\n  }\n\n  handleSenderNameChange(event) {\n    this.handleChange(event, \"senderName\");\n  }\n\n  handleReplyToEmailChange(event) {\n    this.handleChange(event, \"replyToEmail\");\n  }\n\n  handleRecipientNameChange(event) {\n    this.handleChange(event, \"recipientName\");\n  }\n\n  handleSendToEmailChange(event) {\n    this.handleChange(event, \"sendToEmail\");\n  }\n\n  handleSubjectChange(event) {\n    this.handleChange(event, \"subject\");\n  }\n\n  handleHtmlBodyChange(event) {\n    this.handleChange(event, \"htmlBody\");\n  }\n\n  handleChange(event, name) {\n    if (event &amp;&amp; event.detail) {\n      const newValue = event.detail.value;\n      const valueChangedEvent = new CustomEvent(\"configuration_editor_input_value_changed\", {\n        bubbles: true,\n        cancelable: false,\n        composed: true,\n        detail: {\n          name,\n          newValue,\n          newValueDataType: \"String\",\n        },\n      });\n      this.dispatchEvent(valueChangedEvent);\n    }\n  }\n}<\/code><\/pre>\n\n\n\n<p>Flow Builder \u5177\u6709\u7528\u4e8e\u4e0e\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u8fdb\u884c\u901a\u4fe1\u7684\u00a0JavaScript \u63a5\u53e3\u3002\u6b64 JavaScript \u7c7b\u4f7f\u7528 \u548c \u63a5\u53e3\u3002<code>inputVariablesvalidate<\/code><\/p>\n\n\n\n<p>\u521d\u59cb\u5316\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u540e\uff0c\u4ece Flow Builder \u63a5\u6536\u53ef\u8c03\u7528\u64cd\u4f5c\u4e2d\u8f93\u5165\u53d8\u91cf\u7684\u503c\u3002<code>inputVariables<\/code><\/p>\n\n\n\n<p>\u6570\u636e\u7ed3\u6784\u5305\u62ec\u6bcf\u4e2a\u8f93\u5165\u53d8\u91cf\u7684\u540d\u79f0\u3001\u503c\u548c\u6570\u636e\u7c7b\u578b\u3002<code>inputVariables<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;\n  {\n    name: \"senderName\",\n    value: \"Test Inc\",\n    valueDataType: \"String\",\n  },\n];<\/code><\/pre>\n\n\n\n<p>\u65b9\u6cd5\uff08\u5982 \u548c \uff09\u83b7\u53d6\u6bcf\u4e2a\u8f93\u5165\u53d8\u91cf\uff0c\u4ee5\u4fbf\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u4f7f\u7528\u3002<code>get<\/code><code>get senderName()<\/code><code>get replyToEmail()<\/code><code>value<\/code><\/p>\n\n\n\n<p>\u5f53\u7ba1\u7406\u5458\u5728 Flow Builder \u7684\u5c4f\u5e55\u7f16\u8f91\u5668 UI \u4e2d\u5355\u51fb<strong>\u201c\u5b8c\u6210<\/strong>\u201d\u65f6\uff0cFlow Builder \u4f1a\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u8bc4\u4f30\u51fd\u6570\u3002\u5982\u679c\u51fd\u6570\u8fd4\u56de \u548c \u6570\u636e\u7ed3\u6784\uff0c\u5219\u5c4f\u5e55\u7f16\u8f91\u5668\u4f1a\u663e\u793a\u9519\u8bef\u6570\uff0c\u5e76\u963b\u6b62\u7ba1\u7406\u5458\u5728\u5c4f\u5e55\u7f16\u8f91\u5668\u4e2d\u4fdd\u5b58\u66f4\u6539\u3002<code>validate<\/code><code>key<\/code><code>errorString<\/code><\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>Flow Builder \u4ec5\u663e\u793a\u9519\u8bef\u6570\u3002\u82e5\u8981\u663e\u793a\u9519\u8bef\u5b57\u7b26\u4e32\uff0c\u8bf7\u5728\u65b9\u6cd5\u4e2d\u7f16\u5199\u4ee3\u7801\u3002\u6709\u5173\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u89c1\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668 JavaScript \u63a5\u53e3\u3002<code>validate<\/code><\/p>\n\n\n\n<p>\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u8f93\u5165\u8f93\u5165\u503c\u65f6\uff0c\u8be5\u65b9\u6cd5\u4f1a\u5c06\u4e8b\u4ef6\u8c03\u5ea6\u5230 Flow Builder\u3002Flow Builder \u63a5\u6536\u4e8b\u4ef6\u5e76\u66f4\u65b0\u6d41\u4e2d\u7684\u503c\u3002<code>handleChange<\/code><code>configuration_editor_input_value_changed<\/code><\/p>\n\n\n\n<p>\u4e0b\u9762\u662f \u7684\u914d\u7f6e\u6587\u4ef6\u3002<code>htmlEmailEditor<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--htmlEmailEditor.js-meta.xml--&gt;\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n    &lt;apiVersion&gt;49.0&lt;\/apiVersion&gt;\n    &lt;!--isExposed can be true or false--&gt;\n    &lt;isExposed&gt;true&lt;\/isExposed&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"example:-custom-property-editor-for-a-screen-component\">\u793a\u4f8b\uff1a\u5c4f\u5e55\u7ec4\u4ef6\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668<\/h2>\n\n\n\n<p>\u6b64\u793a\u4f8b\u4e3a\u663e\u793a\u5377\u7684\u81ea\u5b9a\u4e49\u6d41\u5c4f\u5e55\u7ec4\u4ef6\u521b\u5efa\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002\u7ba1\u7406\u5458\u4f7f\u7528\u5377\u7ec4\u4ef6\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u7684\u6ed1\u5757\u8bbe\u7f6e\u5377\u3002\u5f53\u7528\u6237\u8fd0\u884c\u6d41\u7a0b\u65f6\uff0c\u6d41\u7a0b\u5c4f\u5e55\u4f1a\u663e\u793a\u7ba1\u7406\u5458\u8bbe\u7f6e\u7684\u97f3\u91cf\u7ea7\u522b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"404\" height=\"169\" src=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_screen_runtime.png\" alt=\"\" class=\"wp-image-3918\" srcset=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_screen_runtime.png 404w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_screen_runtime-300x125.png 300w\" sizes=\"(max-width: 404px) 100vw, 404px\" \/><\/figure>\n\n\n\n<p>\u4ee5\u4e0b HTML\u3001JavaScript \u548c\u914d\u7f6e\u6587\u4ef6\u5b9a\u4e49\u81ea\u5b9a\u4e49\u6d41\u5c4f\u5e55\u7ec4\u4ef6\u3002<code>volume<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--volume.html--&gt;\n&lt;template&gt;\n  &lt;div&gt;\n    &lt;h1 class=\"slds-text-heading_medium\"&gt;Volume&lt;\/h1&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=\"slds-p-top_xxx-small\"&gt;\n    &lt;p&gt;\n      Your selected volume is:\n      &lt;lightning-formatted-number value={volume}&gt;&lt;\/lightning-formatted-number&gt;\n    &lt;\/p&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>JavaScript \u7c7b\u5b9a\u4e49\u4e00\u4e2a\u516c\u5171\u5c5e\u6027\u3002<code>volume<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ volume.js\nimport { LightningElement, api } from \"lwc\";\n\nexport default class Volume extends LightningElement {\n  @api volume;\n}<\/code><\/pre>\n\n\n\n<p>\u8981\u5728 Flow Builder \u4e2d\u516c\u5f00\u516c\u5171\u5c5e\u6027\uff0c\u8bf7\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u5b9a\u4e49\u5b83\uff1a\u3002\u8be5\u7279\u6027\u786e\u5b9a\u5c5e\u6027\u662f\u5426\u53ef\u4ee5\u63a5\u6536\u6765\u81ea\u6d41\u7684\u8f93\u5165\u3002\u672c\u793a\u4f8b\u4e2d\u4f7f\u7528\u7684\u9ed8\u8ba4\u503c\u4e3a \u3002\u82e5\u8981\u4f7f\u5c5e\u6027\u4ec5\u53ef\u7528\u4e8e\u8f93\u5165\u6216\u8f93\u51fa\uff0c\u8bf7\u5c06\u8be5\u7279\u6027\u8bbe\u7f6e\u4e3a \u6216 \u3002<code>volume<\/code><code>&lt;property name=\"volume\" type=\"Integer\"\/&gt;<\/code><code>role<\/code><code>inputAndOutput<\/code><code>role<\/code><code>inputOnly<\/code><code>outputOnly<\/code><\/p>\n\n\n\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u4f7f\u7528\u5c5e\u6027\u6ce8\u518c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\uff1a\u3002\u9664\u975e\u7ec4\u7ec7\u5177\u6709\u81ea\u5b9a\u4e49\u547d\u540d\u7a7a\u95f4\uff0c\u5426\u5219\u8bf7\u4f7f\u7528\u547d\u540d\u7a7a\u95f4\u3002\u5982\u679c\u7ec4\u7ec7\u5177\u6709\u81ea\u5b9a\u4e49\u547d\u540d\u7a7a\u95f4\uff0c\u8bf7\u4f7f\u7528\u8be5\u547d\u540d\u7a7a\u95f4\u3002<code>configurationEditor<\/code><code>&lt;targetConfig targets=\"lightning__FlowScreen\" configurationEditor=\"c-volume-editor\"&gt;<\/code><code>c<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!-- volume.js-meta.xml--&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n  &lt;apiVersion&gt;49.0&lt;\/apiVersion&gt;\n  &lt;isExposed&gt;true&lt;\/isExposed&gt;\n  &lt;targets&gt;\n    &lt;target&gt;lightning__FlowScreen&lt;\/target&gt;\n  &lt;\/targets&gt;\n  &lt;masterLabel&gt;Volume&lt;\/masterLabel&gt;\n  &lt;targetConfigs&gt;\n    &lt;targetConfig targets=\"lightning__FlowScreen\" configurationEditor=\"c-volume-editor\"&gt;\n      &lt;property name=\"volume\" type=\"Integer\"\/&gt;\n    &lt;\/targetConfig&gt;\n  &lt;\/targetConfigs&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b HTML\u3001JavaScript \u548c\u914d\u7f6e\u6587\u4ef6\u5b9a\u4e49\u7ec4\u4ef6\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002<code>volume<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"274\" src=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_volume-1-1024x274.png\" alt=\"\" class=\"wp-image-3919\" srcset=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_volume-1-1024x274.png 1024w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_volume-1-300x80.png 300w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_volume-1-768x205.png 768w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_volume-1.png 1181w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684 HTML \u6a21\u677f\u5b9a\u4e49 UI\uff0c\u8be5 UI \u4f7f\u7528\u6ed1\u5757\u57fa\u7840 Lightning Web \u7ec4\u4ef6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--volumeEditor.html--&gt;\n&lt;template&gt;\n  &lt;div class=\"slds-p-around_xx-small\"&gt;\n    &lt;lightning-slider label=\"Volume\" step=\"10\" value={volume} onchange={handleChange}&gt;\n    &lt;\/lightning-slider&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>\u521d\u59cb\u5316\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u65f6\uff0c\u5176 JavaScript \u7c7b\u4f1a\u4ece Flow Builder \u63a5\u6536\u6d41\u5143\u6570\u636e\u7684\u526f\u672c\u3002\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u8fdb\u884c\u66f4\u65b0\u65f6\uff0c\u5b83\u4f1a\u8c03\u5ea6\u4e00\u4e2a\u4e8b\u4ef6\u4ee5\u5c06\u66f4\u6539\u4f20\u64ad\u56de Flow Builder\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>\u4f7f\u7528\u5c5e\u6027\u4ece\u6d41\u4e2d\u6355\u83b7\u6570\u636e\u3002\u4f7f\u7528\u4e8b\u4ef6\u5728\u8fd0\u884c\u65f6\u62a5\u544a\u5bf9\u6d41\u7684\u66f4\u6539\u3002<code>@api<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ volumeEditor.js\nimport { LightningElement, api } from \"lwc\";\n\nexport default class VolumeEditor extends LightningElement {\n  _inputVariables = &#91;];\n\n  @api\n  get inputVariables() {\n    return this._inputVariables;\n  }\n\n  \/\/ Set a field with the data that was stored from the flow.\n  \/\/ This data includes the public volume property of the custom volume\n  \/\/ component.\n  set inputVariables(variables) {\n    this._inputVariables = variables || &#91;];\n  }\n\n  \/\/ Get the value of the volume input variable.\n  get volume() {\n    const param = this.inputVariables.find(({ name }) =&gt; name === \"volume\");\n    return param &amp;&amp; param.value;\n  }\n\n  @api\n  validate() {\n    const volumeCmp = this.template.querySelector(\"lightning-slider\");\n    const validity = &#91;];\n    if (this.volume &lt; 0 || this.volume &gt; 100) {\n      volumeCmp.setCustomValidity(\"The slider range is between 0 and 100.\");\n      validity.push({\n        key: \"Slider Range\",\n        errorString: \"The slider range is between 0 and 100.\",\n      });\n    } else {\n      volumeCmp.setCustomValidity(\"\");\n    }\n    volumeCmp.reportValidity();\n    return validity;\n  }\n\n  handleChange(event) {\n    if (event &amp;&amp; event.detail) {\n      const newValue = event.detail.value;\n      const valueChangedEvent = new CustomEvent(\"configuration_editor_input_value_changed\", {\n        bubbles: true,\n        cancelable: false,\n        composed: true,\n        detail: {\n          name: \"volume\",\n          newValue,\n          newValueDataType: \"Number\",\n        },\n      });\n      this.dispatchEvent(valueChangedEvent);\n    }\n  }\n}<\/code><\/pre>\n\n\n\n<p>Flow Builder \u5177\u6709\u7528\u4e8e\u4e0e\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u8fdb\u884c\u901a\u4fe1\u7684\u00a0JavaScript \u63a5\u53e3\u3002\u6b64 JavaScript \u7c7b\u4f7f\u7528 \u548c \u63a5\u53e3\u3002<code>inputVariablesvalidate<\/code><\/p>\n\n\n\n<p>\u6b64\u793a\u4f8b\u5b9a\u4e49\u4e86 \u7684 getter \u548c setter\u3002\u521d\u59cb\u5316\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u65f6\uff0csetter \u4ece Flow Builder \u63a5\u6536\u5c4f\u5e55\u7ec4\u4ef6\u4e2d\u516c\u5171\u5c5e\u6027\u7684\u503c\u3002\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u5c06\u6d41\u5143\u6570\u636e\u5b58\u50a8\u5728\u5b57\u6bb5\u4e2d\u7684\u7ea6\u5b9a\uff0c\u4f46\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u547d\u540d\u8be5\u5b57\u6bb5\u3002<code>inputVariables<\/code><code>inputVariables<\/code><code>_inputVariables<\/code><\/p>\n\n\n\n<p>\u4e2d\u7684\u6570\u636e\u7ed3\u6784\u5305\u62ec\u6bcf\u4e2a\u8f93\u5165\u53d8\u91cf\u7684\u540d\u79f0\u3001\u503c\u548c\u6570\u636e\u7c7b\u578b\u3002<code>_inputVariables<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;\n  {\n    name: \"volume\",\n    value: \"10\",\n    valueDataType: \"Number\",\n  },\n];<\/code><\/pre>\n\n\n\n<p>\u8be5\u65b9\u6cd5\u83b7\u53d6\u7528\u4e8e\u5377 UI \u7684\u5c5e\u6027\u3002<code>volume<\/code><code>value<\/code><code>volume<\/code><\/p>\n\n\n\n<p>\u5f53\u7ba1\u7406\u5458\u5728 Flow Builder \u7684\u5c4f\u5e55\u7f16\u8f91\u5668 UI \u4e2d\u5355\u51fb<strong>\u201c\u5b8c\u6210<\/strong>\u201d\u65f6\uff0cFlow Builder \u4f1a\u8bc4\u4f30\u6bcf\u4e2a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u7684\u51fd\u6570\u3002\u5982\u679c\u51fd\u6570\u8fd4\u56de \u548c \u6570\u636e\u7ed3\u6784\uff0c\u5219 Flow Builder \u4f1a\u663e\u793a\u9519\u8bef\u6570\uff0c\u5e76\u963b\u6b62\u7ba1\u7406\u5458\u5728\u5c4f\u5e55\u7f16\u8f91\u5668\u4e2d\u4fdd\u5b58\u66f4\u6539\u3002<code>validate<\/code><code>key<\/code><code>errorString<\/code><\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>Flow Builder \u4ec5\u663e\u793a\u9519\u8bef\u6570\u3002\u82e5\u8981\u663e\u793a\u9519\u8bef\u5b57\u7b26\u4e32\uff0c\u8bf7\u7f16\u5199\u4ee3\u7801\u3002\u6b64\u793a\u4f8b\u4f7f\u7528\u7ec4\u4ef6\u7684\u51fd\u6570\u663e\u793a\u81ea\u5b9a\u4e49\u9519\u8bef\u6d88\u606f\u3002\u4f7f\u7528 interface \u65b9\u6cd5\u3002<code>lightning-slider<\/code><code>setCustomValidity()<\/code><code>validate<\/code><\/p>\n\n\n\n<p>\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u8f93\u5165 volume \u7684\u503c\u65f6\uff0c\u8be5\u65b9\u6cd5\u4f1a\u5c06\u4e8b\u4ef6\u8c03\u5ea6\u5230 Flow Builder\u3002Flow Builder \u63a5\u6536\u4e8b\u4ef6\u5e76\u66f4\u65b0\u6d41\u4e2d\u7684\u503c\u3002<code>handleChange<\/code><code>configuration_editor_input_value_changed<\/code><\/p>\n\n\n\n<p>\u8fd9\u662f \u7684\u914d\u7f6e\u6587\u4ef6\u3002<code>volumeEditor<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--volumeEditor.js-meta.xml--&gt;\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n  &lt;apiVersion&gt;49.0&lt;\/apiVersion&gt;\n  &lt;!--isExposed can be true or false--&gt;\n  &lt;isExposed&gt;true&lt;\/isExposed&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"example:-generic-sobject-input-for-invocable-actions\">\u793a\u4f8b\uff1a\u53ef\u8c03\u7528\u64cd\u4f5c\u7684\u901a\u7528 SObject \u8f93\u5165<\/h2>\n\n\n\n<p>\u6b64\u793a\u4f8b\u4e3a\u4f7f\u7528\u6cdb\u578b sObject \u8f93\u5165\u53c2\u6570\u7684\u53ef\u8c03\u7528\u64cd\u4f5c\u521b\u5efa\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002\u53ef\u8c03\u7528\u64cd\u4f5c\u662f\u53ef\u4ee5\u6dfb\u52a0\u5230\u6d41\u7a0b\u4e2d\u7684 Apex \u65b9\u6cd5\u3002\u5728 Flow Builder \u4e2d\uff0c\u7ba1\u7406\u5458\u4f7f\u7528\u9009\u62e9\u5217\u8868\u5b57\u6bb5\u6765\u8bbe\u7f6e\u53ef\u8c03\u7528\u64cd\u4f5c\u7684\u8f93\u5165\u53c2\u6570\uff1a\u8bb0\u5f55\u53d8\u91cf\u7684\u5bf9\u8c61\u3001\u8bb0\u5f55\u53d8\u91cf\u548c\u7528\u4e8e\u5b58\u50a8\u8f93\u51fa\u7684\u5bf9\u8c61\u3002\u5f53\u7528\u6237\u8fd0\u884c\u6b64\u793a\u4f8b\u7684\u6d41\u65f6\uff0c\u53ef\u8c03\u7528\u64cd\u4f5c\u5c06\u5b58\u50a8\u8bb0\u5f55\u96c6\u5408\u4e2d\u7684\u7b2c\u4e00\u6761\u8bb0\u5f55\u3002<\/p>\n\n\n\n<p>\u6b64 Apex \u7c7b\u6587\u4ef6\u5b9a\u4e49\u4e86\u53ef\u4f5c\u4e3a\u53ef\u8c03\u7528\u64cd\u4f5c\u8fd0\u884c\u7684\u65b9\u6cd5\u53ca\u5176\u8f93\u5165\u53d8\u91cf\u3002\u6ce8\u91ca\u6807\u8bc6\u53ef\u4ee5\u4f5c\u4e3a\u53ef\u8c03\u7528\u64cd\u4f5c\u8fd0\u884c\u7684\u65b9\u6cd5\u3002\u6ce8\u91ca\u6807\u8bc6\u53ef\u8c03\u7528\u65b9\u6cd5\u4f7f\u7528\u7684\u53d8\u91cf\u3002<code>selectRecord<\/code><code>@InvocableMethod<\/code><code>@InvocableVariable<\/code><\/p>\n\n\n\n<p>\u53ef\u8c03\u7528\u65b9\u6cd5\u5728\u4fee\u9970\u7b26\u4e2d\u6ce8\u518c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002\u9664\u975e\u7ec4\u7ec7\u5177\u6709\u81ea\u5b9a\u4e49\u547d\u540d\u7a7a\u95f4\uff0c\u5426\u5219\u547d\u540d\u7a7a\u95f4\u3002\u5982\u679c\u7ec4\u7ec7\u5177\u6709\u81ea\u5b9a\u4e49\u547d\u540d\u7a7a\u95f4\uff0c\u8bf7\u4f7f\u7528\u8be5\u547d\u540d\u7a7a\u95f4\u6ce8\u518c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684\u540d\u79f0\u4e3a \u3002<code>configurationEditor<\/code><code>c<\/code><code>c-select-record-editor<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ SelectRecordAction.cls\npublic with sharing class SelectRecordAction {\n    @InvocableMethod(configurationEditor='c-select-record-editor')\n    public static List &lt;Results&gt; selectRecord(List&lt;Requests&gt; requestList) {\n        List&lt;SObject&gt; inputCollection = requestList&#91;0].inputCollection;\n        \/\/Store the first input record for output\n        SObject outputMember = inputCollection&#91;0];\n        Results response = new Results();\n        response.outputMember = outputMember;\n        List&lt;Results&gt; responseWrapper= new List&lt;Results&gt;();\n        responseWrapper.add(response);\n        return responseWrapper;\n    }\n\npublic class Requests {\n    @InvocableVariable(label='Object for Input' description='Records for Input')\n    public List&lt;SObject&gt; inputCollection;\n    }\n\npublic class Results {\n    @InvocableVariable(label='Object for Storing Output' description='Records for Output')\n    public SObject outputMember;\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u8fd9\u4e9b HTML\u3001CSS\u3001JavaScript \u548c\u914d\u7f6e\u6587\u4ef6\u5b9a\u4e49\u64cd\u4f5c\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002<\/p>\n\n\n\n<p>HTML \u6a21\u677f\u5b9a\u4e49 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684 UI\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--selectRecordEditor.html--&gt;\n&lt;template&gt;\n  &lt;lightning-combobox\n    name=\"inputType\"\n    label=\"Object for Record Variable\"\n    value={inputType}\n    placeholder=\"Select object...\"\n    options={typeOptions}\n    onchange={handleInputTypeChange}\n  &gt;\n  &lt;\/lightning-combobox&gt;\n\n  &lt;lightning-combobox\n    name=\"outputType\"\n    label=\"Object for Storing Output\"\n    value={outputType}\n    placeholder=\"Select object...\"\n    options={typeOptions}\n    onchange={handleOutputTypeChange}\n  &gt;\n  &lt;\/lightning-combobox&gt;\n\n  &lt;lightning-combobox\n    name=\"inputValue\"\n    label=\"Record Variable\"\n    value={inputValue}\n    placeholder=\"Select record variable...\"\n    options={valueOptions}\n    onchange={handleValueChange}\n  &gt;\n  &lt;\/lightning-combobox&gt;\n\n  &lt;div class=\"slds-p-bottom_medium\"&gt;&lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>\u6b64\u793a\u4f8b\u663e\u793a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668 UI\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"177\" src=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_selectRecordFB.png\" alt=\"\" class=\"wp-image-3920\" srcset=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_selectRecordFB.png 800w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_selectRecordFB-300x66.png 300w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_selectRecordFB-768x170.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u521d\u59cb\u5316\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u540e\uff0cJavaScript \u7c7b\u4f1a\u4ece Flow Builder \u63a5\u6536\u6d41\u5143\u6570\u636e\u7684\u526f\u672c\u3002\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u66f4\u6539\u503c\u65f6\uff0c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4f1a\u8c03\u5ea6\u4e00\u4e2a\u4e8b\u4ef6\u4ee5\u5c06\u66f4\u6539\u4f20\u64ad\u56de Flow Builder\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>\u4f7f\u7528\u5c5e\u6027\u4ece\u6d41\u4e2d\u6355\u83b7\u6570\u636e\u3002\u4f7f\u7528\u4e8b\u4ef6\u5728\u8fd0\u884c\u65f6\u62a5\u544a\u5bf9\u6d41\u7684\u66f4\u6539\u3002<code>@api<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ selectRecordEditor.js\nimport { LightningElement, api } from \"lwc\";\n\nexport default class SelectRecordEditor extends LightningElement {\n  @api\n  inputVariables;\n\n  @api\n  genericTypeMappings;\n\n  @api\n  builderContext;\n\n  get inputValue() {\n    const param = this.inputVariables.find(({ name }) =&gt; name === \"inputCollection\");\n    return param &amp;&amp; param.value;\n  }\n\n  get inputType() {\n    const type = this.genericTypeMappings.find(({ typeName }) =&gt; typeName === \"T__inputCollection\");\n    return type &amp;&amp; type.typeValue;\n  }\n\n  get outputType() {\n    const type = this.genericTypeMappings.find(({ typeName }) =&gt; typeName === \"U__outputMember\");\n    return type &amp;&amp; type.typeValue;\n  }\n\n  get typeOptions() {\n    return &#91;\n      { label: \"Account\", value: \"Account\" },\n      { label: \"Case\", value: \"Case\" },\n      { label: \"Lead\", value: \"Lead\" },\n    ];\n  }\n\n  get valueOptions() {\n    const variables = this.builderContext.variables;\n    return variables.map(({ name }) =&gt; ({\n      label: name,\n      value: name,\n    }));\n  }\n\n  handleInputTypeChange(event) {\n    if (event &amp;&amp; event.detail) {\n      const newValue = event.detail.value;\n      const typeChangedEvent = new CustomEvent(\n        \"configuration_editor_generic_type_mapping_changed\",\n        {\n          bubbles: true,\n          cancelable: false,\n          composed: true,\n          detail: {\n            typeName: \"T__inputCollection\",\n            typeValue: newValue,\n          },\n        },\n      );\n      this.dispatchEvent(typeChangedEvent);\n    }\n  }\n\n  handleOutputTypeChange(event) {\n    if (event &amp;&amp; event.detail) {\n      const newValue = event.detail.value;\n      const typeChangedEvent = new CustomEvent(\n        \"configuration_editor_generic_type_mapping_changed\",\n        {\n          bubbles: true,\n          cancelable: false,\n          composed: true,\n          detail: {\n            typeName: \"U__outputMember\",\n            typeValue: newValue,\n          },\n        },\n      );\n      this.dispatchEvent(typeChangedEvent);\n    }\n  }\n\n  handleValueChange(event) {\n    if (event &amp;&amp; event.detail) {\n      const newValue = event.detail.value;\n      const valueChangedEvent = new CustomEvent(\"configuration_editor_input_value_changed\", {\n        bubbles: true,\n        cancelable: false,\n        composed: true,\n        detail: {\n          name: \"inputCollection\",\n          newValue,\n          newValueDataType: \"reference\",\n        },\n      });\n      this.dispatchEvent(valueChangedEvent);\n    }\n  }\n}<\/code><\/pre>\n\n\n\n<p>Flow Builder \u5177\u6709\u7528\u4e8e\u4e0e\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u8fdb\u884c\u901a\u4fe1\u7684\u00a0JavaScript \u63a5\u53e3\u3002\u6b64 JavaScript \u7c7b\u4f7f\u7528 \u3001 \u548c \u63a5\u53e3\u3002<code>inputVariablesbuilderContextgenericTypeMappings<\/code><\/p>\n\n\n\n<p>\u521d\u59cb\u5316\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u540e\uff0c\u4ece Flow Builder \u63a5\u6536\u53ef\u8c03\u7528\u64cd\u4f5c\u4e2d\u8f93\u5165\u53d8\u91cf\u7684\u503c\u3002<code>inputVariables<\/code><\/p>\n\n\n\n<p>\u6570\u636e\u7ed3\u6784\u5305\u62ec\u6bcf\u4e2a\u8f93\u5165\u53d8\u91cf\u7684\u540d\u79f0\u3001\u503c\u548c\u6570\u636e\u7c7b\u578b\u3002<code>inputVariables<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;\n  {\n    name: \"inputType\",\n    value: \"Account\",\n    valueDataType: \"Account\",\n  },\n];<\/code><\/pre>\n\n\n\n<p>\u8be5\u65b9\u6cd5\u83b7\u53d6\u6bcf\u4e2a\u8f93\u5165\u53d8\u91cf\u7684\u503c\uff0c\u4ee5\u4fbf\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u4f7f\u7528\u3002<code>get inputValue()<\/code><\/p>\n\n\n\n<p>\u8be5\u63a5\u53e3\u63a5\u6536\u8f93\u5165\u53d8\u91cf\u7684\u503c\uff0c\u8fd9\u4e9b\u53d8\u91cf\u662f Flow Builder \u4e2d\u53ef\u8c03\u7528\u64cd\u4f5c\u4e2d\u7684\u901a\u7528 sObject \u6570\u636e\u7c7b\u578b\u3002<code>genericTypeMappings<\/code><\/p>\n\n\n\n<p>\u6570\u636e\u7ed3\u6784\u5305\u62ec\u6bcf\u4e2a\u8f93\u5165\u7684\u540d\u79f0\u548c\u503c\u3002\u5fc5\u987b\u4e0e\u4f7f\u7528\u65b9\u6cd5\u4e2d\u7684\u6ce8\u91ca\u5b9a\u4e49\u7684\u6cdb\u578b sObject \u8f93\u5165\u7684\u540d\u79f0\u5339\u914d\uff0c\u4f8b\u5982 \u3002 \u5728\u8f93\u5165\u540d\u79f0\u524d\u9762\u52a0\u4e0a\uff0c\u5e76\u81ea\u52a8\u5728\u8f93\u51fa\u540d\u79f0\u524d\u9762\u52a0\u4e0a\u3002\u662f\u901a\u7528 sObject \u8f93\u5165\u7684\u7279\u5b9a\u503c\uff0c\u4f8b\u5982 \u3002<code>typeName<\/code><code>@InvocableVariable<\/code><code>\u2019T__inputCollection\u2019<\/code><code>T__<\/code><code>U__<\/code><code>typeValue<\/code><code>Account<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;\n  {\n    typeName: \"T__inputCollection\",\n    typeValue: \"Account\",\n  },\n];<\/code><\/pre>\n\n\n\n<p>\u548c\u65b9\u6cd5\u83b7\u53d6\u6bcf\u4e2a\u8f93\u5165\u53c2\u6570\u7684\u503c\uff0c\u8be5\u53c2\u6570\u662f\u7528\u4e8e\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684\u6cdb\u578b sObject \u6570\u636e\u7c7b\u578b\u3002<code>get inputType()<\/code><code>get outputType()<\/code><\/p>\n\n\n\n<p>\u8be5\u65b9\u6cd5\u83b7\u53d6\u6bcf\u4e2a\u5bf9\u8c61\u8f93\u5165\u9009\u9879\u7684\u6807\u7b7e\u548c\u503c\uff0c\u4ee5\u4fbf\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u4f7f\u7528\u3002<code>get typeOptions()<\/code><\/p>\n\n\n\n<p>\u8be5\u63a5\u53e3\u63d0\u4f9b\u6709\u5173\u6d41\u4e2d\u5143\u7d20\u548c\u8d44\u6e90\u7684\u6570\u636e\u3002<code>builderContext<\/code><\/p>\n\n\n\n<p>\u6570\u636e\u7ed3\u6784\u5305\u62ec\u6d41\u4e2d\u7684\u5143\u7d20\u548c\u8d44\u6e90\u3002<code>builderContext<\/code><\/p>\n\n\n\n<p>\u8be5\u65b9\u6cd5\u4f7f\u7528\u53d8\u91cf\u4e2d\u7684\u6570\u636e\u4f5c\u4e3a\u53ef\u8c03\u7528\u64cd\u4f5c\u8f93\u5165\u53c2\u6570\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e0a\u7684\u8f93\u5165\u503c\u9009\u9879\u3002<code>get valueOptions()<\/code><\/p>\n\n\n\n<p>\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u4e3a<strong>\u8bb0\u5f55\u53d8\u91cf\u7684\u5bf9\u8c61<\/strong>\u8f93\u5165\u503c\u65f6\uff0c\u8be5\u65b9\u6cd5\u4f1a\u5c06\u4e8b\u4ef6\u8c03\u5ea6\u5230 Flow Builder\u3002Flow Builder \u63a5\u6536\u4e8b\u4ef6\u5e76\u66f4\u65b0\u6d41\u4e2d\u7684\u503c\u3002<code>handleInputTypeChange<\/code><code>configuration_editor_generic_type_mapping_changed<\/code><\/p>\n\n\n\n<p>\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u8f93\u5165\u7528\u4e8e<strong>\u5b58\u50a8\u8f93\u51fa\u7684\u5bf9\u8c61<\/strong>\u7684\u503c\u65f6\uff0c\u8be5\u65b9\u6cd5\u4f1a\u5c06\u4e8b\u4ef6\u8c03\u5ea6\u5230 Flow Builder\u3002Flow Builder \u63a5\u6536\u4e8b\u4ef6\u5e76\u66f4\u65b0\u6d41\u4e2d\u7684\u503c\u3002<code>handleOutputTypeChange<\/code><code>configuration_editor_generic_type_mapping_changed<\/code><\/p>\n\n\n\n<p>\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u8f93\u5165<strong>\u201c\u8bb0\u5f55\u53d8\u91cf<\/strong>\u201d\u7684\u503c\u65f6\uff0c\u8be5\u65b9\u6cd5\u4f1a\u5c06\u4e8b\u4ef6\u8c03\u5ea6\u5230 Flow Builder\u3002Flow Builder \u63a5\u6536\u4e8b\u4ef6\u5e76\u66f4\u65b0\u6d41\u4e2d\u7684\u503c\u3002<code>handleValueChange<\/code><code>configuration_editor_input_value_changed<\/code><\/p>\n\n\n\n<p>\u4e0b\u9762\u662f \u7684\u914d\u7f6e\u6587\u4ef6\u3002<code>selectRecordEditor<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--selectRecordEditor.js-meta.xml--&gt;\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n    &lt;apiVersion&gt;50.0&lt;\/apiVersion&gt;\n    &lt;!--isExposed can be true or false--&gt;\n    &lt;isExposed&gt;true&lt;\/isExposed&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"example:-generic-sobject-input-for-screen-components\">\u793a\u4f8b\uff1a\u5c4f\u5e55\u7ec4\u4ef6\u7684\u901a\u7528 SObject \u8f93\u5165<\/h2>\n\n\n\n<p>\u6b64\u793a\u4f8b\u4e3a\u4f7f\u7528\u6cdb\u578b\u8f93\u5165\u503c\u7684\u81ea\u5b9a\u4e49\u6d41\u5c4f\u5e55\u7ec4\u4ef6\u521b\u5efa\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002\u7ba1\u7406\u5458\u4f7f\u7528\u9009\u62e9\u5217\u8868\u5b57\u6bb5\u4e3a\u8bb0\u5f55\u53d8\u91cf\u7684\u5bf9\u8c61\u548c\u8bb0\u5f55\u53d8\u91cf\u8bbe\u7f6e\u5c4f\u5e55\u7ec4\u4ef6\u7684\u8f93\u5165\u503c\u3002\u5f53\u7528\u6237\u8fd0\u884c\u6b64\u793a\u4f8b\u7684\u6d41\u65f6\uff0c\u5c4f\u5e55\u7ec4\u4ef6\u5c06\u663e\u793a\u8bb0\u5f55\u96c6\u5408\u4e2d\u7684\u7b2c\u4e00\u6761\u8bb0\u5f55\u3002<code>sObject<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"129\" src=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_displayRecordRun.png\" alt=\"\" class=\"wp-image-3921\" srcset=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_displayRecordRun.png 728w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_displayRecordRun-300x53.png 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/figure>\n\n\n\n<p>\u4ee5\u4e0b HTML\u3001JavaScript \u548c\u914d\u7f6e\u6587\u4ef6\u5b9a\u4e49\u81ea\u5b9a\u4e49\u6d41\u5c4f\u5e55\u7ec4\u4ef6\u3002<code>displayRecord<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--displayRecord.html--&gt;\n&lt;template&gt;\n  &lt;p&gt;Record Name: {inputValue.Name}&lt;\/p&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>JavaScript \u7c7b\u5b9a\u4e49\u4e00\u4e2a\u516c\u5171\u5c5e\u6027\u3002<code>inputValue<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ displayRecord.js\nimport { LightningElement, api } from \"lwc\";\n\nexport default class DisplayRecord extends LightningElement {\n  @api\n  inputValue;\n}<\/code><\/pre>\n\n\n\n<p>\u8981\u5728 Flow Builder \u4e2d\u516c\u5f00\u516c\u5171\u5c5e\u6027\uff0c\u8bf7\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u5b9a\u4e49\u5b83\u3002\u82e5\u8981\u5c06\u5c5e\u6027\u5b9a\u4e49\u4e3a\u6cdb\u578b\u6570\u636e\u7c7b\u578b\uff0c\u8bf7\u5b9a\u4e49\u5b50\u6807\u8bb0\u3002\u5b50\u6807\u8bb0\u6269\u5c55\u6cdb\u578b\u6570\u636e\u7c7b\u578b\u3002\u7684\u5c5e\u6027\u5f15\u7528\u5b50\u6807\u8bb0\u7684\u5c5e\u6027\u3002\u4f8b\u5982\uff0c\u5982\u679c \uff0c\u5219 .\u5b50\u6807\u8bb0\u7684\u5c5e\u6027\u5fc5\u987b\u4f4d\u4e8e\u5927\u62ec\u53f7\u5185\u3002\u8981\u5c06\u5c5e\u6027\u5b9a\u4e49\u4e3a\u6cdb\u578b\u96c6\u5408\u6570\u636e\u7c7b\u578b\uff0c\u8bf7\u8ffd\u52a0 \uff0c\u4f8b\u5982 \u3002<code>inputValue<\/code><code>sObject<\/code><code>propertyType<\/code><code>sObject<\/code><code>type<\/code><code>inputValue<\/code><code>name<\/code><code>propertyType<\/code><code>propertyType name=\"T\"<\/code><code>property type=\"{T}\"<\/code><code>type<\/code><code>property<\/code><code>sObject<\/code><code>[]<\/code><code>property type=\"{T[]}\"<\/code><\/p>\n\n\n\n<p>\u8be5\u7279\u6027\u786e\u5b9a\u5c5e\u6027\u662f\u5426\u53ef\u4ee5\u63a5\u6536\u6765\u81ea\u6d41\u7684\u8f93\u5165\u3002\u7f3a\u7701\u503c\u4e3a \u3002\u82e5\u8981\u4f7f\u5c5e\u6027\u4ec5\u53ef\u7528\u4e8e\u8f93\u5165\u6216\u8f93\u51fa\uff0c\u8bf7\u5c06\u8be5\u7279\u6027\u8bbe\u7f6e\u4e3a \u6216 \u3002<code>role<\/code><code>inputAndOutput<\/code><code>role<\/code><code>inputOnly<\/code><code>outputOnly<\/code><\/p>\n\n\n\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u4f7f\u7528\u8be5\u7279\u6027\u6ce8\u518c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002<code>configurationEditor<\/code><\/p>\n\n\n\n<p>\u9664\u975e\u7ec4\u7ec7\u5177\u6709\u81ea\u5b9a\u4e49\u547d\u540d\u7a7a\u95f4\uff0c\u5426\u5219\u8bf7\u4f7f\u7528\u547d\u540d\u7a7a\u95f4\u3002\u5982\u679c\u7ec4\u7ec7\u5177\u6709\u81ea\u5b9a\u4e49\u547d\u540d\u7a7a\u95f4\uff0c\u8bf7\u4f7f\u7528\u8be5\u547d\u540d\u7a7a\u95f4\u3002<code>c<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!-- displayRecord.js-meta.xml--&gt;\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n  &lt;apiVersion&gt;50.0&lt;\/apiVersion&gt;\n  &lt;isExposed&gt;true&lt;\/isExposed&gt;\n  &lt;targets&gt;\n    &lt;target&gt;lightning__FlowScreen&lt;\/target&gt;\n  &lt;\/targets&gt;\n  &lt;masterLabel&gt;Display Record&lt;\/masterLabel&gt;\n  &lt;targetConfigs&gt;\n    &lt;targetConfig targets=\"lightning__FlowScreen\" configurationEditor=\"c-display-record-editor\"&gt;\n      &lt;propertyType name=\"T\" extends=\"SObject\" label=\"Input Type\" description=\"Generic sObject data type used for input sObject properties\" \/&gt;\n      &lt;property name=\"inputValue\" type={T} label=\"input value\" role=\"inputOnly\" \/&gt;\n    &lt;\/targetConfig&gt;\n  &lt;\/targetConfigs&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b HTML\u3001JavaScript \u548c\u914d\u7f6e\u6587\u4ef6\u5b9a\u4e49\u7ec4\u4ef6\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002<code>displayRecord<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"193\" src=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_displayRecordFB.png\" alt=\"\" class=\"wp-image-3922\" srcset=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_displayRecordFB.png 800w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_displayRecordFB-300x72.png 300w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_displayRecordFB-768x185.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684 HTML \u6a21\u677f\u5b9a\u4e49\u4e86 UI\uff0c\u8be5 UI \u4f7f\u7528\u7ec4\u5408\u6846\u57fa\u7840 Lightning Web \u7ec4\u4ef6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--displayRecordEditor.html--&gt;\n&lt;template&gt;\n  &lt;lightning-combobox\n    name=\"inputType\"\n    label=\"Object for Record Variable\"\n    value=\"{inputType}\"\n    placeholder=\"Select object...\"\n    options=\"{typeOptions}\"\n    onchange=\"{handleInputTypeChange}\"\n  &gt;\n  &lt;\/lightning-combobox&gt;\n\n  &lt;lightning-combobox\n    name=\"inputValue\"\n    label=\"Record Variable\"\n    value=\"{inputValue}\"\n    placeholder=\"Select record variable...\"\n    options=\"{valueOptions}\"\n    onchange=\"{handleValueChange}\"\n  &gt;\n  &lt;\/lightning-combobox&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>\u521d\u59cb\u5316\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u65f6\uff0c\u5176 JavaScript \u7c7b\u4f1a\u4ece Flow Builder \u63a5\u6536\u6d41\u5143\u6570\u636e\u7684\u526f\u672c\u3002\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u8fdb\u884c\u66f4\u65b0\u65f6\uff0c\u5b83\u4f1a\u8c03\u5ea6\u4e00\u4e2a\u4e8b\u4ef6\u4ee5\u5c06\u66f4\u6539\u4f20\u64ad\u56de Flow Builder\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>\u4f7f\u7528\u5c5e\u6027\u4ece\u6d41\u4e2d\u6355\u83b7\u6570\u636e\u3002\u4f7f\u7528\u4e8b\u4ef6\u5728\u8fd0\u884c\u65f6\u62a5\u544a\u5bf9\u6d41\u7684\u66f4\u6539\u3002<code>@api<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ displayRecordEditor.js\nimport { LightningElement, api } from 'lwc';\n\nexport default class DisplayRecordEditor extends LightningElement {\n  @api\n  inputVariables;\n\n  @api\n  genericTypeMappings;\n\n  @api\n  builderContext;\n\n  get inputValue() {\n    const param = this.inputVariables.find(({ name }) =&gt; name === 'inputValue');\n    return param &amp;&amp; param.value;\n  }\n\n  get inputType() {\n    const type = this.genericTypeMappings.find(\n      ({ typeName }) =&gt; typeName === 'T'\n    );\n    return type &amp;&amp; type.typeValue;\n  }\n\n  get typeOptions() {\n    return &#91;\n      { label: 'Account', value: 'Account' },\n      { label: 'Case', value: 'Case' },\n      { label: 'Lead', value: 'Lead' },\n    ];\n  }\n\n  get valueOptions() {\n    const variables = this.builderContext.variables;\n    return variables.map(({ name }) =&gt; ({\n      label: name,\n      value: name,\n    }));\n  }\n\n  handleInputTypeChange(event) {\n    if (event &amp;&amp; event.detail) {\n    const newValue = event.detail.value;\n    const typeChangedEvent = new CustomEvent(\n      'configuration_editor_generic_type_mapping_changed',\n      {\n        bubbles: true,\n        cancelable: false,\n        composed: true,\n        detail: {\n          typeName: 'T',\n          typeValue: newValue\n        },\n      }\n    );\n    this.dispatchEvent(typeChangedEvent);\n    }\n  }\n\n  handleValueChange(event) {\n    if (event &amp;&amp; event.detail) {\n      const newValue = event.detail.value;\n      const valueChangedEvent = new CustomEvent(\n        'configuration_editor_input_value_changed',\n        {\n          bubbles: true,\n          cancelable: false,\n          composed: true,\n          detail: {\n            name: 'inputValue',\n            newValue,\n            newValueDataType: 'reference',\n          },\n        }\n      );\n    this.dispatchEvent(valueChangedEvent);\n    }\n  }\n}<\/code><\/pre>\n\n\n\n<p>Flow Builder \u5177\u6709\u7528\u4e8e\u4e0e\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u8fdb\u884c\u901a\u4fe1\u7684\u00a0JavaScript \u63a5\u53e3\u3002\u6b64 JavaScript \u7c7b\u4f7f\u7528 \u3001 \u548c \u63a5\u53e3\u3002<code>inputVariablesbuilderContextgenericTypeMappings<\/code><\/p>\n\n\n\n<p>\u521d\u59cb\u5316\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u540e\uff0c\u4ece Flow Builder \u63a5\u6536\u5c4f\u5e55\u7ec4\u4ef6\u4e2d\u516c\u5171\u5c5e\u6027\u7684\u503c\u3002<code>inputVariables<\/code><\/p>\n\n\n\n<p>\u6570\u636e\u7ed3\u6784\u5305\u62ec\u6bcf\u4e2a\u8f93\u5165\u53d8\u91cf\u7684\u540d\u79f0\u3001\u503c\u548c\u6570\u636e\u7c7b\u578b\u3002<code>inputVariables<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;\n  {\n    name: \"inputType\",\n    value: \"Account\",\n    valueDataType: \"Account\",\n  },\n];<\/code><\/pre>\n\n\n\n<p>\u83b7\u53d6\u8981\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u4f7f\u7528\u7684\u5c5e\u6027\u7684\u503c\u3002<code>get inputValue()<\/code><code>inputValue<\/code><\/p>\n\n\n\n<p>\u8be5\u63a5\u53e3\u4ece Flow Builder \u63a5\u6536\u8f93\u5165\u53d8\u91cf\u7684\u503c\uff0c\u8fd9\u4e9b\u53d8\u91cf\u662f\u5c4f\u5e55\u7ec4\u4ef6\u4e2d\u7684\u6cdb\u578b\u6570\u636e\u7c7b\u578b\u3002<code>genericTypeMappings<\/code><code>sObject<\/code><\/p>\n\n\n\n<p>\u6570\u636e\u7ed3\u6784\u5305\u62ec\u6bcf\u4e2a\u8f93\u5165\u7684\u540d\u79f0\u548c\u503c\u3002\u662f\u6cdb\u578b\u8f93\u5165\u7684\u540d\u79f0;\u4f8b\u5982\u3002\u662f\u6cdb\u578b\u8f93\u5165\u7684\u7279\u5b9a\u503c;\u4f8b\u5982\u3002<code>typeName<\/code><code>sObject<\/code><code>'T'<\/code><code>typeValue<\/code><code>sObject<\/code><code>Account<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;\n  {\n    typeName: \"T\",\n    typeValue: \"Account\",\n  },\n];<\/code><\/pre>\n\n\n\n<p>\u83b7\u53d6\u8981\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u4f7f\u7528\u7684\u5c5e\u6027\u7684\u6570\u636e\u7c7b\u578b\u3002<code>get inputType()<\/code><code>inputValue<\/code><\/p>\n\n\n\n<p>\u8be5\u65b9\u6cd5\u83b7\u53d6\u6bcf\u4e2a\u5bf9\u8c61\u8f93\u5165\u9009\u9879\u7684\u6807\u7b7e\u548c\u503c\uff0c\u4ee5\u4fbf\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u4f7f\u7528\u3002<code>get typeOptions()<\/code><\/p>\n\n\n\n<p>\u8be5\u63a5\u53e3\u63d0\u4f9b\u6709\u5173\u6d41\u4e2d\u5143\u7d20\u548c\u8d44\u6e90\u7684\u6570\u636e\u3002<code>builderContext<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  actionCalls: &#91;],\n  apexPluginCalls: &#91;],\n  constants: &#91;],\n  formulas: &#91;],\n  recordCreates: &#91;],\n  recordDeletes: &#91;],\n  recordLookups: &#91;],\n  recordUpdates: &#91;],\n  screens: &#91;],\n  stages: &#91;],\n  textTemplates: &#91;],\n  variables: &#91;]\n}<\/code><\/pre>\n\n\n\n<p>\u8be5\u65b9\u6cd5\u4f7f\u7528\u6765\u81ea \u7684\u6570\u636e\u4f5c\u4e3a\u5c4f\u5e55\u7ec4\u4ef6\u8f93\u5165\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e0a\u7684\u8f93\u5165\u503c\u9009\u9879\u3002<code>get valueOptions()<\/code><code>variables<\/code><\/p>\n\n\n\n<p>\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u4e3a<strong>\u8bb0\u5f55\u53d8\u91cf\u7684\u5bf9\u8c61<\/strong>\u8f93\u5165\u503c\u65f6\uff0c\u8be5\u65b9\u6cd5\u4f1a\u5c06\u4e8b\u4ef6\u8c03\u5ea6\u5230 Flow Builder\u3002Flow Builder \u63a5\u6536\u4e8b\u4ef6\u5e76\u66f4\u65b0\u6d41\u4e2d\u7684\u503c\u3002<code>handleInputTypeChange<\/code><code>configuration_editor_generic_type_mapping_changed<\/code><\/p>\n\n\n\n<p>\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u8f93\u5165<strong>\u201c\u8bb0\u5f55\u53d8\u91cf<\/strong>\u201d\u7684\u503c\u65f6\uff0c\u8be5\u65b9\u6cd5\u4f1a\u5c06\u4e8b\u4ef6\u8c03\u5ea6\u5230 Flow Builder\u3002Flow Builder \u63a5\u6536\u4e8b\u4ef6\u5e76\u66f4\u65b0\u6d41\u4e2d\u7684\u503c\u3002<code>handleValueChange<\/code><code>configuration_editor_input_value_changed<\/code><\/p>\n\n\n\n<p>\u8fd9\u662f \u7684\u914d\u7f6e\u6587\u4ef6\u3002<code>displayRecordEditor<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--displayRecordEditor.js-meta.xml--&gt;\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n  &lt;apiVersion&gt;50.0&lt;\/apiVersion&gt;\n  &lt;!--isExposed can be true or false--&gt;\n  &lt;isExposed&gt;true&lt;\/isExposed&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"example:-sobject-input-for-invocable-actions\">\u793a\u4f8b\uff1a\u53ef\u8c03\u7528\u64cd\u4f5c\u7684 SObject \u8f93\u5165<\/h2>\n\n\n\n<p>\u6b64\u793a\u4f8b\u521b\u5efa\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7ec4\u4ef6\uff0c\u8be5\u7ec4\u4ef6\u4ee5\u4f7f\u7528 Contact \u5bf9\u8c61\u8f93\u5165\u53c2\u6570\u7684\u53ef\u8c03\u7528\u64cd\u4f5c\u547d\u540d\u3002\u53ef\u8c03\u7528\u64cd\u4f5c\u662f\u53ef\u4ee5\u6dfb\u52a0\u5230\u6d41\u7a0b\u4e2d\u7684 Apex \u65b9\u6cd5\u3002\u5728 Flow Builder \u4e2d\uff0c\u7ba1\u7406\u5458\u4f7f\u7528\u6587\u672c\u5b57\u6bb5\u6765\u8bbe\u7f6e\u53ef\u8c03\u7528\u64cd\u4f5c\u7684\u8054\u7cfb\u4eba\u8f93\u5165\u53c2\u6570\u3002\u5f53\u7528\u6237\u8fd0\u884c\u6b64\u793a\u4f8b\u7684\u6d41\u65f6\uff0c\u53ef\u8c03\u7528\u64cd\u4f5c\u4f1a\u5b58\u50a8\u4e00\u4e2a\u65b0\u8054\u7cfb\u4eba\u3002<code>createContactActionEditor<\/code><\/p>\n\n\n\n<p>\u6b64 Apex \u7c7b\u6587\u4ef6\u5b9a\u4e49\u4e86\u53ef\u4f5c\u4e3a\u53ef\u8c03\u7528\u64cd\u4f5c\u8fd0\u884c\u7684\u65b9\u6cd5\u53ca\u5176\u8f93\u5165\u53d8\u91cf\u3002\u6ce8\u91ca\u6807\u8bc6\u53ef\u4ee5\u4f5c\u4e3a\u53ef\u8c03\u7528\u64cd\u4f5c\u8fd0\u884c\u7684\u65b9\u6cd5\u3002\u6ce8\u91ca\u6807\u8bc6\u53ef\u8c03\u7528\u65b9\u6cd5\u4f7f\u7528\u7684\u53d8\u91cf\u3002<code>createContact<\/code><code>@InvocableMethod<\/code><code>@InvocableVariable<\/code><\/p>\n\n\n\n<p>\u53ef\u8c03\u7528\u65b9\u6cd5\u5728\u4fee\u9970\u7b26\u4e2d\u6ce8\u518c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7ec4\u4ef6\u3002\u9664\u975e\u7ec4\u7ec7\u5177\u6709\u81ea\u5b9a\u4e49\u547d\u540d\u7a7a\u95f4\uff0c\u5426\u5219\u7ec4\u4ef6\u547d\u540d\u7a7a\u95f4\u3002\u5982\u679c\u7ec4\u7ec7\u5177\u6709\u81ea\u5b9a\u4e49\u547d\u540d\u7a7a\u95f4\uff0c\u8bf7\u4f7f\u7528\u8be5\u547d\u540d\u7a7a\u95f4\u6ce8\u518c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7ec4\u4ef6\u3002\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u7ec4\u4ef6\u7684\u540d\u79f0\u4e3a \u3002<code>configurationEditor<\/code><code>c<\/code><code>c-create-contact-action-editor<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/CreateContactAction.cls\nglobal class CreateContactAction {\n    global class CreateContactRequest {\n\n        @InvocableVariable\n        global Contact contact;\n    }\n\n    global class CreateContactResult {\n        @InvocableVariable\n        global Boolean isSuccess;\n\n        @InvocableVariable\n        global String errorMessage;\n\n        @InvocableVariable\n        global String contactId;\n   }\n\n    @InvocableMethod(label='Create Contact' configurationEditor='c-create-contact-action-editor')\n    global static List&lt;CreateContactResult&gt; createContact(List&lt;CreateContactRequest&gt; requests) {\n        List&lt;CreateContactResult&gt; results = new List&lt;CreateContactResult&gt;();\n            for(CreateContactRequest request : requests){\n        results.add(insertContact(request));\n        }\n        return results;\n    }\n\n    public static CreateContactResult insertContact(CreateContactRequest request) {\n        List&lt;Contact&gt; contactList = new List&lt;Contact&gt;();\n        contactList.add(request.contact);\n\n        Database.SaveResult&#91;] srList = Database.insert(contactList, true);\n\n        CreateContactResult contactResult = new CreateContactResult();\n            for(Database.SaveResult sr: srList) {\n                if (sr.isSuccess()) {\n                    contactResult.isSuccess = sr.isSuccess();\n                    contactResult.contactId = sr.getId();\n                }\n                else {\n                    for(Database.Error err : sr.getErrors()) {\n                        contactResult.errorMessage = err.getStatusCode() + ': ' + err.getMessage();\n                    }\n                }\n            }\n\n    return contactResult;\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u4e0b\u9762\u662f \u7684\u914d\u7f6e\u6587\u4ef6\u3002<code>CreateContactAction<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--CreateContactAction.cls-meta.xml--&gt;\n\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;ApexClass xmlns=\"urn:metadata.tooling.soap.sforce.com\" fqn=\"CreateContactAction\"&gt;\n    &lt;apiVersion&gt;53.0&lt;\/apiVersion&gt;\n    &lt;status&gt;Active&lt;\/status&gt;\n&lt;\/ApexClass&gt;<\/code><\/pre>\n\n\n\n<p>\u8fd9\u4e9b HTML\u3001CSS\u3001JavaScript \u548c\u914d\u7f6e\u6587\u4ef6\u5b9a\u4e49\u64cd\u4f5c\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7ec4\u4ef6\u3002<code>createContactActionEditor<\/code><\/p>\n\n\n\n<p>\u7ec4\u4ef6\u7684 HTML \u6a21\u677f\u5b9a\u4e49\u4e86 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684 UI\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--createContactActionEditor.html--&gt;\n\n&lt;template&gt;\n  &lt;div class=\"slds-m-top_small\"&gt;\n    &lt;h2 class=\"slds-text-heading_medium slds-p-around_xx-small lgc-bg-inverse\"&gt;\n      Contact Primary Information\n    &lt;\/h2&gt;\n\n    &lt;lightning-input\n      label=\"First Name\"\n      value={defaultContact.FirstName}\n      onchange={handleFirstNameChange}\n    &gt;\n    &lt;\/lightning-input&gt;\n\n    &lt;lightning-input\n      label=\"Last Name\"\n      value={defaultContact.LastName}\n      onchange={handleLastNameChange}\n    &gt;\n    &lt;\/lightning-input&gt;\n  &lt;\/div&gt;\n\n  &lt;div class=\"slds-m-top_small\"&gt;\n    &lt;h2 class=\"slds-text-heading_medium slds-p-around_xx-small lgc-bg-inverse\"&gt;Contact Source&lt;\/h2&gt;\n\n    &lt;lightning-input\n      label=\"European Country Code\"\n      value={defaultContact.European_Country_Code__c}\n      onchange={handleCountryCodeChange}\n    &gt;\n    &lt;\/lightning-input&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>\u6b64\u793a\u4f8b\u663e\u793a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668 UI\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"854\" height=\"309\" src=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_create_contact.png\" alt=\"\" class=\"wp-image-3923\" srcset=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_create_contact.png 854w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_create_contact-300x109.png 300w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_create_contact-768x278.png 768w\" sizes=\"(max-width: 854px) 100vw, 854px\" \/><\/figure>\n\n\n\n<p>\u521d\u59cb\u5316\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7ec4\u4ef6\u65f6\uff0c\u5176 JavaScript \u7c7b\u4f1a\u4ece Flow Builder \u63a5\u6536\u6d41\u5143\u6570\u636e\u7684\u526f\u672c\u3002\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u66f4\u6539\u503c\u65f6\uff0c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7ec4\u4ef6\u4f1a\u8c03\u5ea6\u4e00\u4e2a\u4e8b\u4ef6\u4ee5\u5c06\u66f4\u6539\u4f20\u64ad\u56de Flow Builder\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>\u4f7f\u7528\u5c5e\u6027\u4ece\u6d41\u4e2d\u6355\u83b7\u6570\u636e\u3002\u4f7f\u7528\u4e8b\u4ef6\u5728\u8fd0\u884c\u65f6\u62a5\u544a\u5bf9\u6d41\u7684\u66f4\u6539\u3002<code>@api<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/createContactActionEditor.js\n\nimport { LightningElement, api } from \"lwc\";\n\nexport default class CreateContactActionEditor extends LightningElement {\n  @api\n  inputVariables;\n\n  defaultContact = {\n    attributes: {\n      type: \"Contact\",\n    },\n    European_Country_Code__c: \"FRA\",\n  };\n\n  get contact() {\n    const param = this.inputVariables.find(({ name }) =&gt; name === \"contact\");\n    return param &amp;&amp; param.value;\n  }\n\n  handleFirstNameChange(event) {\n    this.defaultContact&#91;\"FirstName\"] = event.detail.value;\n    this.handleContact();\n  }\n\n  handleLastNameChange(event) {\n    this.defaultContact&#91;\"LastName\"] = event.detail.value;\n    this.handleContact();\n  }\n\n  handleCountryCodeChange(event) {\n    this.defaultContact&#91;\"European_Country_Code__c\"] = event.detail.value;\n    this.handleContact();\n  }\n\n  handleContact() {\n    const newValue = JSON.stringify(this.defaultContact);\n    const valueChangedEvent = new CustomEvent(\"configuration_editor_input_value_changed\", {\n      bubbles: true,\n      cancelable: false,\n      composed: true,\n      detail: {\n        name: \"contact\",\n        newValue,\n        newValueDataType: \"SObject\",\n      },\n    });\n    this.dispatchEvent(valueChangedEvent);\n  }\n}<\/code><\/pre>\n\n\n\n<p>Flow Builder \u5177\u6709\u7528\u4e8e\u4e0e\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u8fdb\u884c\u901a\u4fe1\u7684\u00a0JavaScript \u63a5\u53e3\u3002\u6b64 JavaScript \u7c7b\u4f7f\u7528\u8be5\u63a5\u53e3\u3002<code>inputVariables<\/code><\/p>\n\n\n\n<p>\u521d\u59cb\u5316\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u540e\uff0c\u4ece Flow Builder \u63a5\u6536\u53ef\u8c03\u7528\u64cd\u4f5c\u4e2d\u8f93\u5165\u53d8\u91cf\u7684\u503c\u3002\u7f3a\u7701\u503c\u4e3a type \u548c \u8bbe\u7f6e\u3002\u5f53\u60a8\u5bf9 sObject \u6570\u636e\u7c7b\u578b\u7684\u8f93\u5165\u4f7f\u7528\u6587\u672c\u503c\u65f6\uff0c\u8bf7\u6307\u5b9a\u8be5\u503c\uff0c\u4f8b\u5982 \u3002<code>inputVariables<\/code><code>European_Country_Code__c<\/code><code>type<\/code><code>Contact<\/code><\/p>\n\n\n\n<p>\u6570\u636e\u7ed3\u6784\u5305\u62ec\u6bcf\u4e2a\u8f93\u5165\u53d8\u91cf\u7684\u540d\u79f0\u3001\u503c\u548c\u6570\u636e\u7c7b\u578b\u3002<code>inputVariables<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;{\n    name: 'contact',\n    value: '{\n        \"attributes\": {\n            \"type\": \"Contact\"\n        },\n        \"FirstName\" : \"\",\n        \"LastName\": \"\",\n        \"European_Country_Code__c\" : \"FRA\"\n    }',\n    valueDataType: 'SObject'\n}]<\/code><\/pre>\n\n\n\n<p>\u8be5\u65b9\u6cd5\u83b7\u53d6\u8f93\u5165\u53d8\u91cf\u7684\u503c\uff0c\u4ee5\u4fbf\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u4f7f\u7528\u3002<code>get contact()<\/code><\/p>\n\n\n\n<p>\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u8f93\u5165\u8f93\u5165\u503c\u65f6\uff0c\u8be5\u65b9\u6cd5\u4f1a\u5c06\u4e8b\u4ef6\u8c03\u5ea6\u5230 Flow Builder\u3002Flow Builder \u63a5\u6536\u4e8b\u4ef6\u5e76\u66f4\u65b0\u6d41\u4e2d\u7684\u503c\u3002<code>handleContact<\/code><code>configuration_editor_input_value_changed<\/code><\/p>\n\n\n\n<p>\u4e0b\u9762\u662f \u7684\u914d\u7f6e\u6587\u4ef6\u3002<code>createContactActionEditor<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!---createContactActionEditor.js-meta.xml--&gt;\n&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n    &lt;apiVersion&gt;53.0&lt;\/apiVersion&gt;\n    &lt;!--isExposed can be true or false--&gt;\n    &lt;isExposed&gt;true&lt;\/isExposed&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"custom-property-editor-javascript-interface\">\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668 JavaScript \u63a5\u53e3<\/h2>\n\n\n\n<p>\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4f7f\u7528\u8fd9\u4e9b JavaScript \u51fd\u6570\u4e0e Flow Builder \u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8f93\u5165\u53d8\u91cf<\/h2>\n\n\n\n<p>\u8be5\u63a5\u53e3\u63d0\u4f9b\u6709\u5173 FlowScreenField \u5143\u6570\u636e\u7684\u6570\u636e\u3002<code>inputVariables<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>_inputVariables = &#91;];\n\n@api\nget inputVariables() {\n    return this._inputVariables;\n}\n\n\/\/ Set a field with the data that was stored from the flow.\nset inputVariables(variables) {\n    this._inputVariables = variables || &#91;];\n}<\/code><\/pre>\n\n\n\n<p>\u4e2d\u7684\u6570\u636e\u7ed3\u6784\u5305\u62ec\u6bcf\u4e2a\u8f93\u5165\u53d8\u91cf\u7684\u540d\u79f0\u3001\u503c\u548c\u6570\u636e\u7c7b\u578b\u3002<code>_inputVariables<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;{\n    name: 'volume',\n    value: '10',\n    valueDataType: 'Number'\n}]<\/code><\/pre>\n\n\n\n<p>\u6709\u5173\u6d41\u5143\u6570\u636e\u7684\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u6d41\u5143\u6570\u636e API\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">builder\u4e0a\u4e0b\u6587<\/h2>\n\n\n\n<p>\u8be5\u63a5\u53e3\u63d0\u4f9b\u6709\u5173\u6d41\u4e2d\u5143\u7d20\u548c\u8d44\u6e90\u7684\u6570\u636e\u3002\u4f8b\u5982\uff0c\u548c\u6570\u636e\u7ed3\u6784\u5305\u62ec\u8f93\u5165\u53d8\u91cf\u7684\u540d\u79f0\u548c\u7c7b\u578b\u3002\u5728 Flow Builder \u4e2d\uff0c\u7ba1\u7406\u5458\u53ef\u4ee5\u5c06\u6709\u5173\u5176\u4ed6\u5143\u7d20\u548c\u8d44\u6e90\u7684\u6570\u636e\u7528\u4f5c\u5c4f\u5e55\u7ec4\u4ef6\u8f93\u5165\u5c5e\u6027\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684\u8f93\u5165\u3002<code>builderContext<\/code><code>screens<\/code><code>actionCalls<\/code><\/p>\n\n\n\n<p>\u4ece\u754c\u9762\u4f20\u9012\u5230\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684\u6570\u636e\u7ed3\u6784\u5305\u62ec\u6d41\u4e2d\u7684\u5143\u7d20\u548c\u8d44\u6e90\u3002<code>builderContext<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    actionCalls: &#91;],\n    apexPluginCalls: &#91;],\n    constants: &#91;],\n    formulas: &#91;],\n    recordCreates: &#91;],\n    recordDeletes: &#91;],\n    recordLookups: &#91;],\n    recordUpdates: &#91;],\n    screens: &#91;],\n    stages: &#91;],\n    textTemplates: &#91;],\n    variables: &#91;]\n}<\/code><\/pre>\n\n\n\n<p>\u6709\u5173\u6d41\u5143\u6570\u636e\u7684\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u6d41\u5143\u6570\u636e API\u3002<\/p>\n\n\n\n<p>\u5728\u4ee5\u4e0b\u793a\u4f8b\u4e2d\uff0c\u5f00\u53d1\u4eba\u5458\u521b\u5efa\u81ea\u5b9a\u4e49\u6d41\u5c4f\u5e55\u7ec4\u4ef6\u53ca\u5176\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002\u5728 Flow Builder \u4e2d\uff0c\u7ba1\u7406\u5458\u4f7f\u7528\u7ec4\u5408\u6846\u8bbe\u7f6e\u7535\u5b50\u90ae\u4ef6\u7684\u53d1\u4ef6\u4eba\u59d3\u540d\u3002\u5f53\u7528\u6237\u8fd0\u884c\u6d41\u7a0b\u65f6\uff0c\u6d41\u7a0b\u5c4f\u5e55\u4f1a\u663e\u793a\u7535\u5b50\u90ae\u4ef6\u7684\u9009\u5b9a\u540d\u79f0\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b HTML\u3001JavaScript \u548c\u914d\u7f6e\u6587\u4ef6\u5b9a\u4e49\u81ea\u5b9a\u4e49\u6d41\u5c4f\u5e55\u7ec4\u4ef6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--htmlEmail.html--&gt;\n&lt;template&gt;\n  &lt;p&gt;Selected sender's name is: {senderName}&lt;\/p&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>\u6b64 JavaScript \u6587\u4ef6\u5b9a\u4e49\u4e86\u4e00\u4e2a\u516c\u5171\u5c5e\u6027\u3002<code>senderName<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ htmlEmail.js\n\nimport { LightningElement, api } from \"lwc\";\n\nexport default class HTMLEmail extends LightningElement {\n  @api senderName;\n}<\/code><\/pre>\n\n\n\n<p>\u6b64\u914d\u7f6e\u6587\u4ef6\u6ce8\u518c\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n    &lt;apiVersion&gt;49.0&lt;\/apiVersion&gt;\n    &lt;isExposed&gt;true&lt;\/isExposed&gt;\n    &lt;targets&gt;\n        &lt;target&gt;lightning__FlowScreen&lt;\/target&gt;\n    &lt;\/targets&gt;\n    &lt;masterLabel&gt;HTMLEmail&lt;\/masterLabel&gt;\n    &lt;targetConfigs&gt;\n        &lt;targetConfig targets=\"lightning__FlowScreen\" configurationEditor=\"c-html-email-editor\"&gt;\n            &lt;property name=\"senderName\" type=\"String\" role=\"inputOnly\" \/&gt;\n        &lt;\/targetConfig&gt;\n    &lt;\/targetConfigs&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b HTML\u3001JavaScript \u548c\u914d\u7f6e\u6587\u4ef6\u5b9a\u4e49\u5c4f\u5e55\u7ec4\u4ef6\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u3002<\/p>\n\n\n\n<p>\u6b64 HTML \u6587\u4ef6\u5b9a\u4e49 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684 UI\u3002UI \u663e\u793a\u4e00\u4e2a\u7ec4\u5408\u6846\u57fa\u7840 Lightning Web \u7ec4\u4ef6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--htmlEmailEditor.html--&gt;\n&lt;template&gt;\n  &lt;div class=\"slds-p-around_xx-small\"&gt;\n    &lt;lightning-combobox\n      name=\"senderName\"\n      label=\"Sender Display Name\"\n      value={senderName}\n      placeholder=\"Select Sender\"\n      options={options}\n      onchange={handleChange}\n    &gt;\n    &lt;\/lightning-combobox&gt;\n\n    &lt;p class=\"slds-p-top_xx-small\"&gt;Selected sender's name is: {senderName}&lt;\/p&gt;\n  &lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>\u521d\u59cb\u5316\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u65f6\uff0cJavaScript \u7c7b\u4f1a\u4ece Flow Builder \u63a5\u6536\u6d41\u5143\u6570\u636e\u7684\u526f\u672c\u3002\u5982\u679c\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u8fdb\u884c\u66f4\u65b0\uff0c\u5219\u4f1a\u8c03\u5ea6\u4e00\u4e2a\u4e8b\u4ef6\u4ee5\u5c06\u66f4\u6539\u4f20\u64ad\u56de Flow Builder\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ htmlEmailEditor.js\nimport { LightningElement, api } from \"lwc\";\nexport default class HtmlEmailEditor extends LightningElement {\n  @api\n  inputVariables;\n\n  @api\n  builderContext;\n\n  get senderName() {\n    const param = this.inputVariables.find(({ name }) =&gt; name === \"senderName\");\n    return param &amp;&amp; param.value;\n  }\n\n  get options() {\n    const variables = this.builderContext.variables;\n    return variables.map(({ name, value }) =&gt; ({\n      label: name,\n      value: value.stringValue,\n    }));\n  }\n\n  handleChange(event) {\n    if (event &amp;&amp; event.detail) {\n      const newValue = event.detail.value;\n      const valueChangedEvent = new CustomEvent(\"Configuration_editor_input_value_changed\", {\n        bubbles: true,\n        cancelable: false,\n        composed: true,\n        detail: {\n          name: \"senderName\",\n          newValue,\n          newValueDataType: \"String\",\n        },\n      });\n      this.dispatchEvent(valueChangedEvent);\n    }\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u8be5\u65b9\u6cd5\u8fd4\u56de\u6709\u5173\u4f7f\u7528\u63a5\u53e3\u5b58\u50a8\u7684\u8f93\u5165\u53d8\u91cf\u7684\u4fe1\u606f\u3002\u8be5\u65b9\u6cd5\u8fd4\u56de\u4f7f\u7528\u63a5\u53e3\u65b9\u6cd5\u5b58\u50a8\u7684\u5408\u5e76\u5b57\u6bb5\u5217\u8868\u3002\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u5c06\u5408\u5e76\u5b57\u6bb5\u663e\u793a\u4e3a\u5c4f\u5e55\u7ec4\u4ef6\u8f93\u5165\u5c5e\u6027\u7684\u8f93\u5165\u503c\u3002<code>senderName<\/code><code>senderName<\/code><code>inputVariables<\/code><code>options<\/code><code>builderContext<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"312\" src=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_combobox-1024x312.png\" alt=\"\" class=\"wp-image-3924\" srcset=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_combobox-1024x312.png 1024w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_combobox-300x91.png 300w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_combobox-768x234.png 768w, http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_combobox.png 1188w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u5143\u7d20\u4fe1\u606f<\/h2>\n\n\n\n<p>\u8be5\u63a5\u53e3\u63d0\u4f9b\u6709\u5173\u8c03\u7528\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684\u81ea\u5b9a\u4e49\u6d41\u5c4f\u5e55\u7ec4\u4ef6\u6216\u81ea\u5b9a\u4e49\u64cd\u4f5c\u7684\u6570\u636e\u3002\u4f7f\u7528\u6b64\u63a5\u53e3\u53ef\u4ee5\u6d88\u9664\u5c4f\u5e55\u7ec4\u4ef6\u6216\u64cd\u4f5c\u7684\u4e0d\u540c\u5b9e\u4f8b\u7684\u6b67\u4e49\u3002<code>elementInfo<\/code><\/p>\n\n\n\n<p>\u6b64\u793a\u4f8b\u5c06\u6d41\u5143\u6570\u636e\u5b58\u50a8\u5728 \u4e2d\uff0c\u4f46\u60a8\u53ef\u4ee5\u968f\u610f\u547d\u540d\u8be5\u5b57\u6bb5\u3002<code>_elementInfo<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>_elementInfo = {};\n@api\nget elementInfo() {\n    return this._elementInfo;\n}\n\n\/\/ Set a local variable with the data that was stored from flow.\nset elementInfo(info) {\n    this._elementInfo = info || {};\n}<\/code><\/pre>\n\n\n\n<p>\u4e2d\u7684\u6570\u636e\u7ed3\u6784\u5305\u62ec\u6d41\u5143\u6570\u636e\u4e2d\u6d41\u5143\u7d20\u7684 API \u540d\u79f0\u548c\u7c7b\u578b\u3002<code>_elementInfo<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    apiName: 'slider',\n    type: 'Screen'\n}<\/code><\/pre>\n\n\n\n<p>type \u7684\u6709\u6548\u503c\u4e3a\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>Screen<\/code>&#8211; \u5c4f\u5e55\u5143\u7d20<\/li>\n\n\n\n<li><code>Action<\/code>&#8211; \u52a8\u4f5c\u5143\u7d20<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u9a57\u8b49<\/h2>\n\n\n\n<p>\u4f7f\u7528\u8be5\u754c\u9762\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u6267\u884c\u81ea\u5b9a\u4e49\u9a8c\u8bc1\u3002\u5f53\u6d41\u7a0b\u7ba1\u7406\u5458\u5728 Flow Builder \u7684\u5c4f\u5e55\u7f16\u8f91\u5668\u4e2d\u5355\u51fb<strong>\u201c\u5b8c\u6210<\/strong>\u201d\u65f6\uff0cFlow Builder \u4f1a\u8bc4\u4f30\u6bcf\u4e2a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u7684\u51fd\u6570\u3002\u5982\u679c\u51fd\u6570\u8fd4\u56de \u548c \u6570\u636e\u7ed3\u6784\uff0c\u5219\u5c4f\u5e55\u7f16\u8f91\u5668\u4f1a\u663e\u793a\u9519\u8bef\u6570\u3002<code>validate<\/code><code>validate<\/code><code>key<\/code><code>errorString<\/code><\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>Flow Builder \u4ec5\u663e\u793a\u9519\u8bef\u6570\u3002\u7f16\u5199\u4ee3\u7801\u4ee5\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u663e\u793a\u9519\u8bef\u5b57\u7b26\u4e32\u3002<\/p>\n\n\n\n<p>\u6b64\u793a\u4f8b\u5c06\u6570\u636e\u5b58\u50a8\u5728\u5b57\u6bb5\u4e2d\uff0c\u4f46\u60a8\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u5b57\u6bb5\u540d\u79f0\u3002\u4e3a\u4e86\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u663e\u793a\u9519\u8bef\u5b57\u7b26\u4e32\uff0c\u6211\u4eec\u7528\u4e8e\u67e5\u8be2\u3001\u8bbe\u7f6e\u548c\u62a5\u544a\u9519\u8bef\u5b57\u7b26\u4e32\u3002<code>validity<\/code><code>sliderCmp<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@api\nvalidate() {\n    const sliderCmp = this.template.querySelector('lightning-slider');\n    const validity = &#91;];\n    if (this.volume &lt; 0 || this.volume &gt; 100) {\n        sliderCmp.setCustomValidity('The slider range is between 0 and     100.');\n        validity.push({\n            key: 'Slider Range',\n            errorString: 'The slider range is between 0 and 100.',\n        });\n    } else {\n        sliderCmp.setCustomValidity('');\n    }\n    sliderCmp.reportValidity();\n    return validity;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">genericTypeMappings<\/h2>\n\n\n\n<p>\u6570\u636e\u7ed3\u6784\u5305\u62ec\u6bcf\u4e2a\u8f93\u5165\u7684\u540d\u79f0\u548c\u503c\u3002\u662f\u6cdb\u578b\u8f93\u5165\u7684\u540d\u79f0;\u4f8b\u5982\u3002\u662f\u6cdb\u578b\u8f93\u5165\u7684\u7279\u5b9a\u503c;\u4f8b\u5982\u3002<code>genericTypeMappings<\/code><code>typeName<\/code><code>sObject<\/code><code>\u2018T__param1\u2019<\/code><code>typeValue<\/code><code>sObject<\/code><code>Account<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;{\n    typeName: 'T__param1',\n    typeValue: 'Account'\n}]<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8b\u4ef6\u7c7b\u578b<\/h2>\n\n\n\n<p>\u8981\u5411 Flow Builder \u62a5\u544a\u8f93\u5165\u503c\u66f4\u6539\uff0c\u8bf7\u4ece\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u7684\u51fd\u6570\u4e2d\u8c03\u5ea6\u4e8b\u4ef6\u3002\u8bbe\u7f6e\u4e3a \u548c true\u3002<code>handleChange<\/code><code>bubbles<\/code><code>composed<\/code><\/p>\n\n\n\n<p>\u4e8b\u4ef6\u7c7b\u578b\u7684\u6709\u6548\u503c\u4e3a\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>configuration_editor_input_value_changed<\/code>&#8211; \u4e00\u79cd\u4e8b\u4ef6\u7c7b\u578b\uff0c\u5728\u8f93\u5165\u503c\u66f4\u6539\u65f6\u8c03\u5ea6\u3002<\/li>\n\n\n\n<li><code>configuration_editor_input_value_deleted<\/code>&#8211; \u5220\u9664\u8f93\u5165\u503c\u65f6\u8c03\u5ea6\u7684\u4e8b\u4ef6\u7c7b\u578b\u3002<\/li>\n\n\n\n<li><code>configuration_editor_generic_type_mapping_changed<\/code>&#8211; \u4e00\u79cd\u4e8b\u4ef6\u7c7b\u578b\uff0c\u5728\u901a\u7528\u8f93\u5165\u503c\u66f4\u6539\u65f6\u8c03\u5ea6\u3002<code>sObject<\/code><\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u4e9b\u5c5e\u6027\u5b9a\u4e49\u7528\u4e8e\u62a5\u544a\u66f4\u6539\u7684\u8f93\u5165\u3002<code>detail<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>name<\/code>&#8211; \u5c4f\u5e55\u7ec4\u4ef6\u7684 JavaScript \u7c7b\u4e2d\u7684\u8f93\u5165\u53d8\u91cf\u3002<\/li>\n\n\n\n<li><code>newValue<\/code>&#8211; \u8f93\u5165\u7684\u65b0\u503c\u3002<\/li>\n\n\n\n<li><code>newValueDataType<\/code>&#8211; \u8f93\u5165\u7684\u65b0\u6570\u636e\u7c7b\u578b\u3002<\/li>\n\n\n\n<li><code>typeName<\/code>&#8211; \u5c4f\u5e55\u7ec4\u4ef6\u7684 JavaScript \u7c7b\u6216\u53ef\u8c03\u7528\u65b9\u6cd5\u7684 Apex \u7c7b\u4e2d\u7684\u6cdb\u578b\u8f93\u5165\u3002\u8981\u5728\u5c4f\u5e55\u7ec4\u4ef6\u7684\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u5f15\u7528 \uff0c\u8bf7\u5f15\u7528\u5b50\u6807\u8bb0\u7684\u5c5e\u6027\u3002\u8be5\u503c\u5fc5\u987b\u4f4d\u4e8e\u5927\u62ec\u53f7\u5185\uff0c\u4f8b\u5982\u3002\u8981\u5c06\u5c5e\u6027\u5b9a\u4e49\u4e3a\u6cdb\u578b\u96c6\u5408\u6570\u636e\u7c7b\u578b\uff0c\u8bf7\u8ffd\u52a0 \uff0c\u4f8b\u5982 \u3002\u8981\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u5f15\u7528\u53ef\u8c03\u7528\u64cd\u4f5c\u7684 \uff0c\u8bf7\u5728\u8f93\u5165\u540d\u79f0\u548c\u8f93\u51fa\u540d\u79f0\u524d\u9762\u52a0\u4e0a \uff0c\u4f8b\u5982 \u3002<code>sObject<\/code><code>typeName<\/code><code>propertyType<\/code><code>name<\/code><code>property type=\"{T}\"<\/code><code>sObject<\/code><code>[]<\/code><code>property type=\"{T[]}\"<\/code><code>typeName<\/code><code>T__<\/code><code>U__<\/code><code>T__param1<\/code><\/li>\n\n\n\n<li><code>typeValue<\/code>&#8211; \u901a\u7528\u8f93\u5165\u6216\u8f93\u51fa\u7684\u7279\u5b9a\u503c\u3002<code>sObject<\/code><\/li>\n<\/ul>\n\n\n\n<p>\u4f8b\u5982\uff0c\u5f53\u7ba1\u7406\u5458\u5728\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u4e2d\u8f93\u5165\u503c for \u65f6\uff0c\u5b83\u4f1a\u8c03\u5ea6\u4e00\u4e2a\u4e8b\u4ef6\u3002Flow Builder \u63a5\u6536\u4e8b\u4ef6\u5e76\u66f4\u65b0\u6d41\u4e2d\u7684\u503c\u3002<code>volume<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>handleChange(event) {\n    if (event &amp;&amp; event.detail) {\n        const newValue = event.detail.value;\n        const valueChangedEvent = new CustomEvent(\n            'configuration_editor_input_value_changed', {\n            bubbles: true,\n            cancelable: false,\n            composed: true,\n            detail: {\n                name: 'volume',\n                newValue,\n                newValueDataType: 'Number'\n            }\n            }\n        );\n        this.dispatchEvent(valueChangedEvent);\n    }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"supported-data-types-in-flows\">\u6d41\u4e2d\u652f\u6301\u7684\u6570\u636e\u7c7b\u578b<\/h2>\n\n\n\n<p>\u5e76\u975e\u6240\u6709\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\u6570\u636e\u7c7b\u578b\u5728\u6d41\u7a0b\u4e2d\u90fd\u53d7\u652f\u6301\u3002\u60a8\u53ea\u80fd\u5728\u6d41\u7a0b\u548c\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\u4e4b\u95f4\u6620\u5c04\u8fd9\u4e9b\u7c7b\u578b\u53ca\u5176\u5173\u8054\u7684\u96c6\u5408\u7c7b\u578b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u6d41\u6570\u636e\u7c7b\u578b<\/th><th>Lightning Web \u7ec4\u4ef6\u6570\u636e\u7c7b\u578b<\/th><th>\u6709\u6548\u503c<\/th><\/tr><\/thead><tbody><tr><td>Apex\uff08\u6d41\u91cf\u6807\u7b7e\uff1aApex-Defined\uff09<\/td><td>\u81ea\u5b9a\u4e49 Apex \u7c7b<\/td><td>\u5b9a\u4e49\u5b57\u6bb5\u7684 Apex \u7c7b\u3002Apex \u7c7b\u4e2d\u652f\u6301\u7684\u6570\u636e\u7c7b\u578b\u5305\u62ec Boolean\u3001Integer\u3001Long\u3001Decimal\u3001Double\u3001Date\u3001DateTime \u548c String\u3002\u6bcf\u79cd\u6570\u636e\u7c7b\u578b\u90fd\u652f\u6301\u5355\u4e2a\u503c\u548c\u5217\u8868\u3002<code>@AuraEnabled<\/code><\/td><\/tr><tr><td>\u5e03\u5c14<\/td><td>\u5e03\u5c14<\/td><td>\u771f\u5b9e\u503c\uff1a<code>true<\/code><code>1<\/code>\u7b49\u6548\u8868\u8fbe\u5f0fFalse \u503c\uff1a<code>false<\/code><code>0<\/code>\u7b49\u6548\u8868\u8fbe\u5f0f<\/td><\/tr><tr><td>\u8d27\u5e01<\/td><td>\u6574\u6570<\/td><td>\u6570\u503c\u6216\u7b49\u6548\u8868\u8fbe\u5f0f<\/td><\/tr><tr><td>\u65e5\u671f<\/td><td>\u65e5\u671f<\/td><td><code>\"YYYY-MM-DD\"<\/code>\u6216\u7b49\u6548\u8868\u8fbe\u5f0f<\/td><\/tr><tr><td>DateTime\uff08\u6d41\u6807\u7b7e\uff1a\u65e5\u671f\/\u65f6\u95f4\uff09<\/td><td>\u65e5\u671f\u65f6\u95f4<\/td><td><code>\"YYYY-MM-DDThh:mm:ssZ\"<\/code>\u6216\u7b49\u6548\u8868\u8fbe\u5f0f<\/td><\/tr><tr><td>\u6570<\/td><td>\u6570<\/td><td>\u6570\u503c\u6216\u7b49\u6548\u8868\u8fbe\u5f0f<\/td><\/tr><tr><td>Multipicklist\uff08\u6d41\u6807\u7b7e\uff1aMulti-Select Picklist\uff09<\/td><td>\u5b57\u7b26\u4e32<\/td><td>\u5b57\u7b26\u4e32\u503c\u6216\u4f7f\u7528\u5206\u53f7\u5206\u9694\u683c\u5f0f\u7684\u7b49\u6548\u8868\u8fbe\u5f0f\uff1a\u201cBlue;\u7eff;\u9ec4\u8272\u201d<\/td><\/tr><tr><td>\u9009\u62e9\u5217\u8868<\/td><td>\u5b57\u7b26\u4e32<\/td><td>\u5b57\u7b26\u4e32\u503c\u6216\u7b49\u6548\u8868\u8fbe\u5f0f<\/td><\/tr><tr><td>sObject\uff08\u6d41\u6807\u7b7e\uff1a\u8bb0\u5f55\uff09<\/td><td>\u7279\u5b9a\u5bf9\u8c61\u7684 API \u540d\u79f0\uff0c\u4f8b\u5982 Account \u6216 Case<\/td><td>\u952e\u503c\u5bf9\u6216\u7b49\u6548\u8868\u8fbe\u5f0f\u7684\u6620\u5c04\u3002\u6d41\u8bb0\u5f55\u503c\u4ec5\u6620\u5c04\u5230\u7c7b\u578b\u4e3a\u7279\u5b9a\u5bf9\u8c61\u7684\u5c5e\u6027\u3002\u4f8b\u5982\uff0c\u5ba2\u6237\u8bb0\u5f55\u53d8\u91cf\u53ea\u80fd\u6620\u5c04\u5230\u7c7b\u578b\u4e3a Account \u7684\u5c5e\u6027\u3002\u6d41\u4e0d\u652f\u6301 Object \u6570\u636e\u7c7b\u578b\u3002<\/td><\/tr><tr><td>\u5b57\u7b26\u4e32\uff08\u6d41\u6807\u7b7e\uff1a\u6587\u672c\uff09<\/td><td>\u5b57\u7b26\u4e32<\/td><td>\u5b57\u7b26\u4e32\u503c\u6216\u7b49\u6548\u8868\u8fbe\u5f0f<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI<br \/>\n\u5f00\u53d1\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\uff0c\u5f53\u7ba1\u7406\u5458\u5728 Flow Builder \u4e2d\u914d\u7f6e\u81ea\u5b9a\u4e49\u5c4f\u5e55\u7ec4\u4ef6\u6216\u53ef\u8c03\u7528\u64cd\u4f5c\u65f6\uff0c\u8be5\u7f16\u8f91\u5668\u53ef\u4e3a\u5176\u63d0\u4f9b\u7b80\u5316\u7684 UI\u3002\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u662f\u4e00\u4e2a Lightning Web \u7ec4\u4ef6\uff0c\u5b83\u63d0\u4f9b\u7528\u4e8e\u8f93\u5165\u8f93\u5165\u503c\u7684\u81ea\u5b9a\u4e49 UI\u3002<\/p>\n","protected":false},"author":1,"featured_media":3915,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[233],"tags":[258],"class_list":["post-3913","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lightning-web-","tag--flow-builder--ui"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI - \u767d\u767d\u968f\u7b14<\/title>\n<meta name=\"description\" content=\"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI\u5f00\u53d1\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\uff0c\u5f53\u7ba1\u7406\u5458\u5728 Flow Builder \u4e2d\u914d\u7f6e\u81ea\u5b9a\u4e49\u5c4f\u5e55\u7ec4\u4ef6\u6216\u53ef\u8c03\u7528\u64cd\u4f5c\u65f6\uff0c\u8be5\u7f16\u8f91\u5668\u53ef\u4e3a\u5176\u63d0\u4f9b\u7b80\u5316\u7684 UI\u3002\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u662f\u4e00\u4e2a Lightning Web \u7ec4\u4ef6\uff0c\u5b83\u63d0\u4f9b\u7528\u4e8e\u8f93\u5165\u8f93\u5165\u503c\u7684\u81ea\u5b9a\u4e49 UI\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.ponybai.com\/?p=3913\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI - \u767d\u767d\u968f\u7b14\" \/>\n<meta property=\"og:description\" content=\"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI\u5f00\u53d1\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\uff0c\u5f53\u7ba1\u7406\u5458\u5728 Flow Builder \u4e2d\u914d\u7f6e\u81ea\u5b9a\u4e49\u5c4f\u5e55\u7ec4\u4ef6\u6216\u53ef\u8c03\u7528\u64cd\u4f5c\u65f6\uff0c\u8be5\u7f16\u8f91\u5668\u53ef\u4e3a\u5176\u63d0\u4f9b\u7b80\u5316\u7684 UI\u3002\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u662f\u4e00\u4e2a Lightning Web \u7ec4\u4ef6\uff0c\u5b83\u63d0\u4f9b\u7528\u4e8e\u8f93\u5165\u8f93\u5165\u503c\u7684\u81ea\u5b9a\u4e49 UI\u3002\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.ponybai.com\/?p=3913\" \/>\n<meta property=\"og:site_name\" content=\"\u767d\u767d\u968f\u7b14\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-23T13:44:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-03T00:04:34+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_none.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1188\" \/>\n\t<meta property=\"og:image:height\" content=\"631\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"ponybai\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"ponybai\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3913#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3913\"},\"author\":{\"name\":\"ponybai\",\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"headline\":\"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI\",\"datePublished\":\"2024-01-23T13:44:45+00:00\",\"dateModified\":\"2023-12-03T00:04:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3913\"},\"wordCount\":286,\"publisher\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"keywords\":[\"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI\"],\"articleSection\":[\"Lightning Web \u7ec4\u4ef6\u5f00\u53d1\u4eba\u5458\u6307\u5357\"],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3913\",\"url\":\"http:\/\/www.ponybai.com\/?p=3913\",\"name\":\"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI - \u767d\u767d\u968f\u7b14\",\"isPartOf\":{\"@id\":\"http:\/\/www.ponybai.com\/#website\"},\"datePublished\":\"2024-01-23T13:44:45+00:00\",\"dateModified\":\"2023-12-03T00:04:34+00:00\",\"description\":\"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI\u5f00\u53d1\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\uff0c\u5f53\u7ba1\u7406\u5458\u5728 Flow Builder \u4e2d\u914d\u7f6e\u81ea\u5b9a\u4e49\u5c4f\u5e55\u7ec4\u4ef6\u6216\u53ef\u8c03\u7528\u64cd\u4f5c\u65f6\uff0c\u8be5\u7f16\u8f91\u5668\u53ef\u4e3a\u5176\u63d0\u4f9b\u7b80\u5316\u7684 UI\u3002\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u662f\u4e00\u4e2a Lightning Web \u7ec4\u4ef6\uff0c\u5b83\u63d0\u4f9b\u7528\u4e8e\u8f93\u5165\u8f93\u5165\u503c\u7684\u81ea\u5b9a\u4e49 UI\u3002\",\"breadcrumb\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3913#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.ponybai.com\/?p=3913\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3913#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/www.ponybai.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.ponybai.com\/#website\",\"url\":\"http:\/\/www.ponybai.com\/\",\"name\":\"\u767d\u767d\u968f\u7b14\",\"description\":\"Salesforce\u5b98\u65b9\u8bb2\u5e08\",\"publisher\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.ponybai.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\",\"name\":\"ponybai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg\",\"contentUrl\":\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg\",\"width\":248,\"height\":248,\"caption\":\"ponybai\"},\"logo\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/121.37.188.161\"],\"url\":\"http:\/\/www.ponybai.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI - \u767d\u767d\u968f\u7b14","description":"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI\u5f00\u53d1\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\uff0c\u5f53\u7ba1\u7406\u5458\u5728 Flow Builder \u4e2d\u914d\u7f6e\u81ea\u5b9a\u4e49\u5c4f\u5e55\u7ec4\u4ef6\u6216\u53ef\u8c03\u7528\u64cd\u4f5c\u65f6\uff0c\u8be5\u7f16\u8f91\u5668\u53ef\u4e3a\u5176\u63d0\u4f9b\u7b80\u5316\u7684 UI\u3002\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u662f\u4e00\u4e2a Lightning Web \u7ec4\u4ef6\uff0c\u5b83\u63d0\u4f9b\u7528\u4e8e\u8f93\u5165\u8f93\u5165\u503c\u7684\u81ea\u5b9a\u4e49 UI\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.ponybai.com\/?p=3913","og_locale":"zh_CN","og_type":"article","og_title":"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI - \u767d\u767d\u968f\u7b14","og_description":"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI\u5f00\u53d1\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\uff0c\u5f53\u7ba1\u7406\u5458\u5728 Flow Builder \u4e2d\u914d\u7f6e\u81ea\u5b9a\u4e49\u5c4f\u5e55\u7ec4\u4ef6\u6216\u53ef\u8c03\u7528\u64cd\u4f5c\u65f6\uff0c\u8be5\u7f16\u8f91\u5668\u53ef\u4e3a\u5176\u63d0\u4f9b\u7b80\u5316\u7684 UI\u3002\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u662f\u4e00\u4e2a Lightning Web \u7ec4\u4ef6\uff0c\u5b83\u63d0\u4f9b\u7528\u4e8e\u8f93\u5165\u8f93\u5165\u503c\u7684\u81ea\u5b9a\u4e49 UI\u3002","og_url":"http:\/\/www.ponybai.com\/?p=3913","og_site_name":"\u767d\u767d\u968f\u7b14","article_published_time":"2024-01-23T13:44:45+00:00","article_modified_time":"2023-12-03T00:04:34+00:00","og_image":[{"width":1188,"height":631,"url":"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/flow_custom_property_editor_none.png","type":"image\/png"}],"author":"ponybai","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"ponybai","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.ponybai.com\/?p=3913#article","isPartOf":{"@id":"http:\/\/www.ponybai.com\/?p=3913"},"author":{"name":"ponybai","@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"headline":"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI","datePublished":"2024-01-23T13:44:45+00:00","dateModified":"2023-12-03T00:04:34+00:00","mainEntityOfPage":{"@id":"http:\/\/www.ponybai.com\/?p=3913"},"wordCount":286,"publisher":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"keywords":["\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI"],"articleSection":["Lightning Web \u7ec4\u4ef6\u5f00\u53d1\u4eba\u5458\u6307\u5357"],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/www.ponybai.com\/?p=3913","url":"http:\/\/www.ponybai.com\/?p=3913","name":"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI - \u767d\u767d\u968f\u7b14","isPartOf":{"@id":"http:\/\/www.ponybai.com\/#website"},"datePublished":"2024-01-23T13:44:45+00:00","dateModified":"2023-12-03T00:04:34+00:00","description":"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI\u5f00\u53d1\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\uff0c\u5f53\u7ba1\u7406\u5458\u5728 Flow Builder \u4e2d\u914d\u7f6e\u81ea\u5b9a\u4e49\u5c4f\u5e55\u7ec4\u4ef6\u6216\u53ef\u8c03\u7528\u64cd\u4f5c\u65f6\uff0c\u8be5\u7f16\u8f91\u5668\u53ef\u4e3a\u5176\u63d0\u4f9b\u7b80\u5316\u7684 UI\u3002\u81ea\u5b9a\u4e49\u5c5e\u6027\u7f16\u8f91\u5668\u662f\u4e00\u4e2a Lightning Web \u7ec4\u4ef6\uff0c\u5b83\u63d0\u4f9b\u7528\u4e8e\u8f93\u5165\u8f93\u5165\u503c\u7684\u81ea\u5b9a\u4e49 UI\u3002","breadcrumb":{"@id":"http:\/\/www.ponybai.com\/?p=3913#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.ponybai.com\/?p=3913"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.ponybai.com\/?p=3913#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/www.ponybai.com\/"},{"@type":"ListItem","position":2,"name":"\u5728 Flow Builder \u4e2d\u81ea\u5b9a\u4e49\u64cd\u4f5c\u548c\u5c4f\u5e55\u7ec4\u4ef6 UI"}]},{"@type":"WebSite","@id":"http:\/\/www.ponybai.com\/#website","url":"http:\/\/www.ponybai.com\/","name":"\u767d\u767d\u968f\u7b14","description":"Salesforce\u5b98\u65b9\u8bb2\u5e08","publisher":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.ponybai.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883","name":"ponybai","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/","url":"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg","contentUrl":"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg","width":248,"height":248,"caption":"ponybai"},"logo":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/121.37.188.161"],"url":"http:\/\/www.ponybai.com\/?author=1"}]}},"_links":{"self":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3913"}],"version-history":[{"count":2,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3913\/revisions"}],"predecessor-version":[{"id":3925,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3913\/revisions\/3925"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/media\/3915"}],"wp:attachment":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3913"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}