Need to extract string from OM Header EFF and push to OSMC Custom field on header
Summary:
Hi Team,
There is requirement to extract a part of string from OM Header EFF and push to OSMC Custom field on header.
Example:
Order EFF Header | Subs Header |
---|---|
CCTOKen | GPID |
AMEX|9.99|AD44369-CACA-4045-9FC5-DC86A3E8F687|9483928|SUCCESS. | AD44369-CACA-4045-9FC5-DC86A3E8F687 |
The requirement is to extract the string between second and third pipe character and publish on OSMC custom field.
Can you help with the groovy to achieve this.
Note: The string position is not fixed.
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
0