Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

AddSPItem() unable to add data to sharepoint listΒ #2809

@srinubhumadi

Description

@srinubhumadi

While adding the data to SharePoint List only alert is displaying as Added.But the data is not added to the SharePoint list.
There are no relevant console errors also.
Can anyone please suggest if any known isssue.


AddSPItem()
{

  pnp.sp.web.lists.getByTitle('profileList').items.add({        
    ProfileName : document.getElementById('ProfileName')["value"],    
    ProfileJob : document.getElementById('ProfileJob')["value"]  
     
 });

alert("Record with Profile Name : "+ document.getElementById('ProfileName')["value"] + " Added !");
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions