web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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

I have the same question (0)
  • Flydancer Profile Picture
    1,332 on at

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

  • Suggested answer
    Sreevalli Profile Picture
    3,264 on at

    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

  • Suggested answer
    ScottDurow Profile Picture
    23 on at

    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)

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans