Loading
目錄
選取篩選

          沒有結果
          沒有結果
          以下是搜尋小祕訣

          檢查關鍵字的拼字。
          使用較常見的搜尋字詞。
          選取較少篩選條件以擴大您的搜尋。

          搜尋所有 Salesforce 說明
          簡報的 JSON 結構

          簡報的 JSON 結構

          瞭解可供「智慧內容」簡報的 Mustache 範本處理器使用的 JSON 內容階層和結構。

          必要版本

          提供版本:Lightning Experience
          提供版本:具有 Life Sciences Cloud、Life Sciences Cloud for Customer Engagement 附加元件授權和 Life Sciences Customer Engagement 受管理封裝的 EnterpriseUnlimited Edition。
          currentMode: The current mode of the presentation player.
          currentTerritoryId: The ID of the current territory.
          currentTerritoryName: The name of the current territory.
          emailTemplateId: The ID of the email template that's associated with the current page.
          state: The saved state of the presentation on the Life Sciences Cloud Mobile app.
          presentationIndex: The presentation index in the presentations array.
          pageIndex: The page index in the pages array.
          slideIndex: The slide index in the slides array.
          customers: An array of account records.
              id: The account ID.
              isPrimary: Indicates the account of the primary visit.
              Type: The account type (Account.Type).
              PersonEmail: The account email on account. Emails are also captured in contact point email records.
              firstName: The first name of the account.
              lastName: The last name of the account.
              middleName: The middle name of the account.
              nationality: The nationality of the account.
              salutation: The salutation of the account.
              healthcareProviderSpecialties: An array of specialties.
                  isPrimarySpecialty: Returns only primary specialties.
                  isActive: Returns only active specialties.
                  name: The specialty name.
              name: The name of the account.
              accountType: Returns HCP for a person account. Otherwise, returns HCO. 
              sourceSystemIdentifier: The user-provided unique external identifier for the account.
              contactPointAddresses: An array of the account's contact point address records.
                  id: The ID of the contact point address.
                  street: The street component of the address.
                  city: The city component of the address.
                  state: The state component of the address.
                  postalCode: The postal code for the address.
          presentations: An array of presentation records.
              id: The presentation ID.
              name: The presentation name.
              isCustom: Identifies whether the presentation is a custom presentation created by a field user.
              Pages: An array of page records.
                  id: The page ID.
                  sourceSystemIdentifier: The user-provided unique external identifier for the page.
                  slides: An array of slides.
                  name: The name of slide, for example, 01_index.html.
          user: User fields.
              name: The user's full name.
              firstName: The user's first name.
              lastName: The user's last name.
              userAdditionalInfo: Additional user fields on the associated user additional info record.
                  availableCountries: The countries that are available for the user in the context of a search.
                  preferredCountry: The user's preferred country.
          visits: An array of visits.
              id: The visit ID.
              accountId: The account ID.
              isParent: Returns true when the Parent Visit field is blank. 
              sourceSystemIdentifier: A user-provided unique, external identifier for the visit.
          

          此範本程式碼範例顯示如何從 JSON 結構中提取資料。

          <div id="screen-container">
              HELLO   
              {{#customers}}  <!--This is a Mustache loop -->
                  <span id="doc_name" class="template">{{firstName }} {{ lastName }}</span>
              {{/customers}}
              ,<br/>DO YOU WANT TO START THE VISIT?</span>
          </div>

          此程式碼可讓您使用提供給 Mustache 範本處理器的原始 JSON 作為 JavaScript 物件變數。

          var configData;
          document.addEventListener('PresentationDOMContentLoaded', function(event) => {
             configData = event.data; 
          });
           
          正在載入
          Salesforce Help | Article