Slack API: how to get state of all input/action elements at once upon submit - api

I'm trying to build rich, interactive Slack messages. Example: message with date picker, set of checkboxes and a long text. Upon submit (if modal) or push of an action button, I'd like to receive the current state of all interactive components.
I have tried regular messages with both input and action blocks...also tried modals. I get a message from Slack for every individual change to an interactive object, but not the state of all objects at once. Since the receiver of the interaction payload is stateless, this makes it impossible for me to properly react to the message.
Am I missing something? Appreciate every bit of advice.

OK, error seems to be on my side. I was just looking at the action payload preview in the Slack Block Kit Builder. When actually posting a message I see the state of all elements in the response.

Related

custom FirebaseAdmin.Messaging.Message

I am going to send a notification through the admin panel and I searched to get the following code.
The problem here is that the data I pass has several fields, the notification has only 3 fields here. Do you have a way to add notification values?

Force GET_ONE request when navigating to Show page

As I believe is common in many APIs, ours returns a subset of fields for a record when it is part of a List request, and more details when it is a single-record request to its Show endpoint.
It seems that react-admin attempts to avoid doing a second request when loading a Show page (possibly re-using the record data from List?), which results in missing data. Refreshing the page fixes this, but I'm wondering if there is a setting that will force a GET_ONE request on every Show page load.
There are no setting for that. However, this should be achievable with a custom saga which would listen to LOCATION_CHANGE action (from react-redux-router) and dispatch a refreshView action (from react-admin) when the new location pathname ends with /show.
Edit: however this is very strange. We only use the data we already got from the list for optimistic display but we still request with a GET_ONE when navigating to a show page from the list. Do you have a codesandbox showing your issue?

Silent param not working for Update item field values

I'm using version 0.7.9 of the java client library for the Podio API. When sending a value of the true for the silent param, the item update is still displayed in the item's activity stream.
updateItemValues(item.getId(), valuesUpdates, bSilent, bHook)
According to the API documentation that should not be the case.
If set to true, the object will not be bumped up in the stream
and notifications will not be generated.
Default value: false
Question: Is there a way to update an item via the Podio API so that the change is not displayed in the item's activity stream?
Item's activity stream is the only place where all item's changes are shown and only place where you can see who changed what and when and revert those changes. So, no, there is no way to hide this.
Silent parameter works well. There are number of other places where item's changes are shown: notifications, workspace activity stream, home activity stream. And silent parameter is silencing those changes as designed.

Telegram Bot api custom keyboard additional data values

Is there any way to pass additional data values from custom keyboard layout buttons?
I need to pass a value like ID that they are hidden from user:
{"Button1",{"id":1}} ...
You cannot do it with custom keyboards, but it is possible with callback_data param of InlineKeyboard
When user will press inline button with callback_data specified message received by bot will be type of CallbackQuery with data param containing your data from the button.
That's not currently possible. It would be a great addition to the API, though, in order to separate the text you see from the value you send back to the bot.

Display error on actionProductUpdate hook execution

Is there any way to display an error message after actionProductUpdate hook is executed in a module?
Looking at the Prestashop code, the hook is triggered in AdminProductController, but the return value is not being processed. Also adding any message in passed Product object seems to be out of my requirement.
The purpose is to provide user with an error message in case of wrong input, database update error etc after clicking on Save button in back-office product edit page.
in belvg blog user Prestarocket post the the very helpful comment:
"Why not using hookActionProductSave ?
With this hook, you can add errors to the controller ($this->context->controller->errors[])"
Regards