How to get expand fields data in webapi query ... can anyone share in query i have expand = st_account_contact_accountid(select = accountnumber).How to get this relationship accountnumber
*This post is locked for comments
How to get expand fields data in webapi query ... can anyone share in query i have expand = st_account_contact_accountid(select = accountnumber).How to get this relationship accountnumber
*This post is locked for comments
Hi,
Scenario 1:-
I got solution for expand query. No need to convert into fetchxml. when we use results[i].[st_account_contact_accountid@odata.nextLink]. we will get results in the form of query for particular to that expand fields then normally we can go with webapi retrieve and we will get results.
Scenario 2:-
results[i].[st_account_contact_accountid][fieldsname] it will return fields data.
Scenario 3:-
If want we can convert all the query into fetchxml.
Hi!
I think you should try CRM Restbuilder solution, it will help you to create any query you want.
Try to use this article:
github.com/.../releases
Hope it helps
Please mark it As Answered or Verified if it did help you.
Thanks
Vlad
http://dynamicalabs.com/
Convert the entire query to fetch xml.
Hi nithya gopinath,
i have expand in between query so for comes to expand fileds data we need to convert it to fetchxml or we need to convert entire query into fetchxml?
Hi,
Try to use the expand as shown below.
$expand=st_account_contact_accountid($select=accountnumber)
See the link below for more details.
Hope this helps.
André Arnaud de Cal... 291,391 Super User 2024 Season 2
Martin Dráb 230,445 Most Valuable Professional
nmaenpaa 101,156