on 08-17-2010 3:50 PM
Hello,
Scenario : Proxy --->> Email with attachement(Text)
I am sending the multiple records from proxy into the Email adapter where filename is dynamic and Receipient is also dynamic.
So i have used the following blog. to achieve this funcitonality.
http://wiki.sdn.sap.com/wiki/display/SI/DynamicEmailAttachmentnameforReceivedMails
But now the problem is whatever we map with content field it takes only one record instead of all records.
Can you please help in this case. how to get all the records in attachement.
Hi,
this looks more like a mapping problem. Please check your (message) mapping and test to assure it takes all records. Assumedly the imput parameter of your udf which represents the records has the wrong occurance (execution type shouldnt be "Single Values"), may be your source field has the wrong context.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jignesh,
You can create a context UDF as:
public void createContent(String[] a,ResultList result,Container container){
String str="":
for(int i=0;i<a.length;i++)
{
if(i==(a.length-1))
str=str+a<i>;
else
str=stra<i>"\n";
}
result.addValue(str);
In str=str+ statements,its a with index i ,instead of only a as it is changed after posting .
Use this UDF between your source and target field.
This would create all records.
Please let us know if this works for you.
Thanks.
Regards,
Shweta
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.