{"id":3944,"date":"2024-01-31T09:05:17","date_gmt":"2024-01-31T01:05:17","guid":{"rendered":"http:\/\/www.ponybai.com\/?p=3944"},"modified":"2023-12-03T09:32:05","modified_gmt":"2023-12-03T01:32:05","slug":"%e4%b8%ba-pardot-%e7%94%b5%e5%ad%90%e9%82%ae%e4%bb%b6%e5%86%85%e5%ae%b9%e7%94%9f%e6%88%90%e5%99%a8%e5%88%9b%e5%bb%ba%e7%bb%84%e4%bb%b6","status":"publish","type":"post","link":"http:\/\/www.ponybai.com\/?p=3944","title":{"rendered":"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6"},"content":{"rendered":"\n<p>\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u4e2d\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5141\u8bb8\u8425\u9500\u4eba\u5458\u548c\u7ecf\u7406\u4e3a\u5176\u5ba2\u6237\u521b\u5efa\u66f4\u5177\u5438\u5f15\u529b\u7684\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configure-a-component-for-the-email-builder\">\u4e3a\u7535\u5b50\u90ae\u4ef6\u751f\u6210\u5668\u914d\u7f6e\u7ec4\u4ef6<\/h2>\n\n\n\n<p>\u5728 Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u4e2d\u63d0\u4f9b\u81ea\u5b9a\u4e49 Lightning Web \u7ec4\u4ef6\uff0c\u7528\u6237\u53ef\u4ee5\u5c06\u5176\u6dfb\u52a0\u5230\u4ed6\u4eec\u7684\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u4e2d\u3002<\/p>\n\n\n\n<p>\u5728\u7ec4\u4ef6\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u7684\u76ee\u6807\u3002\u8bbe\u7f6e\u4e3a \u3002<code>lightningStatic__Email<\/code><code>&lt;isExposed&gt;<\/code><code>true<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&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&gt;true&lt;\/isExposed&gt;\n  &lt;targets&gt;\n    &lt;target&gt;lightning__AppPage&lt;\/target&gt;\n    &lt;target&gt;lightningStatic__Email&lt;\/target&gt;\n    &lt;target&gt;lightning__HomePage&lt;\/target&gt;\n  &lt;\/targets&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<p>\u76ee\u6807\u5c06\u5c5e\u6027\u6dfb\u52a0\u5230\u7ec4\u4ef6\u4e2d\u3002\u6dfb\u52a0\u5230\u7ec4\u4ef6\u7684\u5c5e\u6027\u5305\u62ec \u3001 \u3001 \u3001 \u548c \u3002\u8bbf\u95ee\u7ec4\u4ef6\u6a21\u677f\u4e2d\u7684\u5c5e\u6027\u3002<code>lightningStatic__Email<\/code><code>Boolean<\/code><code>Color<\/code><code>Integer<\/code><code>String<\/code><code>HorizontalAlignment<\/code><code>VerticalAlignment<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template&gt;\n  &lt;table \u2026&gt;\n    &lt;tr valign={valign}&gt;\n      &lt;td&gt;{content}&lt;\/td&gt;\n    &lt;\/tr&gt;\n  &lt;\/table&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>\u5728\u7ec4\u4ef6\u6587\u4ef6\u4e2d\u58f0\u660e\u5c5e\u6027\uff0c\u5982\u5782\u76f4\u5bf9\u9f50\u793a\u4f8b\u3002<code>js-meta.xml<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ sampleCustomComponent.js-meta.xml\n&lt;targetConfigs&gt;\n  &lt;targetConfig targets=\"lightningStatic__Email\"&gt;\n    &lt;property name=\"buttonAlignment\" type=\"VerticalAlignment\" default=\"middle\" \/&gt;\n    &lt;designLayout&gt;\n      &lt;designSection name=\"...\"&gt;\n        &lt;designLayoutItems&gt;\n          &lt;designLayoutProperty name=\"buttonAlignment\" \/&gt;\n        &lt;\/designLayoutItems&gt;\n      &lt;\/designSection&gt;\n    &lt;\/designLayout&gt;\n  &lt;\/targetConfig&gt;\n&lt;\/targetConfigs&gt;<\/code><\/pre>\n\n\n\n<p>\u5728\u9879\u76ee\u76ee\u5f55\u4e2d\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4e3a\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u51c6\u5907\u5143\u6570\u636e\u5305\u3002\u521b\u5efa\u7684\u6587\u4ef6\u5939\u540d\u79f0\u4e3a \u3002<code>custompackage<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sf project convert source -d custompackage<\/code><\/pre>\n\n\n\n<p>\u5c06\u5305\u90e8\u7f72\u5230\u6d4b\u8bd5\u7ec4\u7ec7\u3002\u9996\u5148\uff0c\u901a\u8fc7\u767b\u5f55\u5230\u8981\u90e8\u7f72\u5305\u7684\u4efb\u610f\u7ec4\u7ec7\u6765\u521b\u5efa\u522b\u540d\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u767b\u5f55\u5e76\u547d\u540d\u522b\u540d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sf org login web -r http:\/\/login.salesforce.com -a isvorg<\/code><\/pre>\n\n\n\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06\u5305\u90e8\u7f72\u5230\u60a8\u6388\u6743\u7684\u522b\u540d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sf project deploy --metadata-dir -d custompackage -u isvorg<\/code><\/pre>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u901a\u8fc7\u767b\u5f55\u5230\u90e8\u7f72\u7684\u76ee\u6807\u7ec4\u7ec7\u6765\u9a8c\u8bc1\u90e8\u7f72\u662f\u5426\u5df2\u5b8c\u6210\u3002\u5728\u201c\u8bbe\u7f6e\u201d\u7684\u201c\u5feb\u901f\u67e5\u627e\u201d\u6846\u4e2d\uff0c\u8f93\u5165 \uff0c\u7136\u540e\u9009\u62e9\u201c<strong>\u90e8\u7f72\u72b6\u6001<\/strong>\u201d\u3002<code>Deployment Status<\/code><\/p>\n\n\n\n<p>\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5df2\u90e8\u7f72\u3002\u5728\u201c\u8bbe\u7f6e\u201d\u7684\u201c\u5feb\u901f\u67e5\u627e\u201d\u6846\u4e2d\uff0c\u8f93\u5165 \uff0c\u7136\u540e\u9009\u62e9&nbsp;<strong>Lightning \u7ec4\u4ef6<\/strong>\u3002<code>Lightning Components<\/code><\/p>\n\n\n\n<p>\u6d4b\u8bd5\u76ee\u6807\u7ec4\u7ec7\u4e2d\u7684\u7ec4\u4ef6\uff0c\u4ee5\u9a8c\u8bc1\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u662f\u5426\u53ef\u4ee5\u5728\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u4e2d\u4f7f\u7528\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"considerations-for-custom-components\">\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u7684\u6ce8\u610f\u4e8b\u9879<\/h2>\n\n\n\n<p>\u5728 Lightning \u5e94\u7528\u7a0b\u5e8f\u751f\u6210\u5668\u4e2d\u5de5\u4f5c\u7684\u67d0\u4e9b\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u4e0e\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u4e0d\u517c\u5bb9\u3002\u5728\u542f\u7528\u73b0\u6709\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u4ee5\u5728\u7535\u5b50\u90ae\u4ef6\u6784\u5efa\u5668\u4e2d\u4f7f\u7528\u5b83\u4eec\u4e4b\u524d\uff0c\u8bf7\u67e5\u770b\u8fd9\u4e9b\u7ec4\u4ef6\u7684\u8981\u6c42\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e0d\u652f\u6301\u7684\u9879\u76ee<\/h2>\n\n\n\n<p>\u4e3a\u6211\u4eec\u7684\u5185\u5bb9\u6784\u5efa\u5668\u63d0\u4f9b\u652f\u6301\u7684\u6e32\u67d3\u5f15\u64ce\u5728\u5b89\u5168\u7684\u73af\u5883\u4e2d\u8fd0\u884c\u3002\u4f46\u662f\uff0c\u5728\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u6587\u4ef6\u4e2d\u53ef\u4ee5\u6dfb\u52a0\u7684\u4ee3\u7801\u5b58\u5728\u9650\u5236\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4efb\u4f55\u7c7b\u578b\u7684 DOM API<\/li>\n\n\n\n<li>\u6587\u4ef6\u4e2d\u7684\u751f\u547d\u5468\u671f\u6302\u94a9<code>renderedCallback()<\/code><code>.js<\/code><\/li>\n\n\n\n<li>\u6587\u4ef6\u4e2d\u7684 Web API \u65b9\u6cd5<code>fetch()<\/code><code>.js<\/code><\/li>\n\n\n\n<li><code>&lt;script&gt;<\/code>\u6807\u8bb0<code>.html<\/code><\/li>\n\n\n\n<li>\u5bf9\u6587\u4ef6\u4e2d\u5bf9\u8c61\u7684\u5f15\u7528<code>window<\/code><code>.js<\/code><\/li>\n\n\n\n<li>\u547d\u540d\u7a7a\u95f4\u4e2d\u7684\u57fa\u672c\u7ec4\u4ef6<code>lightning<\/code><\/li>\n\n\n\n<li>\u4f7f\u7528\u8bed\u6cd5\u7684\u7ebf\u8def\u670d\u52a1<code>@wire<\/code><\/li>\n\n\n\n<li>Apex \u65b9\u6cd5\uff0c\u4f46<code>PicklistEntry<\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">CSS \u6587\u4ef6<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e0d\u652f\u6301 SLDS \u4ee4\u724c\u548c\u9009\u62e9\u5668\u3002<code>:host<\/code><\/li>\n\n\n\n<li>\u6211\u4eec\u5efa\u8bae\u60a8\u4f7f\u7528\u552f\u4e00\u7684\u7c7b\u540d\u6216\u5728 CSS \u7c7b\u540d\u524d\u9762\u52a0\u4e0a\u547d\u540d\u7a7a\u95f4\uff0c\u4ee5\u533a\u522b\u4e8e\u5176\u4ed6\u7ec4\u4ef6\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u9009\u62e9\u5217\u8868<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u901a\u8fc7\u4f7f\u7528 Apex \u521b\u5efa HTML \u6807\u8bb0\u6765\u586b\u5145\u9009\u62e9\u5217\u8868\u3002\u8bf7\u53c2\u9605&nbsp;Apex \u53c2\u8003\u6307\u5357 PicklistEntry \u7c7b\u3002<\/li>\n\n\n\n<li>\u4ec5\u5f53\u8986\u76d6\u4ee5\u4e0b\u65b9\u6cd5\u65f6\uff0c\u7528\u4f5c\u9009\u62e9\u5217\u8868\u6570\u636e\u6e90\u7684 Apex \u5916\u90e8\u6807\u6ce8\u624d\u6709\u6548\uff1a<code>global override Boolean isValid(Object attributeValue){return true;}<\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add-custom-html-to-a-component\">\u5411\u7ec4\u4ef6\u6dfb\u52a0\u81ea\u5b9a\u4e49 HTML<\/h2>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u5c06\u81ea\u5b9a\u4e49 HTML \u6dfb\u52a0\u5230\u7ec4\u4ef6\u4e2d\uff0c\u4ee5\u4fbf\u5728\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u6784\u5efa\u5668\u4e2d\u4f7f\u7528\u3002<\/p>\n\n\n\n<p>\u5728\u6a21\u677f\u6807\u8bb0\u4e2d\u6307\u5b9a\u8981\u4f4d\u4e8e innerHTML \u5bb9\u5668\u4e2d\u7684\u5143\u7d20\u7684\u7279\u6b8a\u5c5e\u6027\u548c\u503c\uff1a.<code>ishtmlcontainer=\"true\"<\/code><\/p>\n\n\n\n<p>\u4e0d\u8981\u5728\u5176\u4ed6\u5730\u65b9\u4f7f\u7528\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4f1a\u5904\u7406\u751f\u6210 HTML \u7684\u65f6\u95f4\u3002<code>renderedCallback()<\/code><\/p>\n\n\n\n<p>\u5728\u6a21\u677f\u4e2d\uff0c\u5c06\u5c5e\u6027\u548c\u503c\u9644\u52a0\u5230\u8981\u6307\u5b9a innerHTML \u5bb9\u5668\u7684\u4f4d\u7f6e\u3002<code>ishtmlcontainer=\"true\"<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template&gt;\n  &lt;div ishtmlcontainer=\"true\" lwc:dom=\"manual\"&gt;&lt;\/div&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>\u5728 JavaScript \u6587\u4ef6\u4e2d\uff0c\u4e3a\u5c5e\u6027\u521b\u5efa setter \u548c getter\u3002\u6682\u65f6\u5c06\u5b83\u4eec\u7559\u7a7a\u3002<code>htmlValue<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@api\nset htmlValue(value) {\n\n}\n\nget htmlValue() {\n\n}<\/code><\/pre>\n\n\n\n<p>\u6dfb\u52a0\u4e00\u4e2a\u65b9\u6cd5\uff0c\u5728\u8be5\u65b9\u6cd5\u4e2d\u521b\u5efa\u4e00\u4e2a\u5b9e\u4f8b\u53d8\u91cf\uff0c\u4ee5\u4fdd\u5b58\u5bf9\u4fdd\u5b58 innerHTML \u5c5e\u6027\u7684\u5143\u7d20\u7684\u5f15\u7528\uff08\u79f0\u4e3a \uff09\u3002\u5728\u8be5\u5143\u7d20\u7684 innerHTML \u5c5e\u6027\u4e0a\uff0c\u4e3a\u5176\u5206\u914d\u521a\u521b\u5efa\u7684\u5c5e\u6027\u7684\u503c\u3002<code>renderedCallback()<\/code><code>attachmentPoint<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>renderedCallback() {\n    this.attachmentPoint = this.template.querySelector('div&#91;ishtmlcontainer=true]');\n    this.attachmentPoint.innerHTML = this.htmlValue;\n}<\/code><\/pre>\n\n\n\n<p>\u5728 setter \u4e2d\uff0c\u6dfb\u52a0\u5bf9\u6240\u521b\u5efa\u7684\u5b9e\u4f8b\u53d8\u91cf\u7684\u8d4b\u503c\u7684\u68c0\u67e5\u3002\u5c06\u65b0\u503c\u5206\u914d\u7ed9\u5b9e\u4f8b\u53d8\u91cf\u7684 innerHTML \u5c5e\u6027\uff0c\u5e76\u5c06\u8be5\u503c\u5206\u914d\u7ed9\u975e\u516c\u5171\u5c5e\u6027\u3002\u5728 getter \u4e2d\uff0c\u8fd4\u56de\u975e\u516c\u5171\u5c5e\u6027\u7684\u503c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { LightningElement, api } from \"lwc\";\n\nexport default class CustomInner extends LightningElement {\n  @api\n  set htmlValue(value) {\n    if (this.attachmentPoint) {\n      this.attachmentPoint.innerHTML = value;\n    }\n    this._htmlValue = value;\n  }\n\n  get htmlValue() {\n    return this._htmlValue;\n  }\n\n  renderedCallback() {\n    this.attachmentPoint = this.template.querySelector(\"div&#91;ishtmlcontainer=true]\");\n    this.attachmentPoint.innerHTML = this.htmlValue;\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u5728\u6587\u4ef6\u4e2d\u5b9a\u4e49\u5c5e\u6027\u7684\u9ed8\u8ba4\u503c\u548c\u5176\u4ed6\u5c5e\u6027\u3002<code>.js-meta.xml<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\" fqn=\"CustomInner\"&gt;\n    &lt;apiVersion&gt;53.0&lt;\/apiVersion&gt;\n    &lt;isExposed&gt;true&lt;\/isExposed&gt;\n    &lt;masterLabel&gt;Custom Inner HTML&lt;\/masterLabel&gt;\n    &lt;description&gt;Display HTML-enhanced text&lt;\/description&gt;\n    &lt;targets&gt;\n        &lt;target&gt;lightningStatic__Email&lt;\/target&gt;\n    &lt;\/targets&gt;\n    &lt;targetConfigs&gt;\n        &lt;targetConfig targets=\"lightningStatic__Email\"&gt;\n            &lt;property name=\"htmlValue\" type=\"String\" required=\"true\" default=\"YOUR CUSTOM INNER HTML HERE\"\/&gt;\n            ...\n        &lt;\/targetConfig&gt;\n    &lt;\/targetConfigs&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"configure-a-component-for-crm-analytics-dashboards\">\u4e3a CRM Analytics \u4eea\u8868\u677f\u914d\u7f6e\u7ec4\u4ef6<\/h2>\n\n\n\n<p>\u4f7f\u7528 Lightning Web \u7ec4\u4ef6\u5b9e\u73b0\u81ea\u5b9a\u4e49\u529f\u80fd\uff0c\u7136\u540e\u5c06\u5b83\u4eec\u4e0e CRM Analytics \u4eea\u8868\u677f\u5c0f\u7ec4\u4ef6\u548c\u6b65\u9aa4\u4ea4\u4e92\u4f7f\u7528\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. \u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0 CRM Analytics \u76ee\u6807<\/h2>\n\n\n\n<p>componentName.js-meta.xml&nbsp;\u6587\u4ef6\u5b9a\u4e49\u7ec4\u4ef6\u7684\u5143\u6570\u636e\u503c\uff0c\u5305\u62ec\u5141\u8bb8\u5728 CRM Analytics \u4eea\u8868\u677f\u4e2d\u4f7f\u7528\u7684\u8bbe\u7f6e\u3002\u5c06\u76ee\u6807\u6dfb\u52a0\u5230\u7ec4\u4ef6\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u3002\u786e\u4fdd\u5c06\u5c5e\u6027\u8bbe\u7f6e\u4e3a \uff0c\u4ee5\u4fbf\u7ec4\u4ef6\u5bf9 CRM Analytics \u8bbe\u8ba1\u5668 UI \u53ef\u89c1\u3002<code>analytics__DashboardisExposedtrue<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n    &lt;isExposed&gt;true&lt;\/isExposed&gt;\n    &lt;targets&gt;\n        &lt;target&gt;analytics__Dashboard&lt;\/target&gt;\n    &lt;\/targets&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2. \u8bbe\u7f6e\u7ec4\u4ef6\u914d\u7f6e\u9009\u9879<\/h2>\n\n\n\n<p>\u5728&nbsp;componentName.js-meta.xml&nbsp;\u6587\u4ef6\u4e2d\uff0c\u4e3a\u76ee\u6807\u6dfb\u52a0 a\u3002\u5982\u679c\u7ec4\u4ef6\u8bbe\u8ba1\u4e3a\u4f7f\u7528\u4eea\u8868\u677f\u6b65\u9aa4\u4e2d\u7684 CRM Analytics \u67e5\u8be2\u6570\u636e\uff0c\u5219\u5c06\u6807\u8bb0\u8bbe\u7f6e\u4e3a\u3002\u5bf9\u4e8e\u8bbe\u8ba1\u7528\u4e8e CRM Analytics \u4eea\u8868\u677f\u7684\u6bcf\u4e2a\u7ec4\u4ef6\u5c5e\u6027\uff0c\u6dfb\u52a0\u6807\u8bb0\u3002<code>targetConfiganalytics__DashboardhasSteptrueproperty<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n    &lt;targetConfig targets=\"analytics__Dashboard\"&gt;\n        &lt;hasStep&gt;true&lt;\/hasStep&gt;\n        &lt;property name=\"title\" type=\"String\" label=\"Title\" description=\"Component Title\" required=\"true\" \/&gt;\n    &lt;\/targetConfig&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<p>\u9664\u4e86\u5e38\u89c1\u7684\u6570\u636e\u7c7b\u578b\u5916\uff0c\u76ee\u6807\u8fd8\u652f\u6301\u5177\u6709 \u7684\u7ec4\u4ef6\u7684\u6570\u636e\u7c7b\u578b\u3002\u4eea\u8868\u677f\u7f16\u8f91\u5668\u80fd\u591f\u4ece\u9644\u52a0\u6b65\u9aa4\u7684\u7ed3\u679c\u4e2d\u9009\u62e9\u7ed9\u5b9a\u6570\u636e\u7c7b\u578b\u7684\u5217\u3002<code>analytics__Dashboard<\/code><code>Measure<\/code><code>Dimension<\/code><code>&lt;hasStep&gt;true&lt;\/hasStep&gt;<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n    &lt;targetConfig targets=\"analytics__Dashboard\"&gt;\n        &lt;hasStep&gt;true&lt;\/hasStep&gt;\n        &lt;property name=\"labelColumn\" type=\"Dimension\" label=\"Label Column\" description=\"Segment Label\" required=\"true\" \/&gt;\n    &lt;\/targetConfig&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n\n<p>\u5b8c\u6210\u8fd9\u4e9b\u6b65\u9aa4\u540e\uff0c\u5728 CRM Analytics Studio \u4eea\u8868\u677f\u7f16\u8f91\u5668\u4e2d\u5c06 Lightning Web \u7ec4\u4ef6\u6dfb\u52a0\u4e3a\u7ec4\u4ef6\u5c0f\u90e8\u4ef6\u3002\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u300aCRM Analytics \u4eea\u8868\u677f\u4e2d\u7684 Lightning Web \u7ec4\u4ef6\u5f00\u53d1\u4eba\u5458\u6307\u5357\u300b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6<br \/>\n\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u4e2d\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5141\u8bb8\u8425\u9500\u4eba\u5458\u548c\u7ecf\u7406\u4e3a\u5176\u5ba2\u6237\u521b\u5efa\u66f4\u5177\u5438\u5f15\u529b\u7684\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u3002<\/p>\n","protected":false},"author":1,"featured_media":3958,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[233],"tags":[265],"class_list":["post-3944","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lightning-web-","tag--pardot-"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6 - \u767d\u767d\u968f\u7b14<\/title>\n<meta name=\"description\" content=\"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u4e2d\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5141\u8bb8\u8425\u9500\u4eba\u5458\u548c\u7ecf\u7406\u4e3a\u5176\u5ba2\u6237\u521b\u5efa\u66f4\u5177\u5438\u5f15\u529b\u7684\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\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=3944\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6 - \u767d\u767d\u968f\u7b14\" \/>\n<meta property=\"og:description\" content=\"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u4e2d\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5141\u8bb8\u8425\u9500\u4eba\u5458\u548c\u7ecf\u7406\u4e3a\u5176\u5ba2\u6237\u521b\u5efa\u66f4\u5177\u5438\u5f15\u529b\u7684\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u3002\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.ponybai.com\/?p=3944\" \/>\n<meta property=\"og:site_name\" content=\"\u767d\u767d\u968f\u7b14\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-31T01:05:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-03T01:32:05+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/mail.png\" \/>\n\t<meta property=\"og:image:width\" content=\"868\" \/>\n\t<meta property=\"og:image:height\" content=\"295\" \/>\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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3944#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3944\"},\"author\":{\"name\":\"ponybai\",\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"headline\":\"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6\",\"datePublished\":\"2024-01-31T01:05:17+00:00\",\"dateModified\":\"2023-12-03T01:32:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3944\"},\"wordCount\":70,\"publisher\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"keywords\":[\"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6\"],\"articleSection\":[\"Lightning Web \u7ec4\u4ef6\u5f00\u53d1\u4eba\u5458\u6307\u5357\"],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3944\",\"url\":\"http:\/\/www.ponybai.com\/?p=3944\",\"name\":\"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6 - \u767d\u767d\u968f\u7b14\",\"isPartOf\":{\"@id\":\"http:\/\/www.ponybai.com\/#website\"},\"datePublished\":\"2024-01-31T01:05:17+00:00\",\"dateModified\":\"2023-12-03T01:32:05+00:00\",\"description\":\"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u4e2d\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5141\u8bb8\u8425\u9500\u4eba\u5458\u548c\u7ecf\u7406\u4e3a\u5176\u5ba2\u6237\u521b\u5efa\u66f4\u5177\u5438\u5f15\u529b\u7684\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u3002\",\"breadcrumb\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3944#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.ponybai.com\/?p=3944\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3944#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/www.ponybai.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6\"}]},{\"@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":"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6 - \u767d\u767d\u968f\u7b14","description":"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u4e2d\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5141\u8bb8\u8425\u9500\u4eba\u5458\u548c\u7ecf\u7406\u4e3a\u5176\u5ba2\u6237\u521b\u5efa\u66f4\u5177\u5438\u5f15\u529b\u7684\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\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=3944","og_locale":"zh_CN","og_type":"article","og_title":"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6 - \u767d\u767d\u968f\u7b14","og_description":"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u4e2d\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5141\u8bb8\u8425\u9500\u4eba\u5458\u548c\u7ecf\u7406\u4e3a\u5176\u5ba2\u6237\u521b\u5efa\u66f4\u5177\u5438\u5f15\u529b\u7684\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u3002","og_url":"http:\/\/www.ponybai.com\/?p=3944","og_site_name":"\u767d\u767d\u968f\u7b14","article_published_time":"2024-01-31T01:05:17+00:00","article_modified_time":"2023-12-03T01:32:05+00:00","og_image":[{"width":868,"height":295,"url":"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/12\/mail.png","type":"image\/png"}],"author":"ponybai","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"ponybai","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.ponybai.com\/?p=3944#article","isPartOf":{"@id":"http:\/\/www.ponybai.com\/?p=3944"},"author":{"name":"ponybai","@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"headline":"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6","datePublished":"2024-01-31T01:05:17+00:00","dateModified":"2023-12-03T01:32:05+00:00","mainEntityOfPage":{"@id":"http:\/\/www.ponybai.com\/?p=3944"},"wordCount":70,"publisher":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"keywords":["\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6"],"articleSection":["Lightning Web \u7ec4\u4ef6\u5f00\u53d1\u4eba\u5458\u6307\u5357"],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/www.ponybai.com\/?p=3944","url":"http:\/\/www.ponybai.com\/?p=3944","name":"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6 - \u767d\u767d\u968f\u7b14","isPartOf":{"@id":"http:\/\/www.ponybai.com\/#website"},"datePublished":"2024-01-31T01:05:17+00:00","dateModified":"2023-12-03T01:32:05+00:00","description":"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u4e2d\u7684\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5141\u8bb8\u8425\u9500\u4eba\u5458\u548c\u7ecf\u7406\u4e3a\u5176\u5ba2\u6237\u521b\u5efa\u66f4\u5177\u5438\u5f15\u529b\u7684\u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u3002","breadcrumb":{"@id":"http:\/\/www.ponybai.com\/?p=3944#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.ponybai.com\/?p=3944"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.ponybai.com\/?p=3944#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/www.ponybai.com\/"},{"@type":"ListItem","position":2,"name":"\u4e3a Pardot \u7535\u5b50\u90ae\u4ef6\u5185\u5bb9\u751f\u6210\u5668\u521b\u5efa\u7ec4\u4ef6"}]},{"@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\/3944","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=3944"}],"version-history":[{"count":1,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3944\/revisions"}],"predecessor-version":[{"id":3959,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3944\/revisions\/3959"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/media\/3958"}],"wp:attachment":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3944"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}