[SOLVED] CB Auto Action acymailing

3 years 4 months ago - 3 years 4 months ago #321668 by earthwatch
[SOLVED] CB Auto Action acymailing was created by earthwatch
Hi,

We have a CB Auto Action that we would like to use set to type of AcyMailing and a condition that looks to see if a custom field is null. This part is easy, but I am struggling to find a solution that would also check if the field registerDate can be compared to the current date as we would like to send an email 4 weeks after registration.

I have seen some functions like [cb:parse function="date" date-format="Y-m-d"[/cb:parse] but wonder if they can be used in the Value field of the condition?

I hope that makes sense.

Thanks

Please Log in to join the conversation.

3 years 4 months ago #321672 by krileon
Replied by krileon on topic CB Auto Action acymailing
You'll need to use format functions for that. Review the Parameters tab for how to use format functions. Specifically the ones pertaining to time and date. Example as follows.

Field: Custom > Value
Custom Value: [cb:parse function="time"]now[/cb:parse]
Features: Format Functions
Operator: Equal To or Greater Than
Value: [cb:parse function="time" time="+4 WEEKS"][registerDate][/cb:parse]
Features: Format Functions

The above condition would check to see if the current datetime is equal to or greater than their registration date with 4 weeks added to it.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

3 years 4 months ago #321689 by earthwatch
Replied by earthwatch on topic CB Auto Action acymailing
Thank you Kyle, that worked perfectly!

Many thanks,

Kevin
The following user(s) said Thank You: krileon

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.156 seconds

Facebook Twitter LinkedIn