cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BigShotRob
Level: Powered On

Easy Question - Want to add new or edit existing list entry, can't figure it out.

This has to be the most stupid-easy question ever, but for some reason it's not coming to me of what the best way to do this would be.

 

In short, I've got a sort of internal review process going on with a couple different lists that rollup into a master list (permissions requirement is why it was done this way), the master list is something I enforce Unique ID's on because we want to only have one line item that just continually gets updated. Every employee would get a line item, the thing that isn't so obvious to me is how would be the best way to have a condition that checks if the item already exists in the "master list", I'm passing the unique ID back to each of these lists so editing them is no problem but I can't have both b/c it just errors out due to the unique ID field. 

 

Hopefully that makes sense of what I'm trying to do, can't figure out the best way to put a condition in to simply CHECK if an item exists, if it doesn't.. I'd want to create a new item, otherwise I'd want to just edit the existing item.

 

Any help would be greatly appreciated, because I've searched the living crap out of this and am about to pull my hair out with the crappy ways I've been ATTEMPTING to do this.

2 REPLIES 2
Community Support Team
Community Support Team

Re: Easy Question - Want to add new or edit existing list entry, can't figure it out.

Hi @BigShotRob,

 

Sorry that I couldn't say that I have fully understood what you want to achieve. But about the part that you want know how to put a condition in to simply CHECK if an item exists, you could use a Get items action and a condition like below:
Capture.PNG

 

Fill the item ID in the value field.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BigShotRob
Level: Powered On

Re: Easy Question - Want to add new or edit existing list entry, can't figure it out.

Thanks for your reply.

 

However, the problem here is that I'm not able to pass the ID to the list that it'd be coming from to do a compare, there was a good reason as to WHY I couldn't pass the destination lists Unique ID to the one I'm referencing, but I don't remember now what that was, I think it had something to do with the destination list has a Unique ID of the employees name (people picker) that I'm just trying to update, and I couldn't drive the ID back to the source list because the source list has no unique fields, many items to one here, hold up.. going to stop this while I try to recall the full extent of the logic behind why i did it that way in the first place.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 177 members 4,499 guests
Please welcome our newest community members: