sharepoint list unable to create item while retrieving some values in another list

Sans 11 Reputation points
2020-11-01T03:26:49.277+00:00

share point list A & list B
for example
list A fields | list B fields
text 1 | Name
text 2 | text 1
Button | text 2

workflow(2010) will generate a hyperlink in list A button field for each item added to list, upon clicking on button it will redirect to list B with auto populated fields text 1, text 2 from list A(Item ID) and user will enter name click save in list B. once saved workflow(2010) will send a notification. able to do the retrieval using java script which was working fine, after recreating the workflow to 2013 while testing it, able to retrieve the values from list A to list B but it is modifying existed item in list B with same ID instead creating new item, and sometimes giving page not found error after loading few seconds.

for example list A item ID 100 which will be passed to list B newform.aspx?ID=100& (workflow generated url in list A) while retrieving the values from list A and populate in list B newform.aspx. once clicked on save, it is modifying list b item with ID 100 which is already there in list B. this supposed create a new item with unique ID.

trying to struggle where I was doing wrong.

Please help, let me know if need more info.

Thanks in advance

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Amos Wu-MSFT 4,131 Reputation points Moderator
    2020-11-03T07:46:30.523+00:00

    There is no part about update List B item in your code,you need to check if there is code about modifying list b item in the page.
    And you need to use internal name of column in Rest api you are using.You could find column internal name here:
    36907-image.png
    Or you could append the value of text 1 and text 2 to the Url,just like ID.


    If the response is helpful, please click "Accept Answer" and upvote it.
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.