Add Partner profiles with Flow Service

Hi everybody,

im currently working on a service to add a partner profile by an dsp site.

Works fine, if you want to add only one delivery method (e.g. only primary ftp), but if i want the service to add multiple delivery methods (e.g. primary and secondary ftp) it doesnt and returns some error messages.

Any ideas?

Hi guys,

found an solution…

You have to set the PrimaryAddr Object in the documentreference for delivery.

Following code returns the MBoolean type needed to set the Object (You cant set an Object out of an Flow Service):

[FONT=Courier New]import;[/font]

[FONT=Courier New]// pipeline
IDataCursor pipelineCursor     = pipeline.getCursor();
String PrimaryAddr         = IDataUtil.getString( pipelineCursor, "PrimaryAddr" );[/font]

[FONT=Courier New]int test2 = new Integer(PrimaryAddr).intValue(); 
MBoolean test = MBoolean.valueOf("true");[/font]

[FONT=Courier New]if(test2==1) {
    test = MBoolean.valueOf("true");
} else if(test2==0) {
    test = MBoolean.valueOf("false");

[FONT=Courier New]IDataUtil.put( pipelineCursor, "PrimaryAddr", test );

0 = Secondary Delivery (SecondaryFTP)
1 = Primary Delivery (PrimaryFTP)

Add these to a single Java Service and import as Step in your Flow Service, link the return/output value from this service to the PrimaryAddr Object in the pipeline of your flow.