Smart Action availability on condition

Hello,

I would like to have a smart action only on some records on my collection, depending on record content.
I did not found how to do that.

I know how to customise smart action according to record content, but I want to make action availability conditioned by record content.

Could you help me ?

David

Hello @dscreve,

Thanks for reaching out :raised_hands:

The solution here is to create a segment that match the records that are eligible for that smart action.
Then, you can restrict this smart action to this segment.The smart action then will be available only through that segment list or directly on the given records (if they match the segment condition).

Does it help?
Let me know!

Cheers.

1 Like

Hello,

This does not helps me because I want to do this by code while adding the action to collection.

Regards,

David

Hello @dscreve,

You can choose to treat the records differently in your smart action code (and either send a success or an error message for instance).
However, for the UI action availability, it can be only done the way I told you.

Cheers.