Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to get sharepoint to update guid field in an external list

$
0
0

Hi all,

I have a SQL table which I wish to use SharePoint Foundation 2013 to update. The idea is to use sharepoint as a web interface to update, delete and create table items in a SQL database.

I am using a guid as a primary key in the table.

I am using an external list to connect to and display the information from this table in sharepoint.

I can delete and update table items successfully.

I can create a table item, however I can only do this one.

I worked out that the guid in the table for the new item I am creating is all zeros in guid format in the SQL table.

This means that I can only create one item, the next time I try I get this error:

Failed to create a list item for this external list based on the Entity (External Content Type)

This is because the next item I create in the table also has a guid of all zeros so it would be a duplicate.

Is there a way that I can have sharepoint create a new guid so that this doesn't happen?

thanks

Jason


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>