Save on Semble links shared through Skyreader's Linkblog

For every new link shared through Skyreader's Linkblog, saves the link on Semble

site.standard.document
Lexicon
site.standard.document
Operations
Record created

Steps (6)

VariableCollectionURI
Value
Hidden
Note
ATURI for the Semble Collection of destination
Fetch recordsembleCollection- Fetches data from Semble Collection
Lookup
{{CollectionURI}}
Conditionbranch
  • If event.did equals {{self}} - Will only run if the document is from yourself
Then
Conditionbranch
  • If event.commit.record.site ends with skyreader-links - Checks if the document is from Skyreader's Linkblog
Then

Save on SembleAction 1card

Page URL
{{event.commit.record.links.0.uri}}

Create a recordAction 2

Target Collection
network.cosmik.collectionLink
Record Template
{
  "card": {
    "cid": "{{card.cid}}",
    "uri": "{{card.uri}}"
  },
  "addedAt": "{{now}}",
  "addedBy": "{{self}}",
  "createdAt": "{{now}}",
  "collection": {
    "cid": "{{sembleCollection.cid}}",
    "uri": "{{sembleCollection.uri}}"
  },
  "provenance": {
    "via": {
      "cid": "{{card.cid}}",
      "uri": "{{card.uri}}"
    }
  }
}