Thank you for your help so far. I wanted to ask you another question related to the messaging part. But since my previous problems was solved by your help I thought I’d create this new topic.
I created this option where a user can delete messages from the repeating group. But according to my layout when user A deletes a certain message, the data is erased from user B’s data too.
So what I tried to do is, create two message bodies and associate each with each user, but I couldn’t figure a way around this.
If you could please help. Thank you!
In the Conversation Table, create a field called “See Conversation”. It will be set up the exact same as Participants.
Do the same for the Messages table. Call it “See Message”.
When User A deletes a message, they remove themselves from the “See Message” list. If User B also deletes the same message, then the workflow should delete this message.
When User A deletes a conversation, two things should happen.
User A is removed from the “See Conversation” list.
Remove User A from all of the Messages’s “See Message” list for that particular Conversation
Again, if User B also removes themselves from the Conversation, the Conversation and all of its messages should be deleted.
When changing or deleting a lot of things at once, you can use a regular workflow, but scheduling an API workflow is the better move.
Hi @dbevan,
So far I created “see conversations” in conversation data, and “see messages” in message data. And I created this workflow that when a new message is sent, see conversation = parent group user, see conversation = current user. I did the same for see messages whenever a new message is sent.
When i delete messages in a conversation bewteen A and B, I use the check box and for the checkbox i created a custom state to hold the values of the selected things in a pop up.
so the value =popup Message’s Selected things:plus item current cells message.
so should i remove the user over here or some place else?
I tried creating a custom state for the checkbox. custom state (name = selected user &type = user and value=current cell’s message’s see message)
when i try to create a workflow with a trash button = delete a list of things. type = user, list to delete = pop up’s messages selected user … i dont know what to select after that.
Just follow the workflows logic I mentioned. There’s no need for a custom state. If you have a delete icon in a repeating group cell of messages you should be able to click it and remove the current user from that message’s “see message” list.
As suggested by you I created see message and see conversation in messages and conversation datas.
As you said that see message and see conversation are list of users. But how come the message body is associated with them. Does adding see message and see conversation satisfy the condition that the message body is being seen by them automatically?
I tried to assign values to them. I created this condition that when ever send message is clicked, see message ADD parents groups user creator and see message ADD parents groups recipient.
and when I want to delete the current row in repeating group, as advised by you I tried to make changes to a list of thing --> messages --> see message remove current user.
but that still deletes the message body for both users A and B
I said to make changes to the messages, not delete them haha. Sorry if I wasn’t clear. You remove the current user from the see message field. Now AFTER that action, you should delete any messages that have an empty “see messages” list.
Screenshot the data source of the repeating group including the constraints. The current user should only see messages that they are “participants” in AND can “see”.