Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
PostSendResult vs. PostDispatchMessage
sp_NewPost Add Reply sp_NewTopic Add Topic
June 22, 2020
11:52 am
Henk Helmantel
Admin
Forum Posts: 1518
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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

June 21, 2020
9:15 pm
GuestX
Guest
Guests

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.

Forum Timezone: Europe/Amsterdam

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 Helmantel

Administrators: Henk Helmantel: 1518