Section II – Functional Modules > Interaction Interface > Functions Bottom of Page
| Genesys 8.0 SCXML Technical Reference
< Object Model Parameter Elements >

## Functions

#### _genesys.FMname.getMediaIntValue

This function returns the integer value for the interaction media type (_genesys.FMname.interactions[x].mediaFM.media) based on the string name.

intvalue _genesys.FMname.getMediaIntValue(media)

Parameters:

- media: STRING which can be a variable or a constant — This parameter is the string form of the media type name.

Returns: intvalue: NUMBER — The result of the function is an integer value which represents the given media type. A value of zero (0) will indicate that an integer value could not be found.

#### _genesys.FMname.setuData

This function adds new udata or updates existing udata for an interaction. This function will not affect existing udata values that do not match the property names defined in the input parameter. For example:

Existing udata | Requested additions and updates | Resulting udata
--- | --- | ---
udata.d1 = 3 udata.d2 = 4 udata.d3 = 5 | d3 = 10000 d6 = 67 d7.a = 88 d7.b =99 | udata.d1 = 3 udata.d2 = 4 udata.d3 = 10000 udata.d6 = 67 udata.d7.a = 88 udata.d7.b = 99

void _genesys.FMname.setuData(input, ixn)

Parameters:

- input: OBJECT which must be a variable — This parameter is an object which CONTAINs the properties which are to be added to the udata of the given interaction. This means that the input object itself is NOT added to the interaction's udata (for example, if the input parameter object is "a", with properties "b=7" and "c=9" then the resulting udata properties for the interaction will be _genesys.ixn.interactions[0].udata.b and _genesys.ixn.interactions[0].udata.c). The following is an example _genesys.ixn.setuData({b:7, c:9});
- ixn: STRING which can be a variable — This parameter is optional. It defines the ID of the interaction which should have its udata added to or updated. If this parameter is not present, then this function will be applied to the main interaction (_genesys.ixn.interactions[0].g_uid).

Returns: void

#### _genesys.FMname.deleteuData

This function deletes a udata property or all of the udata properties from the given interaction.

void _genesys.FMname.deleteuData(key, ixn)

Parameters:

- key: STRING which must be a variable or constant — This parameter is a string which represents the key or property name that is to be deleted from udata. If this parameter value is "$ALL", then all udata properties will be deleted from the given interaction's udata.
- ixn: STRING which can be a variable — This parameter is optional. It defines the ID of the interaction which should have a given udata property removed. If this parameter is not present, then this function will be applied to the main interaction (_genesys.ixn.interactions[0].g_uid).

Returns: void

Section II – Functional Modules > Interaction Interface > Functions Top of Page
| Genesys 8.0 SCXML Technical Reference
< Object Model Parameter Elements >