Unable to send SNS with MessageAttribute in InvokingBindingAsync()
We need to send sns notification with message attribute also on daprClient.InvokingBindingAsync(), to filter sns message based on message attribute filter policy subscription. could you please help.
Could you please confirm message attribute added on daprClient.InvokingBindingAsync() method Request. Like this Request: request.MessageAttributes.Add( "SNSType", new MessageAttributeValue() { Type = "String", Value = "SNS" });
Response: For the Subscription filter policy. Like this on AWS { "SNSType": [ "Type ":"String" "Value":" SNS" ] }
Could you please update asap. Thanks
The InvokeBinding call just takes your provided object/data (serialized to json if an object) and sends it to the component. So if you're encoding that into your request object, it should be fine.
If you're asking if the BindingRequest object has a MessageAttributes field. It does not. Bindings are generic and we don't have anything tech specific in the object.
@SPrabaga - Do you need anything else here?
I'm going to close this issue, feel free to reopen if you need more help.