Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archive)
Suggested answer

Performing Text Lookup with GUID as an input in Kingswaysoft Dynamics 365 Toolkit

(0) ShareShare
ReportReport
Posted on by 406

In Kingswaysoft Dynamics 365 Integration Toolkit, is there any way to lookup/match CRM ownerid GUID from source table to a custom column in destination's user entity?

My problem

For some reason, I have to perform a text lookup from source entity's ownerid field to destination user entity's new_legacyuserid custom column that holds user GUIDs from the source system. But it seems like the KIngswaysoft engine is ignoring Text Lookup Editor at all if I pass ownerid column as input, but matches if I pass owneridname column as an input.

I have pre populated the new_legacyuserid with a single GUID from the source as a fallback user indication and this column is null for all other destination user records. So all the records' ownerid should fallback to the default user.

Now, when I pass ownerid as an input to the Text Lookup (please see the image below) the package fails with the following error:

{"error":{"code":"0x80040217","message":"systemuser With Id = be33cd29-671b-e511-80ce-005056ae320c Does Not Exist"}}

However, to test differently, when I pass owneridname as an input to the TextLookup, the package runs successfully and all the two records ownership falls back to the default destination user.

I want to perform the same match using ownerid and not owneridname.

Text Lookup Editor configuration

Categories:
  • Suggested answer
    Ali .NET Profile Picture
    406 on at
    RE: Performing Text Lookup with GUID as an input in Kingswaysoft Dynamics 365 Toolkit

    I didn't find any way to use user GUID (OwnerId in this case) in the Text Lookup Editor. It seems that when GUID is passed as an input, the KWS adapter doesn't look at the Text Lookup Editor at all.

    One of my colleague tried this workaround and this worked. You can try that if your source CRM is on-premises.

    • Create a derived column in SQL select statement (OwnerIdString) to store GUID as a string
    • Use OwnerIdString column as input

    Example:

    SELECT task.*, convert(VARCHAR(36), ownerid) AS OwnerIdString FROM task

    This will force the KWS adapter to do a Text Lookup based on GUID.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard > Microsoft Dynamics CRM (Archive)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans