How to add a incrfemental filed for a membership number

1 year 1 month ago #333087 by Tom16
Hi,

I need to automatically add an incremental membership number to the useraccounts. Any ideas how to do that?

Tom

Please Log in to join the conversation.

1 year 1 month ago #333092 by krileon
Is [user_id] not sufficient for this? It's their account id and is already auto incrementing.


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.

1 year 1 month ago #333095 by Tom16
Hi Krileon,

Normally it would, but there are already membership numbers that are not equal to the ID.


Tom

Please Log in to join the conversation.

1 year 1 month ago #333096 by krileon
CB Auto Actions is probably your only solution in that case. You probably don't want membership numbers reused so you're going to have to keep track of the last membership id at the very least. Usually that's done using a custom database table. Then you'd be able to use a Query action to set their membership id to that last membership id + 1. Is there a reason you're using a membership id separate from user_id?


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.

1 year 1 month ago #333097 by Tom16
Hi Krileon,

That's a great idea. I will do that.
The existing id's are separate from the membership numbers.

When I change the ID to the membership number or vice versa, I lose the connection with RS Events etc.

Tom

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.202 seconds

Facebook Twitter LinkedIn