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)

Plugins - Setting Subject lookup field in incident entity

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    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?

  • Khaled Rimawi Profile Picture
    145 on at

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

  • Suggested answer
    Sreevalli Profile Picture
    3,256 on at

    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

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    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
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

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

  • Khaled Rimawi Profile Picture
    145 on at

    Thanks bro, i really appreciate it.

  • gdas Profile Picture
    50,091 Moderator on at

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

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