locked
how to access contact ,account,cases...etc through string url ? RRS feed

  • Question

  • Hi ,

    how to access account, contact, cases,....etc through string url?

    ex: i am access account through url , iam pass the parameter guid (or) any primary key directly open the account?

    how to possible.

    Wednesday, February 22, 2012 7:17 AM

Answers

  • Yes I know this one, I think we need to get this GUID after Querying SQL Table.

    any otherway is possible to get the entity through primarykey.
    • Marked as answer by Naren.j Wednesday, February 22, 2012 10:24 AM
    • Unmarked as answer by Naren.j Wednesday, February 22, 2012 10:25 AM
    • Marked as answer by Naren.j Wednesday, February 22, 2012 10:25 AM
    • Edited by Naren.j Wednesday, February 22, 2012 10:27 AM
    Wednesday, February 22, 2012 10:23 AM

All replies

  • Hi Naren,

    Do you want to fetch entities using oData endpoint?

    For e.g., to access Accounts:

    https://yourcrmserver/XRMServices/2011/OrganizationData.svc/AccountSet

    and for an Account

    https://yourcrmserver/XRMServices/2011/OrganizationData.svc/AccountSet(guid'xxxxxxxxx')

    Am I right, or you are asking for something else.


    -- NMathur

    • Proposed as answer by nrodriEditor Wednesday, February 22, 2012 3:02 PM
    Wednesday, February 22, 2012 10:02 AM
  • Yes I know this one, I think we need to get this GUID after Querying SQL Table.

    any otherway is possible to get the entity through primarykey.
    • Marked as answer by Naren.j Wednesday, February 22, 2012 10:24 AM
    • Unmarked as answer by Naren.j Wednesday, February 22, 2012 10:25 AM
    • Marked as answer by Naren.j Wednesday, February 22, 2012 10:25 AM
    • Edited by Naren.j Wednesday, February 22, 2012 10:27 AM
    Wednesday, February 22, 2012 10:23 AM
  • You mean you want to get id through query and then use oData endpoint in your code?

    Are you using javascript web resources?


    -- NMathur

    Wednesday, February 22, 2012 10:25 AM
  • No. i dont know this way, can u explain?
    Wednesday, February 22, 2012 10:29 AM
  • Sorry I did't get you, can you please explain you requirements through any example.

    -- NMathur

    Wednesday, February 22, 2012 10:39 AM
  • how many ways get the data through string url and any more...
    Wednesday, February 22, 2012 10:49 AM
  • You can access your data through plugins, add ons, web resources. As far as I concern web resource is the best way if you need to show your data in UI. On other side if you want to show related entities or activities on entity form, you can also customize form. Tell us your requirements and we can tell you the best way to fulfill those requirements.

    -- NMathur

    Wednesday, February 22, 2012 11:08 AM
  • Hi Mathur,

    My requirement is tax payers data is their in this data TIN no(primary key), i am access partucular tax account by useing srring url.

     

    Wednesday, February 22, 2012 11:25 AM
  • ok you can access that data, but tell me where and how you are going to use that. Do you want to show it in another entity form?

    -- NMathur

    Wednesday, February 22, 2012 11:36 AM