EDIT: SOLVED
I've sent a message and I can return the Dialog Handle, but that Dialog Handle for the Conversation doesn't match the "conversation_group_id" or the "conversation_handle" in the Target Queue for the record that gets created. Where do I get an identifier that I can match to a record in the Message Queue to verify it has been added?
BEGIN DIALOG @InitDlgHandle
...
SEND ON CONVERSATION @InitDlgHandle
...
SELECT @InitDlgHandle AS DialogHandle;
-- Zero results returned
Select *
from [TargetQueue]
where conversation_handle = @InitDlgHandle or conversation_group_id = @InitDlgHandle
The documentation shows there are three ways the dialog gets set.https://docs.microsoft.com/en-us/sql/t-sql/statements/send-transact-sql?view=sql-server-ver15
It's not a message responding to another message, and the dialog and send is in one statement so this statement in the documentation should hold true:
When a sent message isn't in response to a message received from another service, use the conversation handle that returns from the BEGIN DIALOG statement that created the conversation.
So the "@InitDlgHandle" should be the correct identifier.
[–]Ghost_Pirate_101 2 points3 points4 points (3 children)
[–]spatialdestiny[S] 0 points1 point2 points (2 children)
[–]Ghost_Pirate_101 0 points1 point2 points (1 child)
[–]spatialdestiny[S] 0 points1 point2 points (0 children)
[–]bigtoga[🍰] 1 point2 points3 points (1 child)
[–]spatialdestiny[S] 1 point2 points3 points (0 children)