Morning Mark,
I would favour an event action for this, as these can operate in the background and would not re-run for each page refresh or field change.
Check the detective as it may be complaining about restricted access to the contensis domain, be sure that the specific sub-domain is added to the firewall rules, or *.contensis.com is specified.
Let me know if you continue to have issues.