Salesforce Experience Cloud · Arazzo Workflow

Salesforce Experience Cloud Topic Upsert

Version 1.0.0

Search community topics by name and create one if it does not exist, else update it.

1 workflow 1 source API 1 provider
View Spec View on GitHub CMSCommunitiesCRMCustomer PortalDigital ExperienceExperience CloudPartner PortalArazzoWorkflows

Provider

salesforce-experience-cloud

Workflows

topic-upsert
Create a community topic by name or update the existing match.
Searches topics for an exact name match, then either creates a new topic or updates the matched topic's description.
3 steps inputs: accessToken, communityId, topicDescription, topicName outputs: createdTopicId, updatedTopicId
1
findTopic
Search the site's topics for an exact name match.
2
updateTopic
Update the matched topic's description.
3
createTopic
Create a new topic when no existing topic matched the name.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Salesforce Experience Cloud Topic Upsert
  summary: Search community topics by name and create one if it does not exist, else update it.
  description: >-
    A topic-curation flow for Experience Cloud sites. The workflow searches the
    site's topics for an exact name match and branches: when no topic matches it
    creates a new topic, and when a match is found it updates that topic's
    description. Each step spells out its request inline so the flow can be read
    and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: topicsApi
  url: ../openapi/salesforce-experience-cloud-topics-api-openapi.yml
  type: openapi
workflows:
- workflowId: topic-upsert
  summary: Create a community topic by name or update the existing match.
  description: >-
    Searches topics for an exact name match, then either creates a new topic or
    updates the matched topic's description.
  inputs:
    type: object
    required:
    - accessToken
    - communityId
    - topicName
    - topicDescription
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer token for the Salesforce instance.
      communityId:
        type: string
        description: ID of the Experience Cloud site (community).
      topicName:
        type: string
        description: Name of the topic to create or update.
      topicDescription:
        type: string
        description: Description to set on the topic.
  steps:
  - stepId: findTopic
    description: Search the site's topics for an exact name match.
    operationId: getTopics
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: communityId
      in: path
      value: $inputs.communityId
    - name: q
      in: query
      value: $inputs.topicName
    - name: exactMatch
      in: query
      value: true
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      matchedTopicId: $response.body#/topics/0/id
    onSuccess:
    - name: topicExists
      type: goto
      stepId: updateTopic
      criteria:
      - context: $response.body
        condition: $.topics.length > 0
        type: jsonpath
    - name: topicMissing
      type: goto
      stepId: createTopic
      criteria:
      - context: $response.body
        condition: $.topics.length == 0
        type: jsonpath
  - stepId: updateTopic
    description: Update the matched topic's description.
    operationId: updateTopic
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: communityId
      in: path
      value: $inputs.communityId
    - name: topicId
      in: path
      value: $steps.findTopic.outputs.matchedTopicId
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.topicName
        description: $inputs.topicDescription
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      topicId: $response.body#/id
    onSuccess:
    - name: done
      type: end
  - stepId: createTopic
    description: Create a new topic when no existing topic matched the name.
    operationId: createTopic
    parameters:
    - name: Authorization
      in: header
      value: Bearer $inputs.accessToken
    - name: communityId
      in: path
      value: $inputs.communityId
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.topicName
        description: $inputs.topicDescription
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      topicId: $response.body#/id
  outputs:
    updatedTopicId: $steps.updateTopic.outputs.topicId
    createdTopicId: $steps.createTopic.outputs.topicId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/salesforce-experience-cloud-topic-upsert-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.