Reformatting Functions

The Siebel Web client reformats phone numbers and date/time values that are sent by the server or entered by users. Therefore the format of such values in client-sent HTTP request bodies is different from the format that is used in server-sent HTTP response bodies.

Phone Number in Server-Response Body

10*987140255510*78140110000*0*0*22*main.contact@MyCompany.com5*1-FIH

Phone Number in Recorded Script, Reformatted by the Siebel Web Client

"s_1_1_25_0" := "(987) 140-2555";

Without modification, the format used in request bodies would also be used in recorded scripts, making it impossible to replace such values with parsed values.

Reformatting Function for Phone Numbers

To allow such reformatted strings to be replaced with parsed values, the Silk Performer Web recorder records an appropriate reformatting function that mimics the Siebel Web client's reformatting and records actual values in the same format that is used in server responses.

"s_1_1_25_0" := SiebelPhone("9871402555");

Using a Parsed Value as a Parameter of a Reformatting Function

Unless a value is an input value, values can generally be replaced with parsed values in a second step. The Recorder actually records a parsed value instead of a hard-coded string.

"s_1_1_25_0" := SiebelPhone(SiebelTokenApplet(gsParsed, 5));

The following reformatting functions are available and are automatically recorded as required:

  • SiebelPhone
  • SiebelDate
  • SiebelTime
  • SiebelDateTime
  • SiebelDecodeJsString
  • SiebelParam