Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Sample soap request to Link Entities and filter by IDs.

Posted on by 4,601

Hi,

I am looking for a soap request to link entities and get filtered by id. I created a samples but that is not working for linking two tables with a entity.

I am linking Lead entity to listmember entity and listmember entity to List entity and filter by listid and the end. 

Please help me for the same. 

Thanks,

Sandeep

*This post is locked for comments

  • sandeepstw Profile Picture
    sandeepstw 4,601 on at
    RE: Sample soap request to Link Entities and filter by IDs.

    what's issue in this soap request:

    $xml .="<s:Body>";

    $xml .="<RetrieveMultiple xmlns=\"schemas.microsoft.com/.../Services\" xmlns:i=\"www.w3.org/.../XMLSchema-instance\">";

    $xml .="<query i:type=\a:FetchExpression\" xmlns:a=\"schemas.microsoft.com/.../Contracts\">";

    $xml .="<a:Query>";

    $xml .="<fetch version=\"1.0\" output-format=\"xml-platform\" mapping=\"logical\" distinct=\"false\">";

    $xml .="<entity name=\"contact\">";

    $xml .="<attribute name=\"firstname\" />";

     $xml .="<attribute name=\"address1_addressid\" />";

    $xml .="<order attribute=\"firstname\" descending=\"false\" />";

    $xml .="<link-entity name=\"adress\" from=\"customeraddressid\" to=\"address1_addressid\" visible=\"false\" link-type=\"outer\" alias=\"a_410707b195544cd984376608b1802904\">";

    $xml .="</entity>";

    $xml .="</fetch>";

    $xml .="</a:Query>";

    $xml .="</query>";

    $xml .="</RetrieveMultiple>";

    $xml .="</s:Body>";

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    Rajkumar Rajaraman 18,108 on at
    RE: Sample soap request to Link Entities and filter by IDs.

    Hi Sandeep,

    Refer this thread:

    community.dynamics.com/.../166815

    Hope it helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans