• Emma Sayer 7
  • 0 Points
  • Member since 2018

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 1
Hi Everyone, I am new to the Developer community, but I posted this issue on the 'standard' Salesforce community and so far no one can figure out what's going on, I hope someone here might be able to shed some light on this, or at least give me a tit bit of knowledge that might get me going in the right direction.

We have recently installed the fantastically helpful Unsubscribe Apex by Salesforce Labs, and set up email services. This works wonderfully, bravo Salesforce! We are also making use of the Individual Object to record our contact and leads marketing preferences, also very helpful, but the two are clashing. We have built some flows on the back of this to update the individual record etc and they do not see eye to eye, the theory is good, I believe, and I cannot fathom what is causing the errors.

After installing the unsubscribe email option my colleague created processes that would automate some of the manual, boring jobs for our users:
1. Process builder launching a flow: To create an 'Individual' record (if one did not already exist) and associate it to the contact. It would also populate a handful of fields on this Individual record. (we found this on the community: https://salesforce.stackexchange.com/questions/208341/how-do-you-populate-data-on-the-new-individual-object 
2. Same as above but for lead records. 
3. Process builder to update fields: if the record has an 'Individual' record referenced (which it will thanks to the procss above), and the email opt out on the contact = true (which it MIGHT do, if the unsubscribe email service had been utilised) this should update the email opt out field on the 'Individual' record to true also.
4. Same as above but for leads.

For some reason that I cannot wrap my brain around these are refusing to work together.

Unsubsribe works just fine on it's own, and the flows run very nicely together if you deactivate the unsubscribe. But when we activate them ALL and then do an 'unsubscribe' email test it says the unsubscribe email cannot work because it's failing to launch a flow. What I can't figure out for the life of me is what is failing, where and why!

Any hewlp would be greatly appreciated, link to the community question in case this helps:

Hi all, I am so close to finishing this process automation badge but am stuck in one area in Step 7.

I've built out my process builder as follows

User-added image
User-added image
User-added image

And my date formula as follows

Case(MOD(Date__c-DATE(1900,1,7),7),0,"Sunday",1,"Monday",2,"Tuesday",3,"Wednesday",4,"Thursday",5, "Friday",6,"Saturday", "")

Challenge Not yet complete... here's what's wrong:  The Robot Setup Day of the Week formula does not seem to be working properly. The Day of the Week should not fall on Saturday or Sunday. 

It works nicely but doesn't seem to pass, what could be up.