Cannot use SendSMS Workflow Action with Group in 7.x #2747
Labels
Priority: High
Affects most production Rock installs in a way that will be noticed.
Status: Confirmed
It's clear what the subject of the issue is about, and what the resolution should be.
Topic: Communications
Related to Rock Communications: Email, SMS, MMS, Push Notifications, etc.
Type: Bug
Confirmed bugs or reports that are very likely to be bugs.
x-Fixed in v7.3
Milestone
Prerequisites
Description
It looks like 7.0 refactored the way the SendSMS handles the merge fields when working with a group. From what I can tell it passes the
mergeFields
variable to the RecipientData object, which maintains a reference to it instead of a copy of it. Then the SendSMS action adds a "Person" object to the MergeFields. When using a Group, this causes a "An item with the same key has already been added." error because the dictionary already has a "Person" object from the previous loop through the group members.Reported on Slack, confirmed on prealpha.
Steps to Reproduce
Expected behavior:
Message should be sent to multiple people.
Actual behavior:
Workflow throws an error.
Versions
The text was updated successfully, but these errors were encountered: