You need to sign in to do that
Don't have an account?
Sylvie Serplet
Chatter Post for staff anniversary
Hi,
I have a requirement to automatically post on Chatter a message to wish staff members a happy anniversary.
I have created 2 customs fields on Contact. The first one (Birthday__c) is a formula field (date - type) : DATE(YEAR (TODAY()), MONTH(Birthdate), DAY(Birthdate)). The second one (Birthday_is_today__c) is a formula field (checkbox - type): IF(Birthday__c = TODAY(),true, false). The second field update properly at runtime.
I have also created a Process Builder on Contact (when a record is created or edited), my criterias are Birthday_is_today__c = True and Contact Record Type = Staff, my action is Post to Chatter with a message Happy Birthday @staff!
The post is not created, it seams that something is missing between the 2 processes. The field update is not captured by the process builder to start the process. What am I missing?
Thank you for your help.
I have a requirement to automatically post on Chatter a message to wish staff members a happy anniversary.
I have created 2 customs fields on Contact. The first one (Birthday__c) is a formula field (date - type) : DATE(YEAR (TODAY()), MONTH(Birthdate), DAY(Birthdate)). The second one (Birthday_is_today__c) is a formula field (checkbox - type): IF(Birthday__c = TODAY(),true, false). The second field update properly at runtime.
I have also created a Process Builder on Contact (when a record is created or edited), my criterias are Birthday_is_today__c = True and Contact Record Type = Staff, my action is Post to Chatter with a message Happy Birthday @staff!
The post is not created, it seams that something is missing between the 2 processes. The field update is not captured by the process builder to start the process. What am I missing?
Thank you for your help.
First I have to change the data type of my custom field Birthday is today from formula(checkbox) to checkbox with a default value to Unchecked.
I have also created 2 scheduled Apex classes:
One to check if Birthday = today then tick the checkbox Birthday is today. This is scheduled everyday at 8.00am and it triggers the process builder.
Below my code and the test.
The second one untick the checkbox the next day at 1.00am to allow the process to start again. Below my code and the test.
All Answers
I think you can do this through the schedule a class which run daily and check daily that today's some have special day or not, than post on chatter through te code.
-Thanks
Ashlekh Gera
First I have to change the data type of my custom field Birthday is today from formula(checkbox) to checkbox with a default value to Unchecked.
I have also created 2 scheduled Apex classes:
One to check if Birthday = today then tick the checkbox Birthday is today. This is scheduled everyday at 8.00am and it triggers the process builder.
Below my code and the test.
The second one untick the checkbox the next day at 1.00am to allow the process to start again. Below my code and the test.