How can i leverage the System.Activity.Attachments Variable
Now there are more easy way :)
Attachments is a table. Everything is about knowing how to write formula for a table. if not you could use "first()" function to get the first attachment (often there is only one)
in preview we have the "loop" componnent to make "loop" on all the attachment : the real way to work with a table of attachment :)
a preview feature about "reading image" is possible to be activated in you r agent now :)
if you cannot wait for all the preview you have to the hard way and use AI like Azure Vision or AI Builder.
BUT : just look closer at the home page of you agent creation :) you have the "document processing agent" in coming soon preview; ) what is the idea behind that ?
Soon you will have the "multi agent" option : so you will use multi agent with a prompt to catch the attachment, analyse it and send back info to you without code :)
sorry to not give an easy immediat answer, just a wait :)
if it help, please check the answer is the good one, it's important :)