Skip to main content

Notifications

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 61

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
    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
    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
    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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 54

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans