1. Text parsing

    Article: AN0002030Updated:

    In some cases it is necessary to integrate ObjectGears with systems that are sending a plain structured text. This text has to be parsed in order corresponding values sent by the given system were identified. ObjectGears supports this functionality by means of function OG.TextUtils.CreateParseText().

    Structured text needs to be first read in ObjectGears, in order we can work with it by the help of this function. This can be done e.g. by mailbox reading, if the external system sends an email. The body of the email is stored in the column of type Long text. We can then define a rule of type Script on the target class, in which we will use function OG.TextUtils.CreateParseText() for separation of particular text parts and storing into corresponding columns.