Removing deleted docs from a process variable

Hi,
Do you have any idea how to remove all of the documents from a process variable that were previously physically deleted?
The deleted documents in the documents process variable (multiple) are shown as random numbers (for e.q. "85385235"...)
Please help me remove them and leave only the documents that are still valid (not deleted). Using Appian functions (not other plugins/smart services) is preferred.
Thank you in advanced...

OriginalPostID-245303

  Discussion posts and replies are publicly visible

Parents
  • If you have 2 arrays (both of document type) where array1 contains all doc IDs (whether they were previously deleted or not) and array2 that contains ONLY deleted docs, couldn't you just do use this code?

    remove(ri!array1, wherecontains(ri!array2, ri!array1))

    You can either replace the result into array1 (if you're using it to finalize what docs should be saved) or save the result into another variable & use it for further processing.
Reply
  • If you have 2 arrays (both of document type) where array1 contains all doc IDs (whether they were previously deleted or not) and array2 that contains ONLY deleted docs, couldn't you just do use this code?

    remove(ri!array1, wherecontains(ri!array2, ri!array1))

    You can either replace the result into array1 (if you're using it to finalize what docs should be saved) or save the result into another variable & use it for further processing.
Children
No Data