iNTERFACEWARE Products Manual > Installing and Using Chameleon > Using Python Scripting > Chameleon Python API > GUID Generator > Generating a GUID for Multiple Fields |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
Since calling generate_guid creates a new GUID each time, you need to save it as a variable to use the same one for message processing. To generate a new GUID for multiple fields, you would insert the following script in the Global Inbound Script, or Global Outbound Preprocess Script. For example:
Note that guid_str is a variable that holds the GUID. You can then use "guid_str" in any field you want to generate a GUID for by inserting the following code in the inbound or outbound script:
This means you can generate a GUID for use in multiple fields for the same message, as shown below: |