I have a Multipart message coming from a step with some Content-Ids given by sonic like 'name', etc... How can i set the content-id for the individual parts of
such a flowing multipart message?
Using the javascript file in a transformation servicetype below you can change the content-id's of the various message parts, see also knowledgebase entry S3175:
function rule(){
quantityParts = XQMessage.getPartCount();
// walk through all the message parts
for (counter = 0; counter
{
partobject = XQMessage.getPart(counter);
partobject.setContentId("myID" + counter);
// do not forget to save the changed message-part into the message
XQMessage.replacePart(partobject,counter);
}
return null;
}
Thanks a lot Serge!!!