cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SunshineK
Helper II
Helper II

Create and or Update Sharepoint List from Unique ID pulled from Survey123

Hi Team, 

 

I am trying to create a two part flow from a survey in survey123 - and cannot figure out where I am going wrong.
It seems as though I fix a problem then create another one.

What I want to do:
When a survey is submitted I want to either create an item in SharePoint list if the 'Unique ID' is not in the list... or if the 'Unique ID' is in the list I want to update an item in the SharePoint list.
(the 'Unique ID' is a number that I pull back from Survey123)

 

Flow (Part1): 

SunshineK_0-1604547789354.png

 

SunshineK_1-1604547789362.png

 

 

Flow (Part 1) PROBLEM:
Scenario – there is currently no item in the sharepoint list.

SunshineK_2-1604547789367.png

 

 

SunshineK_3-1604547789369.png

 

Error message:

The 'inputs.parameters' of workflow operation 'Update_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'id' is required to be of type 'Integer/int64'. The runtime value '"e507edbb-6445-4a85-b9f1-11dd9c73b713"' to be converted doesn't have the expected format 'Integer/int64'.

 

Flow (Part 2): 

 

SunshineK_4-1604547789374.png

 

 

SunshineK_5-1604547789379.png

 

Flow (Part 2) PROBLEM:

Scenario: there is already an item in the sharepoint list that I want to update (ie same unique ID)

 

SunshineK_6-1604547789383.png

 

 

 I have also tried both parts above with the condition set as: 

length(body('Get_items_x')?['Unique_ID'])

equal to '0'

 

An error message comes up - something to do with string and integar. 

 

I have tried multiple different ways over the last few days and gone through these posts with no luck of finding a solution. 

Please, any help would be fantastic. 

 

If I can't do it this way, I would be more than happy to create a new item each time and delete the 'older' duplicate unique Id. 

 

Cheers, 

Summer

0 REPLIES 0

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (41,053)