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)

Fill Lookup Field with the current record

(0) ShareShare
ReportReport
Posted on by

I have a custom entity which is linked to itself with 1:N

After I have created a record in this entity, I want to link it with it self, but I can only find other records then this one in the lookup field.

Is this a bug ?

*This post is locked for comments

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

    You should be able to refer same record in a lookup field of same record type. Do you have any dependent  Lookup  filter on lookup field ? Also i have seen this issue with customer lookup field where it does not allow you to choose same record. But this should work for all custom lookup field you have in the entity.

  • Community Member Profile Picture
    on at

    actually I have not set any settings on the lookup field. also no lookup filter.

  • Suggested answer
    Community Member Profile Picture
    on at

    Try to do it with an async workflow.

  • Royal King Profile Picture
    27,686 on at

    can you copy past record name in the lookup field and see whether that resolve the record or not? I had same requirement in the past it worked without any issue. Also i just tested this to verify and it works fine as you can see iin screen shot. Do you have custom view to set on the lookup if show check the filter criteria in that view that may be restricting to select same record in a lookup.

    2015_2D00_09_2D00_04_5F00_1051.png

  • Community Member Profile Picture
    on at

    I have tried a different thing:

    Created a record A and record B

    Linked record B to record A as parent

    now If I try to link record A to record B as parent, it says:

    This lookup creates a parental relationship between records and you attempted to link this record to itself. This is not allowed because it would create a circular reference. You can link this record to other records of the same type, but not the same record.

  • Fubar Profile Picture
    2,761 on at

    You should be able to do it if the Type of Behaviour on the Relationship that has been created when you created the lookup is set to Referential.

  • Community Member Profile Picture
    on at

    Hi Luke,

    I have tried it, but still no success.

  • Fubar Profile Picture
    2,761 on at

    The below was a simple test (2015 Update 1).  There's a 1:N with itself, the record 'Test 1' has the Lookup set to itself.  If the relationship is set to Parental (I suspect it would be the same if any of the Actions were set to Cascade), it will give an error. 

    Is also working for the scenario where record A has parent set to B, and B has parent set to A.

    6761.Capture2.PNG

    6761.Capture2.PNG

  • Fubar Profile Picture
    2,761 on at

    While I can get the record to link to itself, I think it is an intermittent bug.  I am getting there by typing the Parent in to the lookup (and sometimes I am getting a red x).

  • Community Member Profile Picture
    on at

    so you do also think, that this is a bug ?

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