web
You’re offline. This is a read only version of the page.
close
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 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,256 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
    21 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans