Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Can attribute in FetchXML accept default value?

(0) ShareShare
ReportReport
Posted on by 57

Hello,

I have a situation where I would like to use FetchXML as Dynamics CRM  Source in SSIS package. 

I would like to know whether we can pass certain specific value as default in attribute as part of FetchXML?

Something I am looking for is as below.

<fetch top="50" >
<entity name="entity1" >

<attribute name="anything1" alias="a" value="default1" />

<attribute name="anything2" alias="b" value="default2" />

</entity>

</fetch>

*This post is locked for comments

  • Suggested answer
    ScottDurow Profile Picture
    ScottDurow 19 on at
    RE: Can attribute in FetchXML accept default value?

    Hi!

    You cannot add defaults to the query but when you use the value in the report you can use a formula to show a value if the value is null:

    =iif (IsNothing(Fields!name.Value), "Default”, Fields!name.Value)

  • Suggested answer
    Sreevalli Profile Picture
    Sreevalli 3,256 on at
    RE: Can attribute in FetchXML accept default value?

    Hi,

    You can use the fetchxml with different operators but it should be in the supported format. you can query in advance find and export fetch or if you are going more advanced than advance find, there is XRMToolBox that helps you in generating fetchxml in the Dynamics supported format.

    stoneridgesoftware.com/going-beyond-advanced-find-views-and-xrmtoolbox-view-designer-fetchxml-builder

  • Flydancer Profile Picture
    Flydancer 1,332 on at
    RE: Can attribute in FetchXML accept default value?

    Could you elaborate what you're trying to achieve? Do you mean to use ssis-variables as values for fetchxml?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans