K2 5.1 Workflow Loop

  • 11 October 2018
  • 8 replies
  • 12 views

Badge +7

When running a loop in a workflow,   I have set up a reference and then in the loop created an item for the reference.

 

However any data I read from the item is just a huge combination of all list items, instead of just a single record.

 

 


8 replies

Userlevel 5
Badge +13

I think we will need some more info... like how you set up the loop and the data fields, and what you are trying to do with the fields within the loop.

Userlevel 6
Badge +16

Hi,


 


I'm guessing the data coming back from item reference is in an array similar to this one 'item1item2item3item4'.


Maybe the below links might help.


https://help.k2.com/kb002121


https://help.k2.com/onlinehelp/k2five/userguide/5.1/default.htm#K2-Workflow-Designer/Use/Toolbox/Logic/Loop/Loop.htm


 

Badge +7

What I have is a WCF service that returns a List of DTO's.

I create the reference and then loop through the results to update Statuses, using BankReference as an Identifer.

 

I feel like I've done everything by the book.

 

Ok, after running checking, it seems like the List is all being dumped into one record and not creating a list at all.

 

 

Badge +7

Badge +7

This is driving me insane.  I have the 'Key' setup in the smart object and have used it as the Identifier.   

 

I have no explaination why it just keeps concatonating the list.

Badge +7

The List  method accepts a Date as the input to get results.

 

It should returns a list of Bank References which will ALL be unique.   Why can't K2 five loop through those using the Bank Reference?

 

I've read the help files for the Sharepoint workaround etc etc, and its clear as mud. Help@

Did you ever get this figured out? 

 

I'm having a similar issue where I get a list of data items (coming from WCF service returning an array of objects) but each item has the ENTIRE list concatenated together.  I have been banging on it for 2 days and still no progress.

In case anyone else runs into this, I did find the solution.

 

After going through support, I was directed to the following workaround.  Basically, you need call the web service from inside a Join function to create a delimited string.  The loop can iterate the string.

 

https://help.k2.com/support-services/kbt138442

 

To vote up a proper fix to this issue:  https://ideas.k2.com/ideas/APIT-I-624

 

Cheers!

 

Reply