Hey Adina,
Is the activity field a rich text field? Try this:
incident.addNote(helper.createRichText(rule.properties.actvity_field_api_name))
I haven't tested this, but it might also be returning a dictionary/JSON object that includes the string, but isn't the string by itself. If this is the case, this could help with debugging that to determine the keys to use:
incident.addNote(str(helper.createPlainText(rule.properties.actvity_field_api_name)))
Let me know what you find out.
Best,
Jared
------------------------------
Jared Fagel
Cyber Security Analyst I
Public Utility
------------------------------
Original Message:
Sent: Mon February 24, 2020 11:48 AM
From: Adina Bodkins
Subject: Activity Field to Notes
Hi there,
I am attempting to add a rule activity field as a note in Resilient.
I have a in-product script that does the following:
incident.addNote(rule.properties.actvity_field_api_name)
However I keep getting an error that 'rule is not defined' when running.
How can I achieve this?
Thanks!
------------------------------
Adina Bodkins
------------------------------