MessageId Property

The Id of the message.

Syntax

ANSI (Cross Platform)
char* GetMessageId();
int SetMessageId(const char* lpszMessageId); Unicode (Windows) LPWSTR GetMessageId();
INT SetMessageId(LPCWSTR lpszMessageId);
@property (nonatomic,readwrite,assign,getter=messageId,setter=setMessageId:) NSString* messageId;
- (NSString*)messageId;
- (void)setMessageId:(NSString*)newMessageId;
#define PID_AS2SENDER_MESSAGEID 61

IPWORKSEDI_EXTERNAL void* IPWORKSEDI_CALL IPWorksEDI_AS2Sender_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_AS2Sender_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

The Id format is as in RFC 2822: id-left@id-right .

A unique Id will automatically be generated on startup. Sending a message will reset id-left if the MessageId has been used in the previous message.

If you set MessageId to a string of the form "@(id-right)" a unique id-left will be generated. If you set MessageId to an empty string, a new MessageId will be generated with the same id-right.

After an MDNReceipt is returned or set, MessageId will contain the Original-Message-ID found in the MDN Receipt.

This property is not available at design time.

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 C++ Edition - Version 20.0 [Build 8203]