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
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
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
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.
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
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.
Thanks, I'll try with this.
Just checked that we can exeute wep api request against POA
xxx/.../principalobjectaccessset
Yes that would be difficult but I think you can webapi to query shred data (not sure about this though)
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.
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156