Compartir a través de


Cant edit and save item in InfoPath form.

We have issue in editing and saving a list item in InfoPath form.

In research we found that the user who created those items is not with company and her AD account is also deleted.

When we edit on SharePoint it works fine but in InfoPath due to validation check on form it result in errors.

From InfoPath we can disable those validations.

Only available option is to update the issue item with a action user as author.

We used following script to archive this.

  • $Spsite = Get-SPSite https://sp1gm
  • $TempOwner = "sp2010\abci"
  • $Temp = $Spsite.Rootweb.Allusers[$TempOwner]
  • $Web = get-spweb https://sp1gm
  • $list = $Web.lists[abc]
  • $items = $list.Items
  • $item = $items[0]
  • $item["Author"] = $Temp
  • $item.update()
  • $list.update()

Comments