Thanks, I am changing the mxml, but the issue for me is the fields that were nicely specified in Robert's older example since the tool only worked on one service, the layer and its fields could be contained in the XML tags.
Now, we have a layer.id that is giving a service to use and the layerIds = [0,1] for the layers in the map, but I don't get to say which fields. Of course its just so I don't have to disable fields in the layers of the service itself. I suppose I need one more parameter. Or am I confused?