Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Plugins - Setting Subject lookup field in incident entity

Posted on by 145

Hi,

I had a lot of searching on how to set up incident entity subject lookup field in plugins, but unfortunately i didn't find what i want . Could you please refer a useful blog or something like that? or perhaps provide the answer here.

Thank you

*This post is locked for comments

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Plugins - Setting Subject lookup field in incident entity

    Please don't forget to close the thread by verifying any answers from above which helped you .

  • Khaled Rimawi Profile Picture
    Khaled Rimawi 145 on at
    RE: Plugins - Setting Subject lookup field in incident entity

    Thanks bro, i really appreciate it.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Plugins - Setting Subject lookup field in incident entity

    I usually get record id either from Url if it is there or using Extension for Chrome like LevelUp.

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Plugins - Setting Subject lookup field in incident entity

    Hi  Khaled, 

    I believe you can get the subject  GUID  from the UI,  by pressing F12 and move the selector to the subject list you will find the itemid.

    subjectcase.png

    Hope this helps.

  • Suggested answer
    Sreevalli Profile Picture
    Sreevalli 3,256 on at
    RE: Plugins - Setting Subject lookup field in incident entity

    Hi,

    What is the code line you tried to set Subject?

    found something - https://community.dynamics.com/crm/f/117/t/159104 see if it helps you

    -Sreevalli

  • Khaled Rimawi Profile Picture
    Khaled Rimawi 145 on at
    RE: Plugins - Setting Subject lookup field in incident entity

    Thanks for the answer, where to get the guid from ?

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Plugins - Setting Subject lookup field in incident entity

    Hello,

    I'm not sure what post are you looking for. What exact issue do you experience? Subject lookup is a regular lookup so something like

    incident["subjectid"] = new EntityReference("subject", subjectguid);

    should work fine. Can you please be more specific on your issue?

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