Get payload from analysis script

Get payload from analysis script

Hi,

I was looking at this question https://help.tago.io/portal/en/community/topic/run-your-own-payload-parser-2 which mentions to use a parser script with analysis/trigger so it can be shared between multiple devices instead of copy/paste the script into every device.

Is there an example for that use? Is the 'payload' variable can be used in the analysis script as in the payload parser? And does the Emulator work with the analysis/action?

Thanks,
Chris