Here is the scenario.
I have a list called submitted.
Now I want to copy any object, suppose I want to copy 1st index object.
How can I achieve this?
Here is the scenario.
I have a list called submitted.
Now I want to copy any object, suppose I want to copy 1st index object.
Hi @Neeraj_Kumar ,
Thanks for raising the question.
Currently, there is a limitation in vDesigner regarding native paths—you cannot directly pick and copy a specific object using a path. However, there is a workaround for this. You can achieve it by creating a JavaScript function that extracts the desired object. Here’s an example:
function getItemByIndexStringified(list, index) {
// Validate the input to ensure it’s a valid list and index
if (index < 0 || index >= list.length) {
console.error(“Index out of bounds.”);
return null;
}
// Retrieve and stringify the item
return JSON.stringify(list[index]);
}
invokeFunction
Task:invokeFunction
task to call this JavaScript function.outputLocation
:outputLocation
property to store the function’s output and consume it wherever needed.connect with @Ritik_Dixit for further help.