Forum Discussion
mrhooki
Dec 10, 2019Tin Contributor
Flow create item in another SharePoint list not working (due to destination list column format)
I have a flow creating an item in a "destination" SPO list when an item is created in a "source" SPO list. In source list, when an item is created, the item is updated (with flow), putting ID into ...
- Dec 12, 2019
Damien_Rosariothanks for all you help. I removed the get items and compose to avoid (unresolved) duplication after changing number of decimals in destination list UniqueID and Increment number columns from auto to 0 (consistent with other lists). The devil can certainly be in the details..
Damien_Rosario
Dec 10, 2019Silver Contributor
Hi mrhooki
Assuming I understand you right, you have a unique ID that's generated from the increment number field in your Source list that is increment + 1000000 which should automatically calculate itself in the list item. You then want to take the unique ID and put that into the Destination list (I'm assuming your destination list has the unique ID field set as Text).
If this is a case, maybe try this, after the Create item (ref Source list) action in your Source list, use the Get item (ref Source list) action to retrieve the newly calculated unique ID and then reference it in the Destination list > Create item (ref Destination) action using the unique ID from Get item (Source list).
I would think that Create item for the Source list hasn't calculated the new unique ID when initially created, and that you need to use Get item to retrieve the new calculated value before exporting it to the Destination list.
The Get item step may be the thing you are missing in your flow.
Cheers
Damien
- mrhookiDec 10, 2019Tin Contributor
Damien_Rosarioyour assumptions are all correct, except destination uniqueID column is number, not txt. Get items returns the same value in destination list, i.e. without increment number. An identical flow, also with calculation in source list and number in destination list returns correct value (without get items).
- Damien_RosarioDec 10, 2019Silver Contributor
Hi mrhooki
Is the source list producing the correct result as intended? If yes, maybe try a Compose box after Create Item (Source list) and put the unique ID into that to see what value it is retrieving in the run log?
Super annoying that you have the same set up elsewhere but it's giving you a different result here.
Hope you figure it out soon friend!
Cheers
Damien
- mrhookiDec 11, 2019Tin Contributor
Damien_Rosariomoving outputs (uniqueID) from compose to create item as reference for uniqueID solves problem with wrong value in destination list, but creates a new problem: each item is entered 100 times for some reason.