web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Ali .NET Profile Picture
    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

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans