Sharepoint 2019 CRUD FORMS

nellie 126 Reputation points
2022-04-11T19:43:10.843+00:00

Really confused on development of new sp2019.
I have been doing sp development using Visual Studio to create fields.xml , contentype.xml , crud forms , list definition.xml for views using caml, then I create an event receiver to listen to the lists for workflow.I use sp server-side API to manipulate data
Now with the new sp2019 can i still do this and its acceptable in today modern design e.g spfx ??
But this spfx is for web parts but I want to create an full app with views,custom forms.
I cannot use PowerApps or sharepoint designer

Thanks

Microsoft 365 and Office SharePoint Development
Developer technologies C#
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2022-04-11T21:31:28.53+00:00

    there are two modes for creating a Sharepoint 2019 applications (crud forms)

    1) external site that uses the Sharepoint rest api. You can write in any language you want, and the server code uses the Sharepoint rest (client) api to do updates. You add a link to your site on a Sharepoint page. Using oauth you can share authentication.

    2) a Sharepoint web part. this is a html/javascript component hosted by an actual Sharepoint page. this the replacement for old Sharepoint server applications. there is a js client library that matches the old server api features (access lists, etc). these are developed with node and the IDE of choice.

    https://learn.microsoft.com/en-us/visualstudio/sharepoint/how-to-create-a-sharepoint-web-part?view=vs-2022


  2. Tong Zhang_MSFT 9,251 Reputation points
    2022-04-12T06:41:26.45+00:00

    Hi @nellie ,
    Per my research and test, you can do CURD in SharePoint 2019 using REST API.

    Here are some documents about how to work with the REST API, you can refer to. Hope it can help you. Thank you for your understanding and support.

    Reference:

    https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service?tabs=csom
    https://www.spguides.com/sharepoint-rest-api/

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    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.



  3. nellie 126 Reputation points
    2022-04-12T10:52:36.44+00:00

    hi yes but I have to generate views but what I want is to create the following

    • fields.xml
    • Lists with views
    • when a user goes into a view and clicks on title it will take me to a custom form
    • if you can do it on spd and power apps surely .net can do this
      can I still use XML , create forms in _layouts , create server pages like the good old days ????
    0 comments No comments

  4. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2022-04-12T18:24:35.21+00:00

    Modern sharepoint lists do not support custom server pages. if the Sharepoint admin allows classic mode, then you can use the classic features you know, but only for classic mode pages.

    you might want to look at the starter kit for devs to see what is doable with the modern lists

    https://github.com/pnp/sp-starter-kit

    there is a simple form example:

    https://github.com/pnp/sp-starter-kit/blob/master/documentation/components/ext-collab-discussnow.md

    note: the start kit examples use the official Office UI Fabric React components for the UI

    https://learn.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/use-fabric-react-components

    note 2: the power apps UI is also written in react.

    0 comments No comments

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.