You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@SPWizard01 - I just took a look to verify that there wasn't a bug and according to the source code the add method on list items returns "any". Then I tested it and got the data on the recently added item, which includes the Id. The change for version 3 was that we no longer return an object with the data and item properties we just return the data as a pass through from the REST api like we do for any other call.
What version of PnPjs library you are using
4.x
Minor Version Number
0.1
Target environment
other (enter in the "Additional environment details" area below)
Additional environment details
Standard setup of in-browser pnp library.
Question/Request
As of v4 when adding an item to the list the
.add()
method returns void as well as update.How do I know the item Id of the item I just added to the list?
Consider a scenario where the list is heavily used, getting "last" item won't cut it.
The text was updated successfully, but these errors were encountered: