salesforce.knowledge.search

Element details

type: meya.salesforce.knowledge.component.search
class: SalesforceKnowledgeSearchComponent
path: /meya/salesforce/knowledge/component/search.py
signature: -

Fields

fielddescription               requiredsignaturedefaulttype
specOverride the original spec for this element.nullSpec
localeThe locale of the articles to be retrieved. Usually this should be set to the user's locale."en-US"str
page_sizeThe maximum number of returned articles to be returned.nullint
page_numberThe specific page number to retrieve when a search query is broken up into multiple pages of articles. This allows you to page through the list of articles.nullint
channelGives the possibility to select different scopes depending on the situation.nullSalesforceKnowledgeChannel
orderArticles ordering, 'ASC' or 'DESC'.nullSalesforceKnowledgeOrder
sortArticles sort.nullSalesforceKnowledgeSort
article_body_field_nameThis is the specific field name you set in Salesforce to contain the body of an article. When this is set, the api will automatically fetch all body content for a list of articles in a search result. However, if it's not defined then the api will NOT fetch the article body content.nullstr
integrationSalesforceKnowledgeIntegrationRef
contextSend context data with this component's event.{}
dict
sensitivetruebool
triggersActivate these dynamic triggers when the component runs. Check the component triggers guide for more info.[]list
soql_querySalesforce Object Query Language (SOQL) query string. Check https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql.htm for more details.str

Usage reference

Basic

triggers:
  - keyword: meya.salesforce.knowledge.component.search
steps:
  - type: meya.salesforce.knowledge.component.search
    integration: integration.salesforce_knowledge
    soql_query: STRING

Full

triggers:
  - keyword: meya.salesforce.knowledge.component.search
steps:
  - type: meya.salesforce.knowledge.component.search
    spec:
      type: STRING
      data:
        STRING: ANY
      timeout: 123
      trigger_when: ANY
    locale: STRING
    page_size: 123
    page_number: 123
    channel: App|Pkb|Csp|Prm
    order: ASC|DESC
    sort: LastPublishedDate|CreatedDate|Title|ViewScore
    article_body_field_name: STRING
    integration: integration.salesforce_knowledge
    context:
      STRING: ANY
    sensitive: false
    triggers:
      - type: STRING
        data:
          STRING: ANY
        timeout: 123
        trigger_when: ANY
    soql_query: STRING