Post String Message
  • 05 Jan 2023
  • 1 Minute to read
  • Dark
    Light

Post String Message

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version7.12.0
LocationIntegration > Message Queues

Similar to the Post Message step, this step allows a string to be sent to a message queue, avoiding the need to encode the string before sending the message.


Inputs

PropertyDescriptionData Type
Always Override ID (Even if Null or Empty)If enabled, the sent message ID will always be overwritten, even if no value is sent.Boolean
Message BodyThe body of the message. The message body will be a sting sent to the queueString
Override Message IdThe defined value used when overriding the message IDString

Outputs

PropertyDescriptionData Type
Message IdThe message ID returned for tracking purposes in the queue---

Settings

PropertyDescriptionData Type
Queue NameThe name of the selected QueueString
Get Queue From FlowRetrieves the queue name from the Flow.String

Example Inputs and Outputs

Always Override Id (Even if Null or Empty)Message TextOverride Message IdOutput
FalseHello, World!FalseMessage Id: 08dadf96-196b-42aa-c360-f149cc047f0d
FalseHello, World!
New Test IDMessage Id: New Test ID
TrueHello, World!
NULLMessage Id: NULL


Common Errors

Missing Queue selection

If a message queue is not selected under the SETTINGS category for the step, the step will throw an error. Ensure that a queue has been selected before running the step.

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Post String Message 1[PostStringMessage] in flow [Testing]: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at DecisionsFramework.Data.Messaging.MessageServerEndpoint.GetQueueByName(String queueName)
   at DecisionsFramework.Data.Messaging.MessagingService.GetQueueByName(String queueName)
   at DecisionsFramework.Data.Messaging.BaseMessagingStep.GetQueue(StepStartData stepData)
   at DecisionsFramework.Data.Messaging.PostStringMessage.Run(StepStartData data)
   at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData)
   at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) 
   --- End of inner exception stack trace ---

 


Related Information

Forum Posts:


Was this article helpful?

What's Next