Currently these are the expected steps (which could be sub-tasks)
- update the donation form to take the recipient id from the rml and add it to the message
- create 2 new custom fields in Civi extending the 'phone' entity - source and recipient ID (source options TBD - but probably similar to address)
- in Acoustic create a custom field to denote the 'master record' - (would it hold contact ID, recipient ID or email?) to be populated with an RML phone has led to a donation & thus led to us linking it to a different contact - not done in this phab - we still need to figure out how queries will work on the Acoustic side to exclude in future
- In the Message class normalization - when recipient_id is present add to the message array these 2 new custom fields (apiv4 style syntax) plus phone_primary.phone = 999999
- In the WMFContact.Save class ensure the custom fields get saved
- Create a job that looks for this 99999 phone number and sends a query to Acoustic to get the actual phone number based on the recipient ID.
-
At this point it would ALSO look up whether there is an existing record in Acoustic for the email of the contact. If there is not then if will 'claim' the phone-only record by pushing the email into it. If there is then it will soft-cancel the Acoustic record by pushing the master record value into it- not done at this stage -not sure this is the right approach -
the tools repo export should be update to not push any records with a phone of 99999 - to avoid the nightly export doing anything before the reconcilitiation job has had a chance- not doing this at this stage as we do not push up the mobile number