Hi marybeth.hunter,
thank you for your answer, but I am still struggling with question about updated context in different action, what you didn’t answer.
I will try to describe situation more:
We have first role called linkAccountsWithSameEmailAddress. In the end of this rule, we have update of context with some new fields:
return callback(
null,
user,
{
...context,
socialUserId,
primaryUserId,
linked: true
}
);
Then we have another rule running right after linkAccountsWithSameEmailAddress called handleSocialSignups where we check context.linked
. But how to pass these additional field from one action to another?
Link to javascript rule pastebin.
Thank you for your help.