cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bjarvis
Advocate I
Advocate I

Update A Record is Creating New Records

I am trying to create a flow that monitors for a new Phone Call activity and then updates a date field on a Lead record (basically I'm tracking the date of the last phone call to that lead).

 

Here is my flow:

 

Capture.JPG

 

This works, and the last activity field gets updated when I add a new phone call to the Lead.

 

However, I've found that it's creating new leads when adding phone call activities to other entities. For example, if i add a new activity to an Account record, a new (blank) Lead is created.

 

How can I stop this happening? 

2 REPLIES 2
PrasadAthalye
Community Champion
Community Champion

Are you sure new leads are getting created due to this flow? In Run history, do you see Flow runs?

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Yes, it's definitely creating them. If I view the outputs of the flow history I can see that the _regardingobjectid_type is set as 'opportunities' on one of them.

 

I've created a workaround at the moment by inserting a 'get record' action looking for a Lead record. Obviously, if the guid on the input of this action is not a lead it fails. Although i'd rather a slicker way of doing this.

 

 

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,021)