FME Flow: 2025.0

Configuring a Dropbox Watch Publisher

  1. In the FME Flow Web User Interface, select Notifications > Publications, and click Create.
  2. Provide a Name for the Publication
  3. Protocol: Select Dropbox Watch.
  4. Specify the Topics you want to publish to using the drop-down selector. To create a topic and use it right away, click +.

  5. Authentication Mode: Specifies the type of OAuth2 access token for the Dropbox account you want to watch.
    • Use Authorization Code: Use a Dropbox token generated dynamically. You must authorize with Dropbox to generate an access token, which expires after a four-hour session, and a refresh token that is applied automatically for longer access:
      1. Click Authorize.
      2. On the Authorize Dropbox dialog, provide the following credentials for your Dropbox account app:
        • App Key
        • Authorization Code
        • App Secret
      3. Click Authorize.
    • Use Token: Use a Dropbox access token generated before September 2021 that does not expire.
  6. Access Token: If Use Authorization Code is specified above, this field auto-populates after Dropbox authorization is completed. If Use Token is specified above, provide the OAuth2 access token for the Dropbox account you want to watch.
  7. Refresh Token: If Use Authorization Code is specified above, this field auto-populates after Dropbox authorization is completed.
  8. Access Token Expiry: If Use Authorization Code is specified above, this field auto-populates after Dropbox authorization is completed.
  9. Path to Watch: Provide a location on your Dropbox account to watch for changes, using forward slashes. For example: /MyFolder. To specify the top-level, or 'root', use a single forward slash: /.
  10. Watch Subdirectories: To watch activity in the selected directory and all subdirectories, specify Yes. To watch activity only in the selected directory and not in its subdirectories, specify No.
  11. Filter: By default, all actions on the specified directory are monitored, including adding (CREATE), changing (MODIFY), and deleting (DELETE) files (and folders, if applicable). To monitor only one or two of these actions, click the "x" beside the action you do not want to monitor to remove it. To add an action after removing it, click inside the dropbox and select it.
  12. Note  Events trigger based on changes in file date. If a file is overwritten, a MODIFY event is triggered.
  13. Click OK.

Sample Notification Schemas

When a file is added

{

"dropboxwatch_publisher_user": "John Doe",

"ws_topic": "SAMPLE_TOPIC",

"dropboxwatch_publisher_path": "/test/new text document.txt",

"dropboxwatch_publisher_action": "CREATE",

"fns_type": "dropboxwatch_publisher"

}

When a file is changed (for example, added content)

{

"dropboxwatch_publisher_user": "John Doe",

"ws_topic": "SAMPLE_TOPIC",

"dropboxwatch_publisher_path": "/test/new text document.txt",

"dropboxwatch_publisher_action": "MODIFY",

"fns_type": "dropboxwatch_publisher"

}

When a file is deleted

{

"dropboxwatch_publisher_user": "John Doe",

"ws_topic": "SAMPLE_TOPIC",

"dropboxwatch_publisher_path": "/test/new text document.txt",

"dropboxwatch_publisher_action": "DELETE",

"fns_type": "dropboxwatch_publisher"

}