locked
Pre Plugin Retrieve Multiple Plugin to return record with a higher security RRS feed

  • Question

  • I have a need to return few attributes of an account entity which are outside the scope of a user permission.

    I cannot do this as a read only on the account as

    1) Only some attributes are required not all.

    2) Due to parental reference , the child records are also get visibilty. Again , not acceptable.

    So plan

    Create a entity - proxy of sort.

    I call it via odata

    Retrieve multiple I replace the query eg "Select * from Account"

    then execute.

    Now i have registered 2 plugins under a service account so it is executing in context of a sys admin.

    Pre Retrieve Multiple - I replace the query expression

    Post retrieve - I just looking at the context and see the result is indeed part of the OutPut parameters.

    But the odata response is giving me a Null reference .

    Please comment on above .


    • Edited by SilverFz Wednesday, November 5, 2014 2:43 PM
    Wednesday, November 5, 2014 2:42 PM

All replies

  • I would expect this to work. One thing I would check is whether the original query, and the one you replace it with, have the same ColumnSet. If they don't then OData may have a problem parsing the results

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    Thursday, November 6, 2014 11:06 AM
    Moderator