Convert Attachment Data to Image
Hello. I have a workflow that creates a new feature with the ability to add a layer attachment and then sends an email. I've read some useful articles to add attachments to an email but it seems they were all from image captures (export map activity) in the workflow. Is there a way to convert an Attachment Result from the Add Attachment Activity into an image, byte or collection in order to add in the email? I have tried a few activites already but keep getting a type conversion failure. Thanks.
0
-
Hi Brian,
I took a look at the api reference for the Attachment Result object. The image data isn't actually contained in that result object. It just contains the objectid and globalid of the attachment, and a "success" property that indicates if the addition was successful. Which property is supplying the attachment file for the AddAttachment activity? You might be able to use that variable to get what you need.
Otherwise, there's always the option of using those id properties to construct the url for the attachment on ArcGIS Server and then download it from there in the workflow
Thanks!
-Amanda0 -
Thanks Amanda. I'll look into contructing the download url for the attachment. I've recently been able to succesfully add reports attached into an email so will try and download the image and then use similar logic to finish this project.
I do have a more pressing post i submitted yesterday if you have any time.0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare