Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to create .Net application or custom common utility solution and make this as manage solution to import into Dynamics CRM.

Posted on by Microsoft Employee

Hi,

    I'd like to create custom common utility or .Net project application or common custom workflow activity and want this as manage solution to import to the CRM so that this should be reuse-able or available for any CRM project just like plugin play. Please guide me how I can achieve this. I can develop .Net or custom CRM application but don't know how I can convert this to CRM manage solution to import. Thanks in advance.

Thanks!

Wasiq

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to create .Net application or custom common utility solution and make this as manage solution to import into Dynamics CRM.

    Thanks Ravi, but this doesn't suite to my current requirement. I need all the users/teams who are having access on specific record with their AccessMask, however I can use this in future requirement.

    Thanks,

    Wasiq

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How to create .Net application or custom common utility solution and make this as manage solution to import into Dynamics CRM.

    Hi Wasiq,

    Sorry I am unable to find any WEB API function for this request. I guess it is not available as of now.

    However there is another function which retrieves the shred access rights but this is for a specific user i.e. retrieve all rights user 'X' has on account record 'Y'

    https://<crmserver>/api/data/v8.2/systemusers(80c6eb37-aa62-e711-8118-c4346bdee581)/Microsoft.Dynamics.CRM.RetrievePrincipalAccess(Target=@tid)?@tid={'@odata.id':'accounts(D0D3DCCF-AA62-E711-8121-E0071B668671)'}

    Thanks,

    Ravi

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to create .Net application or custom common utility solution and make this as manage solution to import into Dynamics CRM.

    I am creating and executing 'RetrieveSharedPrincipalsAndAccessRequest' object request for particular opportunity and this gives me list of PrincipalAccesses.AccessMask string value like ReadAccess/WriteAccess/AppendAccess but don't know how we can achieve the same using JavaScript.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How to create .Net application or custom common utility solution and make this as manage solution to import into Dynamics CRM.

    Hi Wasiq,

    Sorry for the late response, just saw this. What message your were using in C#. I guess we need to call the same message using JavaScript. Haven't tried this yet but will get back you soon.

    - Ravi

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to create .Net application or custom common utility solution and make this as manage solution to import into Dynamics CRM.

    we can get sharing info from POA table using web api request also from fetchxml but this gives access right mask as consolidated values like below

    <accessrightsmask formattedvalue="851,991">851991</accessrightsmask>

    here, we can't judge whether the user has read access/write access etc and we can't check such values since this value just gets added with each access mask value . How can we get string or text value for accessrightsmask using javascript like ReadAccess/WriteAccess/AppendAccess, I get this using c# but not getting using javascript.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to create .Net application or custom common utility solution and make this as manage solution to import into Dynamics CRM.

    Thanks, I'll try with this.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How to create .Net application or custom common utility solution and make this as manage solution to import into Dynamics CRM.

    Just checked that we can exeute wep api request against POA

    xxx/.../principalobjectaccessset

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How to create .Net application or custom common utility solution and make this as manage solution to import into Dynamics CRM.

    Yes that would be difficult but I think you can webapi to query shred data (not sure about this though)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to create .Net application or custom common utility solution and make this as manage solution to import into Dynamics CRM.

    But that would be much difficult to achieve this functionality using HTML web resource since I think we can't access POA table or query against POA table using JavaScript to retrieve sharing information.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How to create .Net application or custom common utility solution and make this as manage solution to import into Dynamics CRM.

    There is no way to show the aspx page without hosting it somewhere. The only option I can think of if to rewrite this using HTML Web Resource.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans