Hi Folks,
I have created a flow from a SharePoint list to create a new vendor in D365 F&O, including adding the GST number and linking it to the vendor. However, I am currently facing an issue. I have configured the flow to trigger when an item is created or modified in the SharePoint list as per the requirement. But as of now, every time I modify any existing data in the SharePoint list, a new vendor is being created.
The requirement is that if there is a modification to the details of an existing vendor in the SharePoint list, it should update the corresponding vendor in D365 F&O. Additionally, if a new vendor is added to the SharePoint list, it should create a new vendor in D365 F&O.
Could you please advise on the steps or conditions I should use to check if the vendor account or GST number already exists in D365 F&O? This way, the flow will update the existing vendor instead of creating a new one every time there is a modification in the Sharepointlist data.
Thanks in Advance!