Support forum
Hello,
The 'PostDispatchMessage' and 'PostSendResult' cannot be used together in the script, only one of the methods should be used to handle the message. The 'PostDispatchMessage' is used when you want to assign the message to another gateway (or multiple gateways) and the 'PostSendResult'is used to set the status of the message after the script has sent the message or failed to send the message.
If you need to set the status of the message and also assign it to another gateway, you could use the HTTP API of a Web Connector, call the 'send-message' HTTP API call from the script and then call 'PostSendResult' to set the status of the message. The end result is two messages, one with the status that you have set in the script and one with the send status of the gateway that handled the message from the HTTP API.
Regards, Henk
9:15 pm
Hello,
When we make a C# script, and when we send messages using PostDispatchMessage and PostSendResult about half of messages remain stuck in the queue. If we use PostDispatchMessage everything is fine, but we need PostSendResult as well, as we need to set some custom Status Codes.
Most Users Ever Online: 529
Currently Online:
6 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 681
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1160
Posts: 3962
Newest Members:
, Henk HelmantelAdministrators: Henk Helmantel: 1518