Skip to Content Skip to Menu

[SOLVED] CB Auto Action acymailing

3 years 11 months ago - 3 years 11 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
Last edit: 3 years 11 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 11 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 or Create an account to join the conversation.

3 years 11 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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum