Quantcast
Channel: Daniel Cai's Activities
Viewing all articles
Browse latest Browse all 397

Add a dynamic variable value for a entity names and attributes in fetchxml

$
0
0

Hello every body I'm new in thos comunity; I'm currently use The Kingsway Soft SSIS Integration Toolkit for Microsoft Dynamics 365(CRM) and in my CRM Source Component(Editor) I would like to add this string

<fetch mapping='logical'>
    <entity name='@[User::EntitiesName]'>
    <all-attributes />
    <filter type="and" >
      <condition attribute="modifiedon" operator="ge" value="@[User::ModifiedOn]" />
    </filter>
    </entity>
</fetch>

The @[User::EntitiesName] variable is build at runtime; Also the value @[User::ModifiedOn]  is build at runtime. I received the error

System.Exception: There was an error when retrieving the CRM metadata for the entity or FetchXML query provided.
KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException:
 CRM service call returned an error: An error has occurred when retrieving metadata for CRM entity '': CRM service call returned an error:
 LogicalName is required when entity id is not specified(Error Code: -2147220989, Detail Message:
 LogicalName is required when entity id is not specified) (SSIS Integration Toolkit for Microsoft Dynamics 365, v8.1.0.6275 - devenv, v14.0.23107.0)
KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException: CRM service call returned an error:
LogicalName is required when entity id is not specified(Error Code: -2147220989, Detail Message: LogicalName is required when entity id is not specified)
System.ServiceModel.FaultException<KingswaySoft.DynamicsCrmServices.Soap2011.OrganizationService.OrganizationServiceFault>: LogicalName is required when entity id is not specified
(SSIS Integration Toolkit for Microsoft Dynamics 365, v8.1.0.6275 - devenv, v14.0.23107.0)

My Questions are

1) Is it a real error ? so I must type  at compilation time, the value for @[User::EntitiesName] ?

2) Can I pass dynamically @[User::EntitiesName] at run time ?

plese se the Image

 

Best regards 


Viewing all articles
Browse latest Browse all 397

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>