Forum Discussion
Bulk Assign Subscription Groups
- 2 months ago
Hi klfoulk16! My understanding is that yes - you should be able to do this with a CSV import.
Your CSV should include the following columns:
- external_id: A unique identifier for each user.
- subscription_group_id: The ID of the subscription group you want to assign the user to.
- subscription_state: Indicates whether the user is subscribed or unsubscribed from that subscription group.
So this would look something like:
external_id,subscription_group_id,subscription_state
user1_id,group_id_1,subscribed
user2_id,group_id_1,unsubscribed
user3_id,group_id_2,unsubscribed
user3_id,group_id_3,subscribed
user4_id,group_id_3,subscribedKeep in mind:
- The CSV import is case sensitive. Make sure the column headers match exactly as specified.
- Each row in your CSV can specify a different subscription_group_id, allowing you to assign users to multiple groups in one import.
- Ensure that the external_id is unique for each user and corresponds to existing users in Braze.
- The import process will handle each row independently, so users will be updated according to the specified subscription group and state.
There have been no changes to this functionality in the latest documentation. If you encounter any issues during the import, double-check the formatting and the IDs used, and if you keep running into issues, consider filing a support ticket.
Let me know if that helps!
Hi klfoulk16! My understanding is that yes - you should be able to do this with a CSV import.
Your CSV should include the following columns:
- external_id: A unique identifier for each user.
- subscription_group_id: The ID of the subscription group you want to assign the user to.
- subscription_state: Indicates whether the user is subscribed or unsubscribed from that subscription group.
So this would look something like:
external_id,subscription_group_id,subscription_state
user1_id,group_id_1,subscribed
user2_id,group_id_1,unsubscribed
user3_id,group_id_2,unsubscribed
user3_id,group_id_3,subscribed
user4_id,group_id_3,subscribed
Keep in mind:
- The CSV import is case sensitive. Make sure the column headers match exactly as specified.
- Each row in your CSV can specify a different subscription_group_id, allowing you to assign users to multiple groups in one import.
- Ensure that the external_id is unique for each user and corresponds to existing users in Braze.
- The import process will handle each row independently, so users will be updated according to the specified subscription group and state.
There have been no changes to this functionality in the latest documentation. If you encounter any issues during the import, double-check the formatting and the IDs used, and if you keep running into issues, consider filing a support ticket.
Let me know if that helps!
Thank you that worked perfectly!
Related Content
- 2 years ago
- 10 months ago