Facebook Connector 25.4
Facebook Connector Help

# [prefix_]preProcessFeed

Use this function to perform any operations at the start of processing a feed. If paging is performed using the functions `getFeedUrlParameters` and `getNextUrlParameters`, this function is only called for the first page. If paging parameters are set in the URL by the `getFeedUrls` function and updated using the `getNextUrls` or `getNextUrlXPaths`, then this function will be called for each page.

Inputs: | xml (XmlDocument)
Outputs: | [NONE]
See also: | [prefix_]getFeedUrlParameters [prefix_]getNextUrlParameters getFeedUrls [prefix_]getNextUrls [prefix_]getNextUrlXPaths

## Example

    function myPrefix_preProcessFeed(xml)
       if (get_feed_param("LATEST_ID") == nil)
          set_feed_param("LATEST_ID") = xml:XPathValue("/atom:feed/atom:entry/atom:id")
       end
    end

Copyright 2025 Open Text
Version 25.4 | Last updated October 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Facebook Connector 25.4

Topic Title: [prefix_]preProcessFeed