Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Update lookup field based on retrieved GUID value in form of a string on server side

Posted on by Microsoft Employee

I have custom entities Contract Line and Price List Item. On Contract Line there is a lookup field Price List Item.

Depending on different conditions adequate Price List Item is determined.

I managed to query Price List Items entity to get the GUID of one record using Kaskela's Workflow Elements:Query - Get Results using custom FetchXML.
Returned GUID value is in form of a string.

What is now needed is to populate lookup field Price List Item with value based on retrieved GUID.

This logic needs to run on server side because new records will be created by import, not manually.

Is it possible to do this without creating custom plugin?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Update lookup field based on retrieved GUID value in form of a string on server side

    Thank you Mehdi, you're right.

    When I first came across this solution it did not seem to me that it could be applied to my case, but now I went through all the steps and it worked.

    I imported version 8.1. When trying to import the latest version (8.2) an error message is displayed:

    You can only import solutions with a package version of 9.0 or earlier into this organization. Also, you can't import any solutions into this organization that were exported from Microsoft Dynamics 365 2011 or earlier.

    My organization is on version 1612 (9.0.15.9) but on-premise.

  • Verified answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Update lookup field based on retrieved GUID value in form of a string on server side

    Hi, 

    I believe that you can do it using TCS Tools.

    Please refer to this link you will find all the steps with some screenshots: 

    https://www.itaintboring.com/dynamics-crm/dynamics-crm-use-a-workflow-to-set-a-lookup/

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans