Re: Assigning Spouse/Partner connection on contact record
So there will be a text value in the Spouse/Partner field (that someone else had manually entered) and you want a flow that will search contacts for that string, and then drop the winning GUID into your custom field? Is the Spouse/Partner information coming from the original form?
If not, it would seem if someone still has to manually enter text into the existing Spouse/Partner field, they could just as easily select an existing record (which would create the relationship in one step vs. 2 or 3). Sorry for all of the questions, but I want to make sure I understand it right.
If I've got the first part right and you still want to move forward, it would looks something like this:
On new form submission, create a contact record in D365.
If the "Spouse/Partner" information is not present. end there. If there's something there, then list D365 contact records that match.
Take the first result back in the array and grab that id and drop it into your custom field. If there's no match, then the custom field stays blank.
That approach obviously won't be 100% accurate because of the ambiguity of the search and will definitely give you trouble with common names and misspellings. BUT, it might get you closer.
You could then have a view in D365 that looked for records that had data in the Spouse/Partner field and nothing in the custom field. These would be candidates for manual intervention.
What do you think?
-Ed