Pergapedia / SSP7
SMTX SupportSMTX Wiki
  • Introduction
  • Pergapedia / SSP7 Admin guide
  • Catalog
    • Typical use cases
      • Usage as Knowledge Catalog
      • Usage as Data Catalog
      • Usage as Service Catalog
    • Catalog Maintenance
      • Templates
        • Create a new template
        • Version management of templates
        • ACL (Access Control Lists)
          • Scopes
          • Add default ACLs
          • Remove All ACLS
          • ACL condition script examples
        • Set translation label for Publication request button
      • Parts (Fields)
        • Field types
        • Calculations
        • Field Validation examples
        • Field Visibility Examples
        • Field Filtering
        • Default value
      • Actors
      • Reusable content
      • Settings
      • General Settings
      • Roles
      • Javascript for Variables in processes
      • Action Forms
        • Add log entries for Action Forms
    • Service Maintenance
      • Services
        • Filter list of services
        • Duplicating services
        • Adding a new service
        • Service Details
          • General settings
          • Service Data
          • Contracts
          • Actors
          • Receivers
          • Targets
          • Support Groups
          • Relations
          • Requests
          • Quality Notes
          • Publication History
          • Documents
          • Log
          • Service Actions
        • Compare versions
        • Quality Notes
        • Service Changed flag
      • Approvals
      • Relations
        • Start service from service
      • Subscriptions
      • Outages
    • Public
    • Service Catalog API
      • Outbound REST API
        • Get Services
        • Get Service Details
      • Inbound SOAP calls
        • Create custom approval
        • Add log to service publish request
        • Add person to service person list
        • Add persongroup to service persongroup list
        • Delete service
        • Mark service publish request as in approval state
        • Process service publish request
        • Publish request set can be cancelled
        • Publish request set show in public
        • Remove person from service person list
        • Remove persongroup from service persongroup list
        • Remove support group from service
        • Update service field
        • Update service language field
        • Update template part datetime value
        • Update template part numeric value
        • Update template part text value
  • Fulfillment Platform
    • Admin Panel
    • General Settings
      • General
      • My Profile
      • Mail Settings
      • Login
      • Forms Setting
      • Workflow
      • Archive
      • Calendar Overview
      • Dashboard
      • Mobile Component
      • Ticketing
      • Webhooks
      • Goto
      • Search options
      • Application URL Settings
      • Address Book Settings
    • Dashboard
    • Categories
    • Topics
    • Forms
      • Fields-tab
      • Field: General Settings
      • Dynamic Value
      • Text (Area) Field
      • Yes : No Field
      • Upload file(s)
      • Date (Time) Field
      • Password Field
      • Read Only Display Field
      • Header
      • Tab
      • Section
      • Repeatable section buttons
      • Subform
      • Static HTML
      • Hidden Field
      • Selection Fields
      • Calculations
    • Processes
      • General Settings
      • Dynamic Field Mapping
      • Process Steps
      • Step Types
      • Logging
    • Datastore
      • Process interaction
      • Manage datastore entries via Webservices - Javascript
    • Tasks
    • Auto Forms
    • Adapters
      • Person Data
      • Web Services
    • Event triggers
    • Roles
    • Rolesets
    • Groups
    • Views
      • View Example 1
      • View example 2
    • Mail Templates
    • Layouts
    • Mail queue
    • Reporting
    • External Apps
    • My Items
    • Translations
    • Bulk Uploads
    • Help page
    • Goto
    • Search
    • Inbound Email
    • Reporting Dashboard
    • Ticketing
      • My Activities
      • Ticketing Views
      • External Integrations
    • Release Manager
    • Content Management Console module
    • SSP Studio
    • Persons & Accounts
    • Pools
  • Release Notes
    • Terms and Conditions
      • December 2024
    • Release 7.21.01
    • Release 7.21.03
    • Release 7.21.04
    • Release 7.21.05
    • Release 7.21.06
    • Release 7.21.07
    • Release 7.21.08
    • Release 7.21.09
    • Release 7.21.10
    • Release 7.21.11
    • Release 7.21.12
    • Release 7.22.02
    • Release 7.22.03
    • Release 7.22.04
    • Release 7.22.05
    • Release 7.22.06
    • Release 7.22.07
    • Release 7.22.08
    • Release 7.22.09
    • Release 7.22.10
    • Release 7.22.12
    • Release 7.23.01
    • Release 7.23.02
    • Release 7.23.03
    • Release 7.23.04
    • Release 7.23.05
    • Release 7.23.07
    • Release 7.23.08
    • Release 7.23.09
    • Release 7.23.10
    • Release 7.23.11
    • Release 7.23.12
    • Release 7.24.02
    • Release 7.24.03
    • Release 7.24.04
    • Release 7.24.05
    • Release 7.24.06
    • Release 7.24.07
    • Release 7.24.08
    • Release 7.24.09
    • Release 7.24.10
    • Release 7.24.11
    • Release 7.24.12
    • Release 7.25.01
    • Release 7.25.02
    • Release 7.25.03
    • Release 7.25.04
    • Release 7.25.05
  • Guides
    • Installation Guide
      • Scheduled Task installation
    • Upgrade Guide
    • LDAP Import
    • Training
      • Exercise : Create a new form
      • Exercise : Create a new Datastore Parameter
      • Exercise : Create a new Process
      • Exercise : Create a new Role
    • SubTopics in Topics
  • Pergapedia platform
Powered by GitBook
On this page
  • Datastore - Address Book - Get
  • Datastore - Address Book - Add
  • Datastore - Address Book - Update
  • Datastore - Address Book - Delete
  • Datastore - Address Book - Action

Was this helpful?

  1. Fulfillment Platform
  2. Datastore

Manage datastore entries via Webservices - Javascript

PreviousProcess interactionNextTasks

Last updated 1 year ago

Was this helpful?

This new method is more secure, so we advise to use this.

I have created several web services where the code is generic. So, you still make a web service call for each datastore parameter as before (because the fields are different per datastore parameter). I have created 5 possible web service calls that work with JavaScript.

Datastore - Address Book - Get

In the script at the top, you adjust the parameter name variable to the parameter you want. The fields work as they did in the old version via SOAP, so the names start with "Filter" followed by the column you want to filter on. You can thus use these to replace existing SOAP web services, as the input and output remain the same.

Datastore - Address Book - Add

In the script at the top, you adjust the parameter name variable to the parameter you desire. The fields operate as they did in the previous version via SOAP, where the names represent the columns of the data you wish to add. Thus, you can utilize these to replace existing SOAP web services, as the input and output remain consistent.

Datastore - Address Book - Update

In the script at the top, you adjust the parameter name variable to the desired parameter. The fields operate similarly to the previous version via SOAP, where names beginning with "Filter" are used as keys for filtering, while names beginning with "Update" contain the data you want to update for the filtered records. Therefore, you can utilize these to replace existing SOAP web services, as the input and output remain consistent.

Datastore - Address Book - Delete

In the script at the top, you adjust the parameter name variable to the desired parameter. The names beginning with "Filter" are used as keys for filtering to delete. As far as I recall, deletion wasn't available via SOAP, so replacement isn't applicable here.

Datastore - Address Book - Action

In the script at the top, you adjust the parameter name variable to the desired parameter. This is a new generic one I've created. You always need a field named "Action" where you specify the action, with possible values being: add (or: create, insert), update, delete (or: remove), purge (or: truncate), save.

The other fields should start with "Key" or "Data". As you might guess, keys start with "Key" and the rest with "Data".

For "add", both the keys and the data are used to add the record.

For "update", keys are used as a filter and data as update data.

For "delete", keys are used as a filter (and the data is ignored).

For "purge", nothing is used (this removes all records from the datastore).

For "save", it first checks if there's already an entry in the datastore with a valid key. If yes, the action is set to update; if no, the action is set to add.

https://dev.ssp7.smt-x.com/common/Admin/WsCallAddEdit.aspx?genericid=418
https://dev.ssp7.smt-x.com/common/Admin/WsCallAddEdit.aspx?genericid=419
https://dev.ssp7.smt-x.com/common/Admin/WsCallAddEdit.aspx?genericid=420
https://dev.ssp7.smt-x.com/common/Admin/WsCallAddEdit.aspx?genericid=421
https://dev.ssp7.smt-x.com/common/Admin/WsCallAddEdit.aspx?genericid=422