How do I remove a document from an array using the apply looping function? eg I

How do I remove a document from an array using the apply looping function? eg I have an array of documents (document data type) {Doc1, doc2, doc3, doc4, doc5}.

What function should I use with the apply function should I use if I want to remove doc2 from the array?

These docs will not always be in the same order. Some will not even exist in the array dependant on when the user fires the quick task....

OriginalPostID-85380

OriginalPostID-85380

  Discussion posts and replies are publicly visible

Parents
  • you can write your own custom rule applying the business logic to remove the document (pass the document as input). this custom rule can return the document as is if should not be remove and returns a null if to be removed. Then use reject() function to remove nulls. so a combination of reject(), isnull(), apply( your own custom rule) all in one single expression will solve your problem.
Reply
  • you can write your own custom rule applying the business logic to remove the document (pass the document as input). this custom rule can return the document as is if should not be remove and returns a null if to be removed. Then use reject() function to remove nulls. so a combination of reject(), isnull(), apply( your own custom rule) all in one single expression will solve your problem.
Children
No Data