Expand my Community achievements bar.

The Community Ideas review for H1 2025 is out now, see which ideas our Product team prioritized and let us know your thoughts.

How to process single data from array.

Avatar

Level 2

I have a scenario where we are creating tasks using custom api module of Workfront. I'm adding a suffix for example manual task - "value"  to task name. The suffix is added based on the iterator's value. We have a array of suffix's which we are iterating and passing the value in custom api call module and task is getting created with suffix names.

 

When I try to add for 3 suffix, 3 task are getting created. But when i add a new suffix instead of creating one/new task with the new suffix, the tasks are getting duplicated its taking earlier 3 suffix and also taking the new suffix.  Attached the screenshot for reference.

 

DestPr_0-1731572551894.png

DestPr_1-1731572638356.pngDestPr_2-1731572668726.png

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Community Advisor

Hello @DestPr 

When I try to add for 3 suffix, 3 task are getting created. But when i add a new suffix instead of creating one/new task with the new suffix, the tasks are getting duplicated its taking earlier 3 suffix and also taking the new suffix.  .


How/where are you adding the new suffix? 

From your screenshots I can't tell what the iterator is iterating over. 

But in general if you follow this approach then there won't be doubling up of suffixes: First set a variable, e.g. comma-separated suffixes; iterate over the array you get when splitting the comma-separated string ( split( {variableName} ; ,) ). at that point you will only ever have ONE suffix to append.

SveniX_0-1732026618668.png