I'm facing the same challenge now. Did you manage to get this working? If so, I would appreciate it if you could send me some information.
Hi Danny. The only way I got this to work, if I recall correctly, was to write an extension and consume it there. I'm on an old version of the platform so I'm not sure if this feature has been implemented. I wish I could be of more help.