cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

How to capture when a sharepoint "create an item" returns an error - duplicate

Jump to solution

Hello, I am just creating my first form using the Nintex Workflow Cloud. This is a simple form which creates an item on a Sharepoint list every time it is submitted. I don't want to have duplicates, so one of the columns on my Sharepoint list only accepts a unique value. I need to find a way to know when the "create an item" fails (because it is a duplicate) , so i can send the user to an error page.

How can i accomplish that? Thank you.

Labels: (2)
0 Kudos
Reply
3 Replies
Highlighted
Nintex Employee
Nintex Employee

Re: How to capture when a sharepoint "create an item" returns an error - duplicate

Jump to solution

@CMB-Abovet ,

Until it's not possible to check it from the form itself,

I would recommend to check from the workflow for an existing item with the same field value first, and then, if only it does not exist, create the item. Avoid the error happening as a best practice.  

 

image.png

 

 

You can also create your own Xtensions to create the item and get errors responses. But It's not a handling exceptions best practice. Exceptions should not be used for logic. 

 

Keep in mind that if you use Nintex Forms for Office 365, it's managed. You stay on the form and are prompted with a message as shown below :

 

image.png

 

The question maybe, should I use Nintex for Office 365 for that specific reason ? This could be changed faster. 

 

My2cents

^^

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: How to capture when a sharepoint "create an item" returns an error - duplicate

Jump to solution

Thank you Cecilia for your answer.  I will go ahead and apply your first suggestion! 

This form needs to be available for the public , so I believe i cannot use Nintex Forms for Office 365. Isn't that correct?

 

Thank you,

AB

View solution in original post

0 Kudos
Reply
Highlighted
Nintex Employee
Nintex Employee

Re: How to capture when a sharepoint "create an item" returns an error - duplicate

Jump to solution

@CMB-Abovet

 

That's correct. Public forms is only possible with Nintex Workflow Cloud.

 

With Office 365, you can authorize external users, but the form SharePoint or Nintex is still not anonymous and you are authenticated.

 

^^

0 Kudos
Reply