How to process single data from array. | Community
Skip to main content
New Participant
November 14, 2024
Question

How to process single data from array.

  • November 14, 2024
  • 1 reply
  • 520 views

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.

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Sven-iX
New Participant
November 19, 2024

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.