Hi All,
I have 2 Flows.
1. On creation of a NEW contact (Dynamics 365), create NEW Project Online and create a NEW Lead with Topic (Project ID)
2. On PUBLISH of Project Online , UPDATE the lead with start and end dates of project (Record Identifier = Project ID)
Step 1:Flow 1 runs and does the intended
Step 2:When a project is published Flow 2 runs and creates a NEW lead (Although Lead from Flow 1 is already created with Project ID)
When the project is published again it UPDATES the lead created in step 2.
Problem:
It should not create a new Lead when Project is published for the first time rather it should upate the lead created in Flow1?
Although the Project ID is same in all the cases. Than why Update of D365 creates a new record and than it works fine with the new record created? Why doesnt it get the record created for the first time in Flow 1?
What am I doing wrong?
Flow1
Flow2
Solved! Go to Solution.
Hi @MNarmeen1,
I think there is something wrong with your second flow that you provided. The Record identifier field of the "Update a record" action is required to fill a unique identifier (Lead ID) of the record rather than the Project Id. If you want to update the Lead record that created by your First flow, you should find the corresponding Lead Id of the created Lead record firstly.
More details about the "Update a record" action of Dynamics 365 connector, please check the following article:
https://docs.microsoft.com/en-us/connectors/dynamicscrmonline/#update-a-record
I have made a test on my side, please take a try with the following workaround:
First Flow:
The flow works successfully as below:
Second flow:
item()?['leadid']
Image reference:
The flow works successfully as below:
More details about using expression in flow actions, please check the following article:
Use expression in flow actions
Best regards,
Kris
Anyone knows how can I assign ProjectID to LeadId?
The problem is it cant find the leadid as the record identifier is not the project id and its lead id.
Hi @MNarmeen1,
I think there is something wrong with your second flow that you provided. The Record identifier field of the "Update a record" action is required to fill a unique identifier (Lead ID) of the record rather than the Project Id. If you want to update the Lead record that created by your First flow, you should find the corresponding Lead Id of the created Lead record firstly.
More details about the "Update a record" action of Dynamics 365 connector, please check the following article:
https://docs.microsoft.com/en-us/connectors/dynamicscrmonline/#update-a-record
I have made a test on my side, please take a try with the following workaround:
First Flow:
The flow works successfully as below:
Second flow:
item()?['leadid']
Image reference:
The flow works successfully as below:
More details about using expression in flow actions, please check the following article:
Use expression in flow actions
Best regards,
Kris
Hello, @MNarmeen1!
Have you had a chance to apply @v-xida-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!
Thank you for being an active member of the Flow Community!
-Gabriel
Flow Community Manager
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
85 | |
59 | |
51 | |
42 | |
38 |
User | Count |
---|---|
89 | |
78 | |
74 | |
62 | |
44 |