Skip to Content Skip to Menu

Delete CB-Invitations after 30 days of not being accepted

8 years 10 months ago #266355 by avateamcom
Hello,

is there a way through cb-autoactions (or something else) to delete unaccepted cb-invitations after 30 days? Thanks a lot for your help!

Best regards,
Stefan

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68605
  • Thanks: 9108
  • Karma: 1434
8 years 10 months ago #266381 by krileon
Yes, but you'll need to write the custom code for it. You'd need to use a Code action with Method set to PHP then using CB API query for the invites, load them as invite objects, then delete them. It's possible to just use a Query action and do all of this basically in 1 database query if you don't depend on any CB Invites triggers.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn