reporting services - FetchXML in SSRS -


i'm quite new this; make dynamicscrm report contains basic info 1 opportunity , info reservations connected it.
i've managed set visual studio allow me connect crm , fetch 1 table (f.e. opportunities).
i'm bit lost how join in reservations.
1 opportunity has several reservations linked it.
basic idea have letter says "customer x buys car of model , options a,b,c,d"

i can't go advanced find in crm query kind of 1 many relation not allowed.
can go in reservations , export opportunity information; returns 1 line per reservation.

my guess need somehow store id field of opportunity in parameter , second dataset connect reservations , import those.

any tips or on how proceed?

edit, if advanced search reservations, , add opportunity fields; work in visual studio; not in crm (because add opportunity entity , not reservation entity.

1:n opportunity reservations should no different opportunity account or customer entities. use lookup id on target entity (e.g. customerid) joins.

replace account below registration, accountid registrationid , customerid registration lookup id on opportunity entity.

var fetchxml = "<fetch mapping='logical'>" +                            "<entity name='opportunity'>" +                            "<attribute name='opportunityid' />" +                            "<link-entity name='account' from='accountid' to='customerid'>" +                            "<attribute name='accountid' />" +                            "</link-entity>" +                            "</entity>" +                            "</fetch>"; 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -