Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Plugin Obtaining organization and fields from parent entity

$
0
0

I'm a .Net developer writing my very first Dynamics CRM Plugin - please excuse my very basic questions.  I need to do the following and I am unsure what object's to utilize.

The PlugIn is running on the create of various entities.  I want to look at the parent entity and obtain the value of a field "sharepointurl" (which is on all these entities. As the logic is

1-If contract set sharepointurl

2-If contract change then look at the contract entity and get the value stored in "sharepointurl" and do logic then set contract change "sharepointurl"

3-If RFI, Letter, RFP, and others then look at the contract change and get the value stored in "sharepointurl" and do logic then set RFI, Letter, RFP, and others "sharepointurl"

How do I look at this "parent" object and how can I see the contents of the field?

Secondly, I need to obtain the organization in order to determine the base of this URL (as we have more than one organization sharing a sharepoint in our non-prod servers.  My logic is

1- If organization is the production organization then sharepoint URL is xxxxxxxx

2-If organization is mycrmdev then sharepoint URL is xxxxxxxx

3-If organization is mycrmsbx then sharepoint URL is xxxxxxxx

4-etc....

How do it find the organization?

Again sorry for the basic questions but this is the first time out and I'm brand new and need guidance from those with experience.

Diane


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>