Articles → UiPath → File Change Trigger Activity In Uipath

File Change Trigger Activity In Uipath






Purpose





ChangeType and NotifyFilters attribute in File Change Trigger




Picture showing different values of the ChangeType attribute in File Change Trigger

Click to Enlarge



Picture showing different values of the NotifyFilters attribute in File Change Trigger

Click to Enlarge


Example




  1. Drag and drop the "Trigger Scope" activity on the designer screen.
  2. In the "Triggers" section of the "Trigger Scope" activity, drag and drop the "File Change Trigger".
  3. Picture showing the File Change Trigger activity on the designer pane

    Click to Enlarge

  4. Specify the path and file name inside in the "File Change Trigger" activity.
  5. Specify the "ChangeType" and "NotifyFilters" attribute of the "File Change Trigger".
  6. Picture showing setting the value of ChangeType and NotifyFilters attribute

    Click to Enlarge

  7. Inside the "Actions" section of the "Trigger Scope" activity, specify the action. For this example, we are displaying the message box.
  8. Picture showing displaying the message in the messagebox when the size of the text file changes

    Click to Enlarge

  9. Save the file and run the bot.

Output




Picture showing the message box when size of the file changes

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Monday, January 11, 2021

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250