Skip to Content

GenIL Dynamic Query into OData

Hi all.

I need to create an OData service from an already existing GenIL dynamic query for CRM Activity objects.

I've followed a couple of tutorials found here on SDN, but I still need some more information since those documents are too general and don't cover this specific scenario.

When going to 'Redefine -> GenIL service', I choose the GenIL component 'BT', as it is the model for all Business Transactions.

After filling the classes names in the next screen, I am prompted to choose the Entities and associations I want to include in the service, and here is my problem. This window doesn't show the query I need, it only shows a few others not relevant to this case.

The query I need to run is BTQAct. Any idea on how to create a service from that Dynamic query?

Thanks in advance for your help.

I've gone through almost all online documentation so far, but I'm new in the topic, can't find the answer on my own so far!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Mar 08, 2013 at 03:32 AM

    Hi Federico,

    In GenIL query objects are associated with a root/access/dependent object. So, during the generation process, only root/access/dependent object are converted into entities and not the query objects.

    If the generation is successful, in your generated Metadata class, in method ~GET_DEFAULT_QUERY , you will find that each of the entities will have a default query(simple/dynamic) associated with it, which subsequently helps retrieving the data from CRM.

    Please check the following link:

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.