I have five attribute rules on a feature service layer. Each one is supposed to update a "<field>LastEdit" attribute. Where I have five fields [JobStatus, WorkOrder, EstCompletionDate, DueDate, Dispatch] and their respective trackers [JobStatusLastEdit, WorkOrderLastEdit, EstCompletionDateLastEdit, DueDateLastEdit, DispatchLastEdit].
Each rule looks like:
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN>$originalFeature<SPAN class="punctuation token">.</SPAN>JobStatus <SPAN class="operator token">==</SPAN> $feature<SPAN class="punctuation token">.</SPAN>JobStatus<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">return</SPAN> $feature<SPAN class="punctuation token">.</SPAN>JobStatusLastEdit
<SPAN class="punctuation token">}</SPAN> <SPAN class="keyword token">else</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">return</SPAN> <SPAN class="token function">Now</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="punctuation token">}</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>When in Pro, I can edit all five fields and save my changes and each respective LastEdit field will be updated.
When in a Portal map, I edit all five fields and only the last field to be edited gets it's LastEdit field updated (I've tried every combination).
Using Fiddler, I noticed that EACH Portal update sends a REST post for applyEdits individually while Pro sends a REST post for updates all at once. I can't figure out why the applyEdits Post from Portal map isn't triggering all the rules. Is there something I need to do with versioning or another configuration I missed before deploying the FS?