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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Copy data from text field to Look up field. Please Help.

(0) ShareShare
ReportReport
Posted on by 285

Hey,

I have to copy data from a text field (city) to a lookup field (city). How can I achieve it? Please help.

*This post is locked for comments

I have the same question (0)
  • Royal King Profile Picture
    27,686 on at

    if the primary field value of the lookup fields match with text field value and the values are unique , export the data to excel with these two columns in a view with re-import option checked when you export the data. Copy the text field value to the lookup field and reimport system will automatically map the text value to the lookup field field value.

  • Aileen Gusni Profile Picture
    44,524 on at

    Anu,

    You want to achieve this using SDK programmatically?

    See this concept here:

    community.dynamics.com/.../151023.aspx

    However, It needs code to do query to get the exactly lookup field id from the text as matched keyword.

    Other option, can follow Chitra suggestion, of course..

    Just make sure that you have created all records with the exact same name with City Entity (a lookup field reference you want to use).

    Then, you export excel with re-importing capability.

    After that, you just import it...

    Then in the mapping of the column, now you need to mapping this with the lookup field.

    Just key things you need to remember:

    1. You need to make sure that your text field value is matched with existing record in the City entity as master for lookup reference, otherwise it will fail and result error, lookup cannot be resolved, so no mistake, no white space mistake, ok.

    2. You don't have any duplicate city record with the same name.

    Otherwise it will fail with error duplicate reference like that cannot be resolved, something like that.

    And hope this helps.

    Thank you.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi ANU GOYAL

    My name is Andres Guzman, I'm glad to help you.

    First of all, if you need to copy this info in the same moment that you put the info in the test field, you only need to create a business rule to determinate this process.

    If you need to copy from a entity to other, you can create a workflows to apply the change when you create the record or change the value in the field.

    Let me know more details to give you a better recommendation

    Regards,

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans