locked
Unable to use 'Set Regarding' to a Sales Order or use 'Order LookUp View' to find a SalesOrder with StateCode <> 0 RRS feed

  • Question

  • We are unable to use the 'Set Regarding' feature of the CRM 4 Outlook Client to select Sales Orders which have a StateCode <> 0.

    We are also unable to use the Order Lookup View in the web client to select Sales Orders which have a StateCode <> 0.

    How can not  filter or limit the Order Lookup View to allow selection of Sales Orders which any StateCode?

    I have already exported the Sales Order XML and could not find any filter for StateCode on the fetchxml for the Order Lookup View.

    As we are using an integrated solution with GP, we set the Sales Order StateCode based on business rules but after the StateCode has been changed from 0, we still need to associated Activities and other CRM entities with the Sales Order.

    Below is the current Order Lookup View query from the Sales Order Customization file:

              <savedquery>
                <iscustomizable name="No">0</iscustomizable>
                <isquickfindquery name="No">0</isquickfindquery>
                <isuserdefined name="Yes">1</isuserdefined>
                <isprivate>0</isprivate>
                <isdefault name="Yes">1</isdefault>
                <returnedtypecode formattedvalue="1,088">1088</returnedtypecode>
                <savedqueryid>{ABF9E11D-08A5-4F4D-966B-7335A924E9C7}</savedqueryid>
                <savedqueryidunique>{965883BA-FCF0-4224-9DF1-0A2D40462912}</savedqueryidunique>
                <layoutxml>
                  <grid name="resultset" object="1088" jump="name" select="1" preview="0" icon="1">
                    <row name="result" id="salesorderid">
                      <cell name="name" width="25" />
                      <cell name="CFSBackOfficeOrderNumber" width="100" />
                      <cell name="customerid" width="150" />
                    </row>
                  </grid>
                </layoutxml>
                <customizationlevel formattedvalue="1">1</customizationlevel>
                <querytype formattedvalue="64">64</querytype>
                <fetchxml>
                  <fetch version="1.0" mapping="logical">
                    <entity name="salesorder">
                      <attribute name="name" />
                      <attribute name="customerid" />
                      <attribute name="salesorderid" />
                      <filter type="or" isquickfindfields="1">
                        <condition attribute="CFSBackOfficeOrderNumber" operator="like" value="{0}" />
                        <condition attribute="name" operator="like" value="{0}" />
                      </filter>
                      <order attribute="name" descending="false" />
                      <attribute name="CFSBackOfficeOrderNumber" />
                    </entity>
                  </fetch>
                </fetchxml>
                <LocalizedNames>
                  <LocalizedName description="Order Lookup View" languagecode="1033" />
                </LocalizedNames>
                <Descriptions>
                  <Description description="" languagecode="1033" />
                </Descriptions>
              </savedquery>

    Friday, July 17, 2009 3:30 PM

Answers