Community Chat

 View Only
last person joined: 2 days ago 

A space for discussion around the Community site and programs.

  • 1.  Outlook VBO

    Posted 07-04-2023 00:46

    Hi everyone,

    Can anyone suggest how to get particular number of mails when we have thousands of mails?

    Suppose I have 20000 mails in folder, I want to fetch only 100 or 200 mails from the folder.

    Please suggest.

    Thank you.



    ------------------------------
    sravya chintham
    ------------------------------


  • 2.  RE: Outlook VBO

    Posted 07-04-2023 05:25

    Hi Sravya,

    Instead of getting recent 100 emails you may retrieve emails for a day, few days, week and etc. So, you can process items in bunch.

    You can use this action of the vbo



    ------------------------------
    Shashank Kumar
    DX Integrations Partner Consultant
    Blue Prism
    Singapore
    +6581326707
    ------------------------------



  • 3.  RE: Outlook VBO

    Posted 07-04-2023 06:22

    Hi Shashank,

    There are 6 months of backlog emails in our inbox folder. Its approximately 30k mails, we want to process them in order newest to oldest. 

    Putting date is bit of a challenge as we have mails from last 6 months.

    Is there any possibility to read initial 500 emails from the stack? 

    Thank you.



    ------------------------------
    sravya chintham
    ------------------------------



  • 4.  RE: Outlook VBO

    Posted 07-04-2023 06:49

    Hi Sravya,

    I couldn't find an option in Microsoft's documentation to only retrieve X number of emails. Here's the url 

    https://learn.microsoft.com/en-us/office/vba/api/Outlook.Items.Restrict 

    Based on the filter that you want to use, you can restrict the number of emails returned. Then you may do collection manipulation or code stage to limit the number of mails you process out of it. 

    But note that you will have to keep a track of the emails that you have already processed either by moving it to some other folder or some other way so that you don't process it again.

    Instead of this if you read your mailbox based on a date range it might be easier as you won't have to move mails or worry about duplicate processing of emails.



    ------------------------------
    Shashank Kumar
    DX Integrations Partner Consultant
    Blue Prism
    Singapore
    +6581326707
    ------------------------------



  • 5.  RE: Outlook VBO

    Posted 07-05-2023 06:46

    I agree with Shashank Kumar once you get all emails in the collection then filter it by your count that would be the easiest option here.

    Let's say you got 20k emails in the collection then only process 500 from the collection before performing the next task.

    <quillbot-extension-portal></quillbot-extension-portal>



    ------------------------------
    If I was of assistance, please vote for it to be the "Best Answer".

    Thanks & Regards,
    Tejaskumar Darji - https://www.linkedin.com/in/tejaskumardarji/
    Technical Lead
    ------------------------------



  • 6.  RE: Outlook VBO

    Posted 09-19-2023 13:44

    Hi Did you found a solution for your issue, i'd like to know how you resolved this 



    ------------------------------
    Cemile Demirci
    Robotics Proces Developer
    Alliander
    Europe/London
    ------------------------------



  • 7.  RE: Outlook VBO

    Posted 07-05-2023 13:22

    Hi Sravya

    Couldn't you use Power Automate to do this?  PA has lots of weaknesses in RPA but dealing wiht the Microsoft stack is its strength.  Then you can trigger any Blue prism process you want. 

    Good Luck

    Homan

    PS - I don't work for Microsoft!  Just a humble opinion.  



    ------------------------------
    HOMAN HAGHIGHI
    ------------------------------



Welcome to our 'Off-Topic' Community Chat!

A space for non-technical chat, tips for using the Community, and news from the Blue Prism Community Team.

This is not a Community for technical or Product related discussion. For a list of available communities, please visit our site map.

Introduce YourselfCommunity Tech TipsMeet The Team