HI @RC_Chavez and Welcome to the Community !
You can replicate the example of @Johg_Ananda fairly easily …
The first table is just a one row helper table with 2 fields :
- A text field to enter the message you’d like to send
- A button to effectively send the message and probably “reset” the field to blank (
""
) once it’s done
The second table is the table acting as an “Inbox” and will store all the messages as well as some info about them
So, in that table there is :
-
A text field to store the message
-
You could use a Date/Time
field to store the moment the message was received in the “Inbox” table and choose as value for new rows
: date and time created
(it’s just an idea, as it was done differently in the sample above)
-
Either a text field like in the sample or a People
field to store the “Sender” of the message
As for the Action
formula for the button in the one row helper table, you could use something like this :
RunActions(
AddRow(
Inbox,
Inbox.Message,
thisRow.Message,
Inbox.Sender,
User()
),
ModifyRows(
thisRow,
thisRow.Message,
""
)
)
So, it’s a 2 actions button where the first action is :
AddRow(
Inbox,
Inbox.Message,
thisRow.Message,
Inbox.Sender,
User()
)
And it simply add a row to the table meant to store the messages where the value to put in the field for the message is thisRow.Message
and the value to put in the field for the sender is the current user (User()) who push the button .
In my quick test, as I chose to create the timestamp using the date and time created
as value for new rows
, I didn’t need to precise the value to add in the button for that field.
But if you need it or prefer to timestamp the message when the button is effectively pushed instead of when the row is added in the table you could use Now() for this value in that field .
The second action of the button is:
ModifyRows(
thisRow,
thisRow.Message,
""
)
And it just resets the value in the text field in the one row helper table to Blank
(""
) .
After that, if you wish to avoid sending blank messaged to the “Inbox” table, you can add a Disable if
formula such as :
thisRow.Message.IsBlank()
So the button will be disabled while the text field is still empty .
And that’s pretty much it I think …
And there are probably other ways to get something similar too
I hope this helps !