{"id":3741,"date":"2023-12-19T17:24:09","date_gmt":"2023-12-19T09:24:09","guid":{"rendered":"http:\/\/www.ponybai.com\/?p=3741"},"modified":"2023-11-25T17:30:49","modified_gmt":"2023-11-25T09:30:49","slug":"salesforce-%e7%9f%a5%e8%af%86","status":"publish","type":"post","link":"http:\/\/www.ponybai.com\/?p=3741","title":{"rendered":"Salesforce \u77e5\u8bc6"},"content":{"rendered":"\n<p>Salesforce Knowledge \u662f\u4e00\u4e2a\u77e5\u8bc6\u5e93\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5176\u4e2d\u8f7b\u677e\u521b\u5efa\u548c\u7ba1\u7406 \u5185\u5bb9\uff0c\u79f0\u4e3a\u6587\u7ae0\uff0c\u5e76\u5feb\u901f\u67e5\u627e\u548c\u67e5\u770b\u4ed6\u4eec\u9700\u8981\u7684\u6587\u7ae0\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528 Apex \u8bbf\u95ee\u4ee5\u4e0b Salesforce Knowledge \u529f\u80fd\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u77e5\u8bc6\u7ba1\u7406<\/strong><br>\u9664\u4e86 Salesforce \u7528\u6237\u754c\u9762\u5916\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u4f7f\u7528 Apex \u7f16\u5199\u3001\u53d1\u5e03\u3001\u5b58\u6863\u548c\u7ba1\u7406\u6587\u7ae0\u3002<\/li>\n\n\n\n<li>\u5347\u7ea7\u7684\u641c\u7d22\u8bcd\u00a0<strong>\u5347\u7ea7\u7684\u641c\u7d22\u8bcd<\/strong><br>\u5bf9\u4e8e\u63a8\u5e7f Salesforce Knowledge \u6587\u7ae0\u975e\u5e38\u6709\u7528\uff0c\u60a8\u77e5\u9053\u8be5\u6587\u7ae0\u901a\u5e38\u7528\u4e8e\u89e3\u51b3\u6700\u7ec8\u7528\u6237\u641c\u7d22\u5305\u542b\u67d0\u4e9b\u5173\u952e\u5b57\u65f6\u7684\u652f\u6301\u95ee\u9898\u3002\u9664\u4e86 Salesforce \u7528\u6237\u754c\u9762\u4e4b\u5916\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5c06\u5173\u952e\u5b57\u4e0e Apex \u4e2d\u7684\u6587\u7ae0\u76f8\u5173\u8054\uff08\u901a\u8fc7\u4f7f\u7528 SearchPromotionRule sObject\uff09\u6765\u5728\u641c\u7d22\u7ed3\u679c\u4e2d\u63a8\u5e7f\u6587\u7ae0\u3002<\/li>\n\n\n\n<li><strong>\u5efa\u8bae Salesforce \u77e5\u8bc6<\/strong>\u6587\u7ae0 \u4e3a\u7528\u6237\u63d0\u4f9b\u5feb\u6377\u65b9\u5f0f\uff0c\u4ee5\u4fbf\u5728\u7528\u6237\u6267\u884c\u641c\u7d22\u4e4b\u524d\u5bfc\u822a\u5230\u76f8\u5173\u6587\u7ae0<br>\u3002\u8c03\u7528\u4ee5\u8fd4\u56de\u6807\u9898\u4e0e\u7528\u6237\u7684\u641c\u7d22\u67e5\u8be2\u5b57\u7b26\u4e32\u5339\u914d\u7684 Salesforce Knowledge \u6587\u7ae0\u5217\u8868\u3002<samp>Search.suggest(searchText, objectType, options)<\/samp><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u77e5\u8bc6\u7ba1\u7406<\/h2>\n\n\n\n<p>\u7528\u6237\u53ef\u4ee5\u4f7f\u7528 Apex \u7f16\u5199\u3001\u53d1\u5e03\u3001\u5b58\u6863\u548c\u7ba1\u7406\u6587\u7ae0\uff0c\u6b64\u5916 Salesforce \u7528\u6237\u754c\u9762\u3002\u4f7f\u7528\u7c7b\u4e2d\u7684\u65b9\u6cd5\u7ba1\u7406\u6587\u7ae0\u53ca\u5176\u7ffb\u8bd1\u751f\u547d\u5468\u671f\u7684\u4ee5\u4e0b\u90e8\u5206\uff1a<\/p>\n\n\n\n<p><samp>KbManagement.PublishingService<\/samp><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u51fa\u7248<\/li>\n\n\n\n<li>\u66f4\u65b0<\/li>\n\n\n\n<li>\u68c0\u7d22<\/li>\n\n\n\n<li>\u5220\u9664<\/li>\n\n\n\n<li>\u63d0\u4ea4\u7ffb\u8bd1<\/li>\n\n\n\n<li>\u5c06\u7ffb\u8bd1\u8bbe\u7f6e\u4e3a\u5b8c\u6210\u6216\u672a\u5b8c\u6210\u72b6\u6001<\/li>\n\n\n\n<li>\u5f52\u6863<\/li>\n\n\n\n<li>\u4e3a\u6587\u7ae0\u8349\u7a3f\u6216\u7ffb\u8bd1\u5206\u914d\u5ba1\u6821\u4efb\u52a1<\/li>\n<\/ul>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>\u65e5\u671f\u503c\u57fa\u4e8e GMT\u3002\u82e5\u8981\u4f7f\u7528\u6b64\u7c7b\u4e2d\u7684\u65b9\u6cd5\uff0c\u5fc5\u987b\u542f\u7528 Salesforce \u77e5\u8bc6\u3002\u8bf7\u53c2\u9605\u00a0Salesforce \u77e5\u8bc6\u5b9e\u65bd \u6709\u5173\u8bbe\u7f6e Salesforce Knowledge \u7684\u66f4\u591a\u4fe1\u606f\u7684\u6307\u5357\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u63a8\u5e7f\u7684\u641c\u7d22\u8bcd<\/h2>\n\n\n\n<p><a><\/a>\u63a8\u5e7f\u7684\u641c\u7d22\u8bcd\u5bf9\u4e8e\u63a8\u5e7f \u60a8\u77e5\u9053\u7684 Salesforce \u77e5\u8bc6\u6587\u7ae0\u901a\u5e38\u7528\u4e8e\u89e3\u51b3\u4ee5\u4e0b\u60c5\u51b5\u4e0b\u7684\u652f\u6301\u95ee\u9898 \u6700\u7ec8\u7528\u6237\u7684\u641c\u7d22\u5305\u542b\u67d0\u4e9b\u5173\u952e\u5b57\u3002&nbsp;<a><\/a>\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5728\u641c\u7d22\u7ed3\u679c\u4e2d\u63a8\u5e7f\u6587\u7ae0 \u5c06\u5173\u952e\u5b57\u4e0e Apex \u4e2d\u7684\u6587\u7ae0\u76f8\u5173\u8054\uff08\u901a\u8fc7\u4f7f\u7528 SearchPromotionRule sObject\uff09 \u6dfb\u52a0\u5230 Salesforce \u7528\u6237\u754c\u9762\u3002<\/p>\n\n\n\n<p>\u6587\u7ae0\u5fc5\u987b\u5904\u4e8e\u5df2\u53d1\u5e03\u72b6\u6001\uff08PublishSatus&nbsp;\u5b57\u6bb5\u503c\u4e3a&nbsp;Online\uff09\uff0c\u4ee5\u4fbf\u60a8\u7ba1\u7406\u5176\u63a8\u5e7f\u7684\u5b57\u8bcd\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f8b<\/h2>\n\n\n\n<p>\u6b64\u4ee3\u7801\u793a\u4f8b\u6f14\u793a\u5982\u4f55\u6dfb\u52a0\u641c\u7d22 \u664b\u5347\u89c4\u5219\u3002\u6b64\u793a\u4f8b\u6267\u884c\u67e5\u8be2\u4ee5\u83b7\u53d6\u7c7b\u578b\u4e3a MyArticle__kav \u7684\u5df2\u53d1\u5e03\u6587\u7ae0\u3002 \u63a5\u4e0b\u6765\uff0c\u8be5\u793a\u4f8b\u521b\u5efa\u4e00\u4e2a SearchPromotionRule sObject \u6765\u5347\u7ea7\u5305\u542b \u5355\u8bcd\u201cSalesforce\u201d\uff0c\u5e76\u5c06\u7b2c\u4e00\u4e2a\u8fd4\u56de\u7684\u6587\u7ae0\u5206\u914d\u7ed9\u5b83\u3002\u6700\u540e\uff0c\u6837\u54c1\u63d2\u5165 \u8fd9\u4e2a\u65b0\u7684 s\u5bf9\u8c61\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Identify the article to promote in search results\nList&lt;MyArticle__kav&gt; articles = &#91;SELECT Id FROM MyArticle__kav WHERE PublishStatus='Online' AND Language='en_US' AND Id='Article Id'];\n\n\/\/ Define the promotion rule\nSearchPromotionRule s = new SearchPromotionRule(\n    Query='Salesforce',\n    PromotedEntity=articles&#91;0]);\n\n\/\/ Save the new rule\ninsert s;<\/code><\/pre>\n\n\n\n<p><a><\/a>\u8981\u5728 SearchPromotionRule sObject\uff0c\u5219\u5fc5\u987b\u542f\u7528 Salesforce Knowledge\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u63a8\u8350 Salesforce \u77e5\u8bc6\u6587\u7ae0<\/h2>\n\n\n\n<p>\u4e3a\u7528\u6237\u63d0\u4f9b\u5feb\u6377\u65b9\u5f0f\uff0c\u4ee5\u4fbf\u5728\u7528\u6237\u6267\u884c \u641c\u7d22\u3002\u8c03\u7528\u4ee5\u8fd4\u56de\u6807\u9898\u4e0e \u7528\u6237\u7684\u641c\u7d22\u67e5\u8be2\u5b57\u7b26\u4e32\u3002<\/p>\n\n\n\n<p><samp>Search.suggest(searchText, objectType, options)<\/samp><\/p>\n\n\n\n<p>\u8981\u8fd4\u56de\u5efa\u8bae\uff0c\u8bf7\u542f\u7528 Salesforce Knowledge\u3002\u8bf7\u53c2\u9605\u00a0Salesforce \u77e5\u8bc6\u5b9e\u65bd \u6709\u5173\u8bbe\u7f6e Salesforce Knowledge \u7684\u66f4\u591a\u4fe1\u606f\u7684\u6307\u5357\u3002\u6b64 Visualforce \u9875\u9762\u6709\u4e00\u4e2a\u7528\u4e8e\u641c\u7d22\u6587\u7ae0\u6216\u5e10\u6237\u7684\u8f93\u5165\u5b57\u6bb5\u3002\u5f53\u7528\u6237 \u6309\u201c\u5efa\u8bae\u201d\u6309\u94ae\uff0c\u663e\u793a\u5efa\u8bae\u7684\u8bb0\u5f55\u3002\u5982\u679c\u8d85\u8fc7\u4e94\u4e2a \u7ed3\u679c\uff0c\u5219\u663e\u793a\u201c\u66f4\u591a\u7ed3\u679c\u201d\u6309\u94ae\u3002\u8981\u663e\u793a\u66f4\u591a\u7ed3\u679c\uff0c\u8bf7\u5355\u51fb\u8be5\u6309\u94ae\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;apex:page controller=\"SuggestionDemoController\"&gt;\n    &lt;apex:form &gt;\n        &lt;apex:pageBlock mode=\"edit\" id=\"block\"&gt;\n            &lt;h1&gt;Article and Record Suggestions&lt;\/h1&gt;\n            &lt;apex:pageBlockSection &gt;\n                &lt;apex:pageBlockSectionItem &gt;\n                    &lt;apex:outputPanel &gt;\n                        &lt;apex:panelGroup &gt;\n                            &lt;apex:selectList value=\"{!objectType}\" size=\"1\"&gt;\n                                &lt;apex:selectOption itemLabel=\"Account\" itemValue=\"Account\" \/&gt;\n                                &lt;apex:selectOption itemLabel=\"Article\" itemValue=\"KnowledgeArticleVersion\" \/&gt;\n                                &lt;apex:actionSupport event=\"onchange\" rerender=\"block\"\/&gt;\n                            &lt;\/apex:selectList&gt;\n                        &lt;\/apex:panelGroup&gt;\n                        &lt;apex:panelGroup &gt;\n                            &lt;apex:inputHidden id=\"nbResult\" value=\"{!nbResult}\" \/&gt;\n                            &lt;apex:outputLabel for=\"searchText\"&gt;Search Text&lt;\/apex:outputLabel&gt;\n                            &amp;nbsp;\n                            &lt;apex:inputText id=\"searchText\" value=\"{!searchText}\"\/&gt;\n                            &lt;apex:commandButton id=\"suggestButton\" value=\"Suggest\" action=\"{!doSuggest}\" \n                                                rerender=\"block\"\/&gt;\n                            &lt;apex:commandButton id=\"suggestMoreButton\" value=\"More results...\" action=\"{!doSuggestMore}\" \n                                                rerender=\"block\" style=\"{!IF(hasMoreResults, '', 'display: none;')}\"\/&gt;\n                        &lt;\/apex:panelGroup&gt;\n                    &lt;\/apex:outputPanel&gt;\n                &lt;\/apex:pageBlockSectionItem&gt;\n            &lt;\/apex:pageBlockSection&gt;\n            &lt;apex:pageBlockSection title=\"Results\" id=\"results\" columns=\"1\" rendered=\"{!results.size&gt;0}\"&gt;\n                &lt;apex:dataList value=\"{!results}\" var=\"w\" type=\"1\"&gt;\n                    Id: {!w.SObject&#91;'Id']}\n                    &lt;br \/&gt;\n                    &lt;apex:panelGroup rendered=\"{!objectType=='KnowledgeArticleVersion'}\"&gt;\n                        Title: {!w.SObject&#91;'Title']}\n                    &lt;\/apex:panelGroup&gt;\n                    &lt;apex:panelGroup rendered=\"{!objectType!='KnowledgeArticleVersion'}\"&gt;\n                        Name: {!w.SObject&#91;'Name']}\n                    &lt;\/apex:panelGroup&gt;\n                    &lt;hr \/&gt;\n                &lt;\/apex:dataList&gt;\n            &lt;\/apex:pageBlockSection&gt;\n            &lt;apex:pageBlockSection id=\"noresults\" rendered=\"{!results.size==0}\"&gt;\n                No results\n            &lt;\/apex:pageBlockSection&gt;\n            &lt;apex:pageBlockSection rendered=\"{!LEN(searchText)&gt;0}\"&gt;\n                Search text: {!searchText}\n            &lt;\/apex:pageBlockSection&gt;\n        &lt;\/apex:pageBlock&gt;\n    &lt;\/apex:form&gt;\n&lt;\/apex:page&gt;<\/code><\/pre>\n\n\n\n<p>\u6b64\u4ee3\u7801\u662f \u9875\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class SuggestionDemoController {\n    \n    public String searchText;\n    public String language = 'en_US';\n    public String objectType = 'Account';\n    public Integer nbResult = 5;\n    public Transient Search.SuggestionResults suggestionResults;\n\n    public String getSearchText() {\n        return searchText;\n    }\n\n    public void setSearchText(String s) {\n        searchText = s;\n    }\n    \n    public Integer getNbResult() {\n        return nbResult;\n    }\n\n    public void setNbResult(Integer n) {\n        nbResult = n;\n    }\n    \n    public String getLanguage() {\n        return language;\n    }\n    \n    public void setLanguage(String language) {\n        this.language = language;\n    }\n            \n    public String getObjectType() {\n        return objectType;\n    }\n    \n    public void setObjectType(String objectType) {\n        this.objectType = objectType;\n    }\n\n    public List&lt;Search.SuggestionResult&gt; getResults() {\n        if (suggestionResults == null) {\n            return new List&lt;Search.SuggestionResult&gt;();\n        }\n        \n        return suggestionResults.getSuggestionResults();\n    }\n    \n    public Boolean getHasMoreResults() {\n        if (suggestionResults == null) {\n            return false;\n        }\n        return suggestionResults.hasMoreResults();\n    }\n    \n    public PageReference doSuggest() {\n        nbResult = 5;\n        suggestAccounts();\n        return null;\n    }\n    \n    public PageReference doSuggestMore() {\n        nbResult += 5;\n        suggestAccounts();\n        return null;\n    }\n    \n    private void suggestAccounts() {\n        Search.SuggestionOption options = new Search.SuggestionOption();\n        Search.KnowledgeSuggestionFilter filters = new Search.KnowledgeSuggestionFilter();\n        if (objectType=='KnowledgeArticleVersion') {\n            filters.setLanguage(language);\n            filters.setPublishStatus('Online');\n        }\n        options.setFilter(filters);\n        options.setLimit(nbResult);\n        suggestionResults = Search.suggest(searchText, objectType, options);\n    }\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Salesforce\u6587\u4ef6<\/h2>\n\n\n\n<p>\u4f7f\u7528 Apex \u81ea\u5b9a\u4e49 Salesforce Files \u7684\u884c\u4e3a\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u81ea\u5b9a\u4e49\u6587\u4ef6<\/strong>\u4e0b\u8f7d \u5f53\u7528\u6237\u5c1d\u8bd5\u4f7f\u7528 Apex \u56de\u8c03\u4e0b\u8f7d\u6587\u4ef6\u65f6\uff0c<br>\u60a8\u53ef\u4ee5\u81ea\u5b9a\u4e49\u6587\u4ef6\u7684\u884c\u4e3a\u3002ContentVersion \u652f\u6301\u5728\u4e0b\u8f7d\u64cd\u4f5c\u540e\u4fee\u6539\u6587\u4ef6\u884c\u4e3a\uff0c\u4f8b\u5982\u9632\u75c5\u6bd2\u626b\u63cf\u548c\u4fe1\u606f\u6743\u9650\u7ba1\u7406 \uff08IRM\uff09\u3002API \u7248\u672c 39.0 \u53ca\u66f4\u9ad8\u7248\u672c\u4e2d\u63d0\u4f9b\u4e86\u6587\u4ef6\u4e0b\u8f7d\u81ea\u5b9a\u4e49\u3002<\/li>\n\n\n\n<li><strong>\u81ea\u5b9a\u4e49\u6587\u4ef6\u4e0b\u8f7d\u793a\u4f8b<\/strong><br>\u60a8\u53ef\u4ee5\u4f7f\u7528 Apex \u5728\u5c1d\u8bd5\u4e0b\u8f7d\u65f6\u81ea\u5b9a\u4e49\u6587\u4ef6\u7684\u884c\u4e3a\u3002\u8fd9\u4e9b\u793a\u4f8b\u5047\u5b9a\u53ea\u4e0b\u8f7d\u4e00\u4e2a\u6587\u4ef6\u3002API \u7248\u672c 39.0 \u53ca\u66f4\u9ad8\u7248\u672c\u4e2d\u63d0\u4f9b\u4e86\u6587\u4ef6\u4e0b\u8f7d\u81ea\u5b9a\u4e49\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u81ea\u5b9a\u4e49\u6587\u4ef6\u4e0b\u8f7d<\/h2>\n\n\n\n<p>\u5f53\u7528\u6237\u5c1d\u8bd5\u4f7f\u7528 Apex \u56de\u8c03\u3002ContentVersion \u652f\u6301\u4fee\u6539\u540e\u7684\u6587\u4ef6\u884c\u4e3a\uff0c\u4f8b\u5982\u9632\u75c5\u6bd2\u626b\u63cf\u548c \u4fe1\u606f\u6743\u9650\u7ba1\u7406 \uff08IRM\uff09\uff0c\u5728\u4e0b\u8f7d\u64cd\u4f5c\u4e4b\u540e\u3002\u6587\u4ef6\u4e0b\u8f7d\u5b9a\u5236\u662f \u5728 API \u7248\u672c 39.0 \u53ca\u66f4\u9ad8\u7248\u672c\u4e2d\u53ef\u7528\u3002<\/p>\n\n\n\n<p>\u81ea\u5b9a\u4e49\u4ee3\u7801\u5728\u4e0b\u8f7d\u4e4b\u524d\u8fd0\u884c\uff0c\u5e76\u786e\u5b9a\u4e0b\u8f7d\u662f\u5426\u53ef\u4ee5\u7ee7\u7eed\u3002<\/p>\n\n\n\n<p>\u547d\u540d\u7a7a\u95f4\u5305\u542b\u7528\u4e8e\u81ea\u5b9a\u4e49\u7684 Apex \u5bf9\u8c61 Salesforce \u6587\u4ef6\u5728\u4e0b\u8f7d\u4e4b\u524d\u7684\u884c\u4e3a\u3002 \u63d0\u4f9b\u7528\u4e8e\u81ea\u5b9a\u4e49\u6587\u4ef6\u4e0b\u8f7d\u7684\u754c\u9762\u3002 \u8be5\u7c7b\u5b9a\u4e49\u76f8\u5173\u7684\u503c \u662f\u5426\u5141\u8bb8\u4e0b\u8f7d\uff0c\u4ee5\u53ca\u5426\u5219\u8be5\u600e\u4e48\u505a\u3002\u679a\u4e3e\u662f\u8fdb\u884c\u4e0b\u8f7d\u7684\u4e0a\u4e0b\u6587\u3002<samp>Sfc<\/samp><samp>ContentDownloadHandlerFactory<\/samp><samp>ContentDownloadHandler<\/samp><samp>ContentDownloadContext<\/samp><\/p>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528 Apex \u4ece Salesforce \u4e2d\u7684\u201c\u5185\u5bb9\u201d\u9009\u9879\u5361\u81ea\u5b9a\u4e49\u591a\u6587\u4ef6\u4e0b\u8f7d \u7ecf\u5178\u3002Apex \u51fd\u6570\u53c2\u6570 List&lt;ID&gt; \u5904\u7406 ContentVersion ID \u5217\u8868\u3002<\/p>\n\n\n\n<p>\u81ea\u5b9a\u4e49\u4e5f\u9002\u7528\u4e8e\u5185\u5bb9\u5305\u548c\u5185\u5bb9\u4ea4\u4ed8\u3002List&lt;ID&gt; \u662f ContentPack \u4e2d\u7684\u7248\u672c ID\u3002\u5728\u591a\u6587\u4ef6\u6216 ContentPack \u4e0b\u8f7d\u4e0a\u8fdb\u884c\u8bbe\u7f6e\u4f1a\u5bfc\u81f4\u6574\u4e2a\u4e0b\u8f7d\u5931\u8d25\u3002\u4f60 \u53ef\u4ee5\u901a\u8fc7 \u4e2d\u7684 URL \u53c2\u6570\u5c06\u95ee\u9898\u6587\u4ef6\u7684\u5217\u8868\u4f20\u9012\u56de\u9519\u8bef\u9875\u9762\u3002<samp>isDownloadAllowed =&nbsp;false<\/samp><samp>redirectUrl<\/samp><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f8b<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6839\u636e\u7528\u6237\u914d\u7f6e\u6587\u4ef6\u3001\u6b63\u5728\u4f7f\u7528\u7684\u8bbe\u5907\u6216\u6587\u4ef6\u7c7b\u578b\u963b\u6b62\u4e0b\u8f7d\u6587\u4ef6 \u548c\u5927\u5c0f\u3002<\/li>\n\n\n\n<li>\u5e94\u7528 IRM \u63a7\u4ef6\u6765\u8ddf\u8e2a\u4fe1\u606f\uff0c\u4f8b\u5982\u6587\u4ef6\u88ab \u4e0b\u8f7d\u3002<\/li>\n\n\n\n<li>\u5728\u4e0b\u8f7d\u4e4b\u524d\u6807\u8bb0\u53ef\u7591\u6587\u4ef6\uff0c\u5e76\u91cd\u5b9a\u5411\u5b83\u4eec\u4ee5\u8fdb\u884c\u9632\u75c5\u6bd2\u626b\u63cf\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u6d41\u7a0b\u6267\u884c<\/h2>\n\n\n\n<p>\u5f53\u4ece UI\u3001Connect API \u6216\u68c0\u7d22 sObject \u8c03\u7528\u89e6\u53d1\u4e0b\u8f7d\u65f6\uff0c\u5c06\u67e5\u627e \u7684\u5b9e\u73b0\u3002\u5982\u679c\u6ca1\u6709 \u627e\u5230\u5b9e\u73b0\uff0c\u7ee7\u7eed\u4e0b\u8f7d\u3002\u5426\u5219\uff0c\u7528\u6237\u5c06\u88ab\u91cd\u5b9a\u5411\u5230\u5df2 \u5728\u5c5e\u6027\u4e2d\u5b9a\u4e49\u3002\u5982\u679c\u627e\u5230\u591a\u4e2a\u5b9e\u73b0\uff0c\u5219\u5bf9\u5b83\u4eec\u8fdb\u884c\u7ea7\u8054\u5904\u7406\uff08\u6309\u540d\u79f0\u6392\u5e8f\uff09\u548c \u8003\u8651\u7b2c\u4e00\u4e2a\u4e0d\u5141\u8bb8\u4e0b\u8f7d\u7684\u3002<samp>ContentVersion.VersionData<\/samp><samp>Sfc.ContentDownloadHandlerFactory<\/samp><samp>ContentDownloadHandler#redirectUrl<\/samp><\/p>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>\u5982\u679c SOAP API \u64cd\u4f5c\u89e6\u53d1\u4e0b\u8f7d\uff0c\u5b83\u5c06\u901a\u8fc7 Apex \u7c7b\u6765\u68c0\u67e5 \u662f\u5426\u5141\u8bb8\u4e0b\u8f7d\u3002\u5982\u679c\u4e0d\u5141\u8bb8\u4e0b\u8f7d\uff0c\u5219\u65e0\u6cd5\u5904\u7406\u91cd\u5b9a\u5411\uff0c \u5e76\u8fd4\u56de\u5305\u542b\u9519\u8bef\u6d88\u606f\u7684\u5f02\u5e38\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u81ea\u5b9a\u4e49\u6587\u4ef6\u4e0b\u8f7d\u793a\u4f8b<\/h2>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528 Apex \u5728\u5c1d\u8bd5\u4e0b\u8f7d\u65f6\u81ea\u5b9a\u4e49\u6587\u4ef6\u7684\u884c\u4e3a\u3002\u8fd9\u4e9b \u793a\u4f8b\u5047\u5b9a\u53ea\u4e0b\u8f7d\u4e00\u4e2a\u6587\u4ef6\u3002\u6587\u4ef6\u4e0b\u8f7d\u5b9a\u5236\u662f \u5728 API \u7248\u672c 39.0 \u53ca\u66f4\u9ad8\u7248\u672c\u4e2d\u53ef\u7528\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f8b<\/h2>\n\n\n\n<p>\u6b64\u793a\u4f8b\u6f14\u793a\u4e86\u4e00\u4e2a\u7cfb\u7edf\uff0c\u8be5\u7cfb\u7edf\u9700\u8981\u4e0b\u8f7d\u624d\u80fd\u901a\u8fc7 IRM \u8fdb\u884c \u5bf9\u67d0\u4e9b\u7528\u6237\u8fdb\u884c\u63a7\u5236\u3002\u5bf9\u4e8e\u5141\u8bb8\u4e0b\u8f7d\u7684\u4fee\u6539\u6240\u6709\u6570\u636e \uff08MAD\uff09 \u7528\u6237 \u6587\u4ef6\uff0c\u5176\u7528\u6237 ID \u4e3a \uff1a<\/p>\n\n\n\n<p><samp>005xx<\/samp><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Allow customization of the content Download experience\npublic class ContentDownloadHandlerFactoryImpl implements Sfc.ContentDownloadHandlerFactory {\n\npublic Sfc.ContentDownloadHandler getContentDownloadHandler(List&lt;ID&gt; ids, Sfc.ContentDownloadContext context) {\n    Sfc.ContentDownloadHandler contentDownloadHandler = new Sfc.ContentDownloadHandler();\n\n    if(UserInfo.getUserId() == '005xx') {\n        contentDownloadHandler.isDownloadAllowed = true;\n        return contentDownloadHandler;\n    }\n    \n    contentDownloadHandler.isDownloadAllowed = false;\n    contentDownloadHandler.downloadErrorMessage = 'This file needs to be IRM controlled. You're not allowed to download it';\n    contentDownloadHandler.redirectUrl ='\/apex\/IRMControl?Id='+ids.get(0);\n    return contentDownloadHandler;\n}\n}<\/code><\/pre>\n\n\n\n<p>\u6ce8\u610f<\/p>\n\n\n\n<p>\u81ea \u8bf7\u53c2\u9605 MAD \u7528\u6237\u914d\u7f6e\u6587\u4ef6\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 \u4ee3\u66ff .<samp>UserInfo.getProfileId()<\/samp><samp>UserInfo.getUserId()<\/samp><\/p>\n\n\n\n<p>\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u662f\u4e3a \u663e\u793a\u7528\u4e8e\u4ece IRM \u7cfb\u7edf\u4e0b\u8f7d\u6587\u4ef6\u7684\u94fe\u63a5\u3002\u60a8\u9700\u8981\u4e00\u4e2a\u63a7\u5236\u5668 \u8c03\u7528 IRM \u7cfb\u7edf\u7684\u6b64\u9875\u9762\u3002\u5728\u5904\u7406\u6587\u4ef6\u65f6\uff0c\u5b83\u4f1a\u7ed9\u51fa\u4e00\u4e2a \u7aef\u70b9\uff0c\u4ee5\u4fbf\u5728\u6587\u4ef6\u53d7\u5230\u63a7\u5236\u65f6\u4e0b\u8f7d\u6587\u4ef6\u3002IRM \u7cfb\u7edf\u4f7f\u7528 sObject API \u6765\u83b7\u53d6\u8fd9\u4e2a .\u56e0\u6b64\uff0cIRM \u7cfb\u7edf\u9700\u8981 VersionID\uff0c\u5e76\u4e14\u5fc5\u987b\u4f7f\u7528 MAD \u7528\u6237\u68c0\u7d22 VersionData\u3002<samp>IRMControl<\/samp><samp>VersionData<\/samp><samp>ContentVersion<\/samp><\/p>\n\n\n\n<p>\u60a8\u7684 IRM \u7cfb\u7edf\u5904\u4e8e&nbsp;http:\/\/irmsystem\uff0c\u5e76\u4e14\u671f\u671b VersionID \u4e3a \u67e5\u8be2\u53c2\u6570\u3002IRM \u7cfb\u7edf\u8fd4\u56de\u5305\u542b\u4e0b\u8f7d\u7ec8\u7ed3\u70b9\u7684 JSON \u54cd\u5e94 \u5728\u503c\u4e2d\u3002<samp>downloadEndpoint<\/samp><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public class IRMController {\n    \nprivate String downloadEndpoint;\n    \npublic IRMController() {\n    downloadEndpoint = '';\n}\n    \npublic void applyIrmControl() {\n    String versionId = ApexPages.currentPage().getParameters().get('id');\n    Http h = new Http();\n\n    \/\/Instantiate a new HTTP request, specify the method (GET) as well as the endpoint\n    HttpRequest req = new HttpRequest();\n    req.setEndpoint('http:\/\/irmsystem?versionId=' + versionId);\n    req.setMethod('GET');\n\n    \/\/ Send the request, and retrieve a response\n    HttpResponse r = h.send(req);\n    JSONParser parser = JSON.createParser(r.getBody());\n      while (parser.nextToken() != null) {\n        if ((parser.getCurrentToken() == JSONToken.FIELD_NAME) &amp;&amp;\n            (parser.getText() == 'downloadEndpoint')) {\n                parser.nextToken();\n                downloadEndpoint = parser.getText();\n                break;\n        }\n    }\n}\n    \npublic String getDownloadEndpoint() {\n    return downloadEndpoint;\n}\n    \n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f8b<\/h2>\n\n\n\n<p>\u4e0b\u9762\u7684\u793a\u4f8b\u521b\u5efa\u4e00\u4e2a\u5b9e\u73b0\u63a5\u53e3\u7684\u7c7b\uff0c\u5e76\u8fd4\u56de \u963b\u6b62\u5c06\u6587\u4ef6\u4e0b\u8f7d\u5230\u79fb\u52a8\u8bbe\u5907\u7684\u4e0b\u8f7d\u5904\u7406\u7a0b\u5e8f \u88c5\u7f6e\u3002<\/p>\n\n\n\n<p><samp>ContentDownloadHandlerFactory<\/samp><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Allow customization of the content Download experience\npublic class ContentDownloadHandlerFactoryImpl implements Sfc.ContentDownloadHandlerFactory {\n\npublic Sfc.ContentDownloadHandler getContentDownloadHandler(List&lt;ID&gt; ids, Sfc.ContentDownloadContext context) {\n    Sfc.ContentDownloadHandler contentDownloadHandler = new Sfc.ContentDownloadHandler();\n    \n    if(context == Sfc.ContentDownloadContext.MOBILE) {\n        contentDownloadHandler.isDownloadAllowed = false;\n        contentDownloadHandler.downloadErrorMessage = 'Downloading a file from a mobile device isn't allowed.';\n        return contentDownloadHandler;\n    }\n    contentDownloadHandler.isDownloadAllowed = true;\n    return contentDownloadHandler;\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f8b<\/h2>\n\n\n\n<p>\u60a8\u8fd8\u53ef\u4ee5\u963b\u6b62\u4ece\u79fb\u52a8\u8bbe\u5907\u4e0b\u8f7d\u6587\u4ef6\uff0c\u5e76\u8981\u6c42 \u6587\u4ef6\u5fc5\u987b\u901a\u8fc7 IRM \u63a7\u5236\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Allow customization of the content Download experience\npublic class ContentDownloadHandlerFactoryImpl implements Sfc.ContentDownloadHandlerFactory {\n\npublic Sfc.ContentDownloadHandler getContentDownloadHandler(List&lt;ID&gt; ids, Sfc.ContentDownloadContext context) {\n    Sfc.ContentDownloadHandler contentDownloadHandler = new Sfc.ContentDownloadHandler();\n\n    if(UserInfo.getUserId() == '005xx000001SvogAAC') {\n        contentDownloadHandler.isDownloadAllowed = true;\n        return contentDownloadHandler;\n    }\n    if(context == Sfc.ContentDownloadContext.MOBILE) {\n        contentDownloadHandler.isDownloadAllowed = false;\n        contentDownloadHandler.downloadErrorMessage = 'Downloading a file from a mobile device isn't allowed.';\n        return contentDownloadHandler;\n    }\n    \n    contentDownloadHandler.isDownloadAllowed = false;\n    contentDownloadHandler.downloadErrorMessage = 'This file needs to be IRM controlled. You're not allowed to download it';\n    contentDownloadHandler.redirectUrl ='\/apex\/IRMControl?Id='+id.get(0);\n    return contentDownloadHandler;\n}\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Salesforce Knowledge \u662f\u4e00\u4e2a\u77e5\u8bc6\u5e93\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5176\u4e2d\u8f7b\u677e\u521b\u5efa\u548c\u7ba1\u7406 \u5185\u5bb9\uff0c\u79f0\u4e3a\u6587\u7ae0\uff0c\u5e76\u5feb\u901f\u67e5\u627e\u548c\u67e5\u770b\u4ed6\u4eec\u9700\u8981\u7684\u6587\u7ae0\u3002<\/p>\n","protected":false},"author":1,"featured_media":3742,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[199],"tags":[219],"class_list":["post-3741","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apex-","tag-salesforce-"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Salesforce \u77e5\u8bc6 - \u767d\u767d\u968f\u7b14<\/title>\n<meta name=\"description\" content=\"Salesforce Knowledge \u662f\u4e00\u4e2a\u77e5\u8bc6\u5e93\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5176\u4e2d\u8f7b\u677e\u521b\u5efa\u548c\u7ba1\u7406 \u5185\u5bb9\uff0c\u79f0\u4e3a\u6587\u7ae0\uff0c\u5e76\u5feb\u901f\u67e5\u627e\u548c\u67e5\u770b\u4ed6\u4eec\u9700\u8981\u7684\u6587\u7ae0\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=3741\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Salesforce \u77e5\u8bc6 - \u767d\u767d\u968f\u7b14\" \/>\n<meta property=\"og:description\" content=\"Salesforce Knowledge \u662f\u4e00\u4e2a\u77e5\u8bc6\u5e93\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5176\u4e2d\u8f7b\u677e\u521b\u5efa\u548c\u7ba1\u7406 \u5185\u5bb9\uff0c\u79f0\u4e3a\u6587\u7ae0\uff0c\u5e76\u5feb\u901f\u67e5\u627e\u548c\u67e5\u770b\u4ed6\u4eec\u9700\u8981\u7684\u6587\u7ae0\u3002\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.ponybai.com\/?p=3741\" \/>\n<meta property=\"og:site_name\" content=\"\u767d\u767d\u968f\u7b14\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-19T09:24:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-25T09:30:49+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/11\/knowlage.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1057\" \/>\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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3741#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3741\"},\"author\":{\"name\":\"ponybai\",\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"headline\":\"Salesforce \u77e5\u8bc6\",\"datePublished\":\"2023-12-19T09:24:09+00:00\",\"dateModified\":\"2023-11-25T09:30:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3741\"},\"wordCount\":151,\"publisher\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"keywords\":[\"Salesforce \u77e5\u8bc6\"],\"articleSection\":[\"Apex \u5f00\u53d1\u4eba\u5458\u6307\u5357\"],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3741\",\"url\":\"http:\/\/www.ponybai.com\/?p=3741\",\"name\":\"Salesforce \u77e5\u8bc6 - \u767d\u767d\u968f\u7b14\",\"isPartOf\":{\"@id\":\"http:\/\/www.ponybai.com\/#website\"},\"datePublished\":\"2023-12-19T09:24:09+00:00\",\"dateModified\":\"2023-11-25T09:30:49+00:00\",\"description\":\"Salesforce Knowledge \u662f\u4e00\u4e2a\u77e5\u8bc6\u5e93\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5176\u4e2d\u8f7b\u677e\u521b\u5efa\u548c\u7ba1\u7406 \u5185\u5bb9\uff0c\u79f0\u4e3a\u6587\u7ae0\uff0c\u5e76\u5feb\u901f\u67e5\u627e\u548c\u67e5\u770b\u4ed6\u4eec\u9700\u8981\u7684\u6587\u7ae0\u3002\",\"breadcrumb\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3741#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.ponybai.com\/?p=3741\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3741#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/www.ponybai.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Salesforce \u77e5\u8bc6\"}]},{\"@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":"Salesforce \u77e5\u8bc6 - \u767d\u767d\u968f\u7b14","description":"Salesforce Knowledge \u662f\u4e00\u4e2a\u77e5\u8bc6\u5e93\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5176\u4e2d\u8f7b\u677e\u521b\u5efa\u548c\u7ba1\u7406 \u5185\u5bb9\uff0c\u79f0\u4e3a\u6587\u7ae0\uff0c\u5e76\u5feb\u901f\u67e5\u627e\u548c\u67e5\u770b\u4ed6\u4eec\u9700\u8981\u7684\u6587\u7ae0\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=3741","og_locale":"zh_CN","og_type":"article","og_title":"Salesforce \u77e5\u8bc6 - \u767d\u767d\u968f\u7b14","og_description":"Salesforce Knowledge \u662f\u4e00\u4e2a\u77e5\u8bc6\u5e93\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5176\u4e2d\u8f7b\u677e\u521b\u5efa\u548c\u7ba1\u7406 \u5185\u5bb9\uff0c\u79f0\u4e3a\u6587\u7ae0\uff0c\u5e76\u5feb\u901f\u67e5\u627e\u548c\u67e5\u770b\u4ed6\u4eec\u9700\u8981\u7684\u6587\u7ae0\u3002","og_url":"http:\/\/www.ponybai.com\/?p=3741","og_site_name":"\u767d\u767d\u968f\u7b14","article_published_time":"2023-12-19T09:24:09+00:00","article_modified_time":"2023-11-25T09:30:49+00:00","og_image":[{"width":1057,"height":295,"url":"http:\/\/www.ponybai.com\/wp-content\/uploads\/2023\/11\/knowlage.png","type":"image\/png"}],"author":"ponybai","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"ponybai","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.ponybai.com\/?p=3741#article","isPartOf":{"@id":"http:\/\/www.ponybai.com\/?p=3741"},"author":{"name":"ponybai","@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"headline":"Salesforce \u77e5\u8bc6","datePublished":"2023-12-19T09:24:09+00:00","dateModified":"2023-11-25T09:30:49+00:00","mainEntityOfPage":{"@id":"http:\/\/www.ponybai.com\/?p=3741"},"wordCount":151,"publisher":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"keywords":["Salesforce \u77e5\u8bc6"],"articleSection":["Apex \u5f00\u53d1\u4eba\u5458\u6307\u5357"],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/www.ponybai.com\/?p=3741","url":"http:\/\/www.ponybai.com\/?p=3741","name":"Salesforce \u77e5\u8bc6 - \u767d\u767d\u968f\u7b14","isPartOf":{"@id":"http:\/\/www.ponybai.com\/#website"},"datePublished":"2023-12-19T09:24:09+00:00","dateModified":"2023-11-25T09:30:49+00:00","description":"Salesforce Knowledge \u662f\u4e00\u4e2a\u77e5\u8bc6\u5e93\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5176\u4e2d\u8f7b\u677e\u521b\u5efa\u548c\u7ba1\u7406 \u5185\u5bb9\uff0c\u79f0\u4e3a\u6587\u7ae0\uff0c\u5e76\u5feb\u901f\u67e5\u627e\u548c\u67e5\u770b\u4ed6\u4eec\u9700\u8981\u7684\u6587\u7ae0\u3002","breadcrumb":{"@id":"http:\/\/www.ponybai.com\/?p=3741#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.ponybai.com\/?p=3741"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.ponybai.com\/?p=3741#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/www.ponybai.com\/"},{"@type":"ListItem","position":2,"name":"Salesforce \u77e5\u8bc6"}]},{"@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\/3741","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=3741"}],"version-history":[{"count":1,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3741\/revisions"}],"predecessor-version":[{"id":3743,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3741\/revisions\/3743"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/media\/3742"}],"wp:attachment":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3741"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}