Processing Email attachment using REFramework

I have an automation that needs to read an Outlook folder. It retrieves the emails, one at a time to process them. I read the email in the GetTransactionData section of the Framework, via a Get Outlook Mail Messages. This works great(easy.) The issue I’m having is getting the attachment to move to the Process section of the framework.
my output from the Get Outlook Mail Messages is “inMessages”
List<System.Net.Mail.Messages>
1.) I have modified the New Transaction trigger to the following:
Condition: inMessages.Count > 0
here is the error message: VisualBasicValue: Object reference is not set to an
instance of an object

I have this process working in a Sequential workflow just fine.

So a little guidance will be helpful.

Sky

@Skyman1

When you are trying to pass Null value then we will get this kind of error.

I guess some where you didn’t pass arguments properly. Could you please check once and also run the process in debug mode and check it.

1 Like

Thank you for your response. I have verified all references and run it thru a debugger. Problem still exists.

However, if I use the standard TransactionItem as a string, At least I get thru this issue.

I was trying to modify the state between the Get Transaction and Process using an email item.

So thank you again. When I have more time, I’ll try to modify the framework for needs like this.

Cheers,

image007.jpg

1 Like

You can make in such a way where you can consider each email as a new transaction and instead of getting transaction queue you can loop through these emails where you saved them after reading. hope this helps.

Thanks for your reply. That is exactly what I am trying to accomplish… :blush:

image001.jpg