on 02-27-2023 12:41 PM
Hi Varun,
Please see the below code.
import com.sap.gateway.ip.core.customdev.util.Message;
def Message processData(Message message) {
def messageLog = messageLogFactory.getMessageLog(message);
if(messageLog != null){
def QAuthorization = message.getHeaders().get("QAuthorization");
if(QAuthorization!=null){
messageLog.addAttachmentAsString(“QAuthorization”, QAuthorization, “text/plain”);
}
return message;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.