Message.TransactionId Property (System.Messaging) (2024)

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

public: property System::String ^ TransactionId { System::String ^ get(); };
[System.Messaging.MessagingDescription("MsgTransactionId")]public string TransactionId { get; }
[<System.Messaging.MessagingDescription("MsgTransactionId")>]member this.TransactionId : string
Public ReadOnly Property TransactionId As String

Property Value

The identifier for the transaction associated with the message.

Attributes

Exceptions

The message has not been sent. This property can only be read on messages retrieved from a queue.

-or-

The message queue is filtered to ignore the TransactionId property.

Examples

The following code example displays the value of a message's TransactionId property.

Remarks

Receiving applications use the TransactionId property to verify that a message was sent as part of a specific transaction. The transaction identifier contains the identifier of the sending computer (first 16 bits) followed by a 4-byte transaction sequence number.

This property is available only for Message Queuing version 2.0 and later.

Transaction identifiers are not guaranteed to be unique, because transaction sequence numbers are not persistent, and they start over again at 2 20. Message Queuing guarantees only that subsequent transactions will have different transaction sequence numbers.

You can use the TransactionId property along with the IsFirstInTransaction and IsLastInTransaction properties to verify transaction boundaries.

Applies to

See also

Message.TransactionId Property (System.Messaging) (2024)

FAQs

What is the transaction ID in a message? ›

Receiving applications use the TransactionId property to verify that a message was sent as part of a specific transaction. The transaction identifier contains the identifier of the sending computer (first 16 bits) followed by a 4-byte transaction sequence number.

What is a transaction message? ›

Transactional messaging is a type of automated communication typically delivered in real-time to a customer via email or SMS in response to an action they have taken, such as signing up for a service or making a purchase.

How to trace a transaction ID? ›

The most common place to find your T-ID is within an email confirmation receipt sent after completing a purchase. It also may appear on the confirmation page once you have successfully completed an order. If you're a merchant, your transaction records should offer the same information.

Can you look up a transaction ID? ›

Transaction IDs are often easily located on a receipt or invoice near other essential transaction data like the merchant name, billing address, date of purchase, and order number. Computers use them to sort relevant information tied to a transaction.

What is an example of a transactional SMS? ›

Unlike promotional SMS, which focuses on marketing and sales, transactional SMS enables timely and critical updates and action. Here are some examples: A brand can send an SMS with a one-time password (OTP) to authenticate a user's identity as they're logging into their account.

What is a transactional notification? ›

Unlike marketing notifications, which are usually meant to persuade customers to purchase a product or engage with a site in other ways, transactional notifications are related to existing orders (e.g., delivery notices) or to customer-company relations (like updates on service terms).

What is the transaction number used for? ›

Transaction numbers serve as proof of transaction, confirming that a specific financial transaction occurred. Customers are frequently sent receipts or confirmation emails as proof of their participation in a transaction.

What is the example of transaction ID? ›

A transaction ID is a series of letters and numbers—an “alphanumeric string” in technical terms—that's 10 to 30 characters long. Each one is generated based on the user's location, the current date, and the offer ID. Some example transaction IDs are 10220766184662150818 and 102656693ac3ca6e0cdafbfe89ab99.

What is the 7 digit transaction ID? ›

MMID Code is short for Mobile Money Identifier. It is usually a 7-digit number that is allotted to a customer holding a bank account. Whenever a user makes an attempt to send or receive money using IMPS method of payments using the mobile number, this code is brought into use.

Is transaction ID same for sender and receiver? ›

The transaction ID shown to the buyer does not match the transaction ID sent to the seller. For example, if you sell something, your seller transaction ID will be different then your buyer's.

What is a 12 digit transaction ID? ›

The UPI Reference Number is another phrase used in connection with UPI transactions. The UPI Reference Number is a 12-digit reference number unique to each transaction. It is produced for each transaction and helps consumers track their purchases.

Top Articles
Latest Posts
Article information

Author: Neely Ledner

Last Updated:

Views: 6256

Rating: 4.1 / 5 (42 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Neely Ledner

Birthday: 1998-06-09

Address: 443 Barrows Terrace, New Jodyberg, CO 57462-5329

Phone: +2433516856029

Job: Central Legal Facilitator

Hobby: Backpacking, Jogging, Magic, Driving, Macrame, Embroidery, Foraging

Introduction: My name is Neely Ledner, I am a bright, determined, beautiful, adventurous, adventurous, spotless, calm person who loves writing and wants to share my knowledge and understanding with you.