activities
latest
false
  • Release Notes
      • June 2024
      • May 2024
      • January 2024
  • Overview
  • Uploading data to Communications Mining
  • Using the Dispatcher Framework
  • Activities reference
UiPath logo, featuring letters U and I in white
Communications Mining Activities
Last updated Oct 11, 2024

Upload historic Gmail emails with Studio Desktop

  1. Make sure you have already configured your connection to Gmail in Integration Service.
  2. Make sure you have already set up your target source within Communications Mining.
  1. Add a For Each Email Gmail activity
    Add the For Each Email Gmail activity to a new process, configure the activity to use your existing connection, and add any preferred filters.


  2. Add a Create Record activity
    Within the body of your For Each Email activity, add the Communications Mining Create Record activity.


  3. Provide your field mapping
    Within the Create Record activity, map each of your fields on the activity. Find additional fields in the properties panel. Save the output in a variable called CurrentRecord.
    Note: When creating a record based on email data:
    • The Record ID should be the MIME Internet Message ID
    • The Thread ID should be the content of the References header on the email
    • You may need to map a list of recipient email addresses to a semi colon-separated string as shown in the following image.




  4. Provide your user properties
    Expand the User-defined properties section and provide any user properties that you want to associate with your communication.


  5. Create a list to store your Record in for later
    Create a new variable called RecordList and give it the type List<Record>. This variable should have a default value of an empty list.


  6. Append your Current Record to your Record List
    Add an Append Item to List activity to your process and append the CurrentRecord to your RecordList.
    Note: The Append Item to List activity must have the type argument Record. You can set this in the properties panel.


  7. Add an Upload Record(s) activity
    After the For Each Email activity, add a Communications Mining Upload Record(s) activity.


    Note:

    Communications Mining does

    the upload after each loop to make this process as quickly as possible.
  8. Configure Upload Record
    Select the project and source for your target source and enter the record that was created in the Create Record step into the Record field.


  9. Run and test your process
    Your process should now be uploading new emails received into Gmail and upload them into Communications Mining.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.