In using the rule OG new content notification (admin/config/workflow/rules/reaction/manage/rules_og_new_content) for a site using Organic groups. However, I'd like add in the name (and URL) of the parent group. However, I'm not seeing these options in the tokens ("replacement values").
The Content Type in question has the field og_group_ref
for which I'm trying to target.
What I've tried so far (update):
On a dev instance, as per Pierre's recommendation below, I've added the following 'fetch entity' to the rule.
But the email comes in blank, without title on the subject line
function myhook_myfunction()
you can query the database and node_load the node group you like, otherwise you have, somehow, to pass the node id (nid) through Rules. I hope it helps.