Sharepoint Button that runs a script

Arber Haliti 0 Reputation points
2023-03-22T11:44:04.63+00:00

Hello everyone,

I want to create a button on my sharepoint page.

The task of this button should be if clicked on.

  1. Get the users information. (email and name)
  2. update an Excel sheet with the user information
  3. Send a confirmation E-Mail to the user

Now I'm familiar with programming I can program in python, is there a way to create a button that does the above things.

Can I embed Python code or maybe javascript code that does that.

Thank you for your help.

Kind Regards

Arber

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,897 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 34,741 Reputation points Microsoft Vendor
    2023-03-23T05:41:18.76+00:00

    Hi @Arber Haliti

    I will recommend you to use spfx to reach your requirement. You can refer to the following document to learn how to deploy a spfx webpart in sharepoint

    https://learn.microsoft.com/en-us/sharepoint/dev/spfx/sharepoint-framework-overview

    Then you can use the following spfx to add three workflow

    https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-flow-button


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.