Expression Rule for iterating through Documents

Appian Community Team,

I need to have an Expression Rule that does the below:

Takes 2 Rule Inputs:

1. reviewID (Number data type)

2. file (Document Data type, this is Array holding list of documents)

I need to write an Expression rule that iterates through the Rule Input file and then outputs a list of Record Data ReviewDocument, this ReviewDocument record will have data points from both Rule Input reviewID and File.

Can you please advise on sample code for this.

  Discussion posts and replies are publicly visible