Skip to main content
LinkedIn
Copied!

Table of Contents

Parsing date, dateTime, and time values in a Parse XML rule

XSD date, dateTime, and time values use a special formatting that is distinct from Pega Date, dateTime, and TimeOfDay property value formatting. For these XSD types, you must specify dateTime, date, or time as the XSD base type for the property to parse correctly.

The specified value informs the parse rule to convert the value to the Pega format before mapping it to the clipboard. Date values that must be converted to the Pega date format include the following examples:

  • 2021-07-20
  • 05:30:15
  • 2020-01-01T09:00:00
  1. In the navigation pane of Dev Studio, click Records.

  2. Expand the Integration-Mapping category, and then click Parse XML.

  3. Click the row of a parse XML rule to open it.

  4. On the Mapping tab, double-click an element to open the User Data window.

  5. On the Type tab of the User Data window, in the XSD Base Type, enter the following values based on what your XML value looks like and the property you are mapping it to.

    • If the format of the XML value looks like 2020-01-01T09:00:00Z, set the XSD Base Type value to dateTime to map the value to a Pega DateTime property.
    • If the format of the XML value looks like 2020-01-01, set the XSD Base Type value to date to map the value to a Pega Date property.
    • If the format of the XML value looks like 09:00:00Z, set the XSD Base Type value to time to map the value to a Pega TimeOfDay property.
    If the XSD Base Type field is left blank, no conversion is performed and the value is mapped to the clipboard as is.
    The following fields are typically set when the parse rule is auto-generated from an XSD, and have no effect on parsing.
    • Type Name
    • Type Namespace
    • Default Value
    • Is SOAP array
  6. Click OK.

  7. Click Save.

Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us