Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

Changing Created By (Author) in SharePoint List At time of adding a task through Copilot studio (Power Virtual agent)

(0) ShareShare
ReportReport
Posted on by 28

Hi,

 

I have created a chatbot in Copilot studio. This chatbot takes information from user and add it on Sharepoint list. While testing, I figured out that the default created by column shows my name instead of the user who has added a request through chatbot. Could you please guide me how can I change "Created By" (Author) column on sharepoint list at time of creating task? 

 

After creating task, there is no point of changing the created by details as I won't have the requestor's details. Please guide.

 

Thank you

Categories:
  • Expiscornovus Profile Picture
    31,709 Most Valuable Professional on at
    Re: Changing Created By (Author) in SharePoint List At time of adding a task through Copilot studio (Power Virtual agent)

    Hi @Sharmilshah,

     

    A topic should have system variables like User.PrincipalName. You can use that to feed into your flow. After that you can use that principal name to set the author field with a HTTP request.

     

    Below is an example

     

    1. The User.PrincipalName system variable

     

    systemvariable.png

    2. A flow which uses a ValidateUpdateListItem method to update the Author value to the principal name of the user who interacts with the Copilot of the item just created. Based on this article:

    https://elliskarim.com/2022/09/13/how-to-easily-change-the-creator-or-editor-of-a-sharepoint-file-or-item-using-power-automate/

     

    URI

    _api/web/lists/GetByTitle('@{variables('ListName')}')/items(@{outputs('Create_item')?['body/ID']})/validateUpdateListItem

     

    Body

    {
     "formValues": [
     {
     "FieldName": "Author",
     "FieldValue": "[{'Key':'i:0#.f|membership|@{triggerBody()['text']}'}]"
     }
     ],
     "bNewDocumentUpdate": true
    }

     

    upn_flow.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 23

#2
Pablo Roldan Profile Picture

Pablo Roldan 21

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard