Change a File Name in OneDrive

To change the name of a file in OneDrive, do the procedure in this topic.

Update File in OneDrive Configuration Screen



Prerequisites

Good to Know

  • You must specify the file or file ID to change the name of a file.
  • In most text fields, you can use process data variables as an alternative to literal data values.

How to Start

  1. On the Organizer, do one of these:
  2. Do one of these:
    • Add an activity:
      1. In the Process Builder, in the Activity Library, open the OneDrive tab.
      2. On the OneDrive tab, drag the Update File activity onto your process.
    • Change an activity:
      1. In your process, double-click your activity.
  3. Click Update File .

Procedure

  1. On Update File in OneDrive Configuration screen, in the OneDrive field, select your OneDrive access token.

    To create a new access token, click Add Token . For more information, refer to New OneDrive Access Token.

  2. Complete these fields as necessary.
    Field Name Definition

    File ID

    Function:
    Specifies the OneDrive file. The activity uses this file ID when the process runs.
    Accepted Values:
    • Choose File Path - Specifies an absolute path for the file.
    • Dynamic File ID - Specifies a process variable that stores the ID of file.
    Default Value:
    Choose File Path
    Accepts Process Data Variables:
    No

    File Name

    Function:
    Specifies the new name of the file.
    Accepted Values:
    One line of text that can have spaces.
    Default Value:
    None
    Accepts Process Data Variables:
    Yes

    Store the Response in Custom Attribute or Schema - Description

    Function:
    Specifies an optional description for your file or folder.
    Accepted Values:
    More than one line of text.
    Default Value:
    None
    Accepts Process Data Variables:
    Yes
  3. (Optional) To connect the response to a process data variable, complete this field as necessary.
    Field Name Definition

    Store the Response in Custom Attribute

    Function:
    Specifies the process data variable that stores the ID of the changed file.

    The file ID comes from OneDrive.

    Accepted Values:
    A process data variable.
    Default Value:
    None
    Accepts Process Data Variables:
    Yes