The InvocableMethod docs say this about the iconName
modifier:
The name of the icon to use as a custom icon for the action in the Flow Builder canvas. You can specify an SVG file that you uploaded as a static resource or a Salesforce Lightning Design System standard icon.
But there are no examples of its use. I checked a few GitHub repos and didn't find any examples there, either. I tried:
@InvocableMethod(label='Get Territory Member'
description='Finds the contractor assigned to a Location'
iconName='action:map')
But get the error Annotation property, the format of iconName on InvocableMethod is invalid, please check if the iconName has the correct formats
when saving. I tried other SLDS icon collections & names, to no avail. I'm primarily interested in the syntax for SLDS icons, but if someone knows the static resource syntax also, that'd be great.