OAuth2.0
oData
odata4
Studio_Creatio
8.0

I have installed the Identity server locally and set up oAuth on Creatio -screenshot attached-

I generate a token from the identity server like this 


Then use the token to authenticate OData like this 

 

and as you can see it is returning 401, I made sure the user has roles that make it able to read the data but still



Like 0

Like

0 comments
Show all comments

Hi Team,

 

I am seeing some compilation error in the configuration tab after working on oData. Below is the screenshot for your reference:

Below are the error message descriptions for your reference:

 

Could not copy "obj\Release\Terrasoft.Configuration.ODataEntities.dll" to "bin\Terrasoft.Configuration.ODataEntities.dll". Exceeded retry count of 10. Failed. The file is locked by: "IIS Worker Process (24568)"

 

Unable to copy file "obj\Release\Terrasoft.Configuration.ODataEntities.dll" to "bin\Terrasoft.Configuration.ODataEntities.dll". The process cannot access the file 'C:\Academy\Builds\D1_Dev\Terrasoft.WebApp\Terrasoft.Configuration\bin\Terrasoft.Configuration.ODataEntities.dll' because it is being used by another process.

 

Can anyhow let me know how to fix these issue?

Thanks!

Like 0

Like

1 comments

Hello,

 

To fix this, you need to generate code for all schemas and then compile the site.

The main reason for this behavior is that the file system mode (fileDesignMode) is enabled.

Show all comments
batchquery
batch
oData
Studio_Creatio
8.0

Hi Creatio community,

Where are the logs of batch query calls stored in Creatio? I need to implement a notification logic that triggers every time a batch query is processed in Creatio.

 

Kind regards

Like 0

Like

1 comments

Hello!

 

Such information you can find in your IIS logs, which by default are stored in %SystemDrive%\inetpub\logs\LogFiles

 

If you need, you can set up your own path:

https://learn.microsoft.com/en-us/iis/manage/provisioning-and-managing-…

Show all comments
view object
oData
Sales_Creatio
8.0

Hello,

I was trying to Create a random SQL View in Creatio Cloud and wanted to check if I can access it's records through Creatio Odata API. I followed below steps.

    1. Created  below simple SQL view in Creatio to display account and their annual revenue. 
    

IF EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[dbo].[UsrVwAcctRevenuesT]'))
            DROP VIEW [dbo].[UsrVwAcctRevenuesT]
            GO 
            CREATE VIEW [dbo].[UsrVwAcctRevenuesT] AS
            SELECT Account.Id AS UsrId, AccountAnnualRevenue.Name AS UsrRevenue
            FROM Account  LEFT OUTER JOIN AccountAnnualRevenue  ON 
            Account.AnnualRevenueId = AccountAnnualRevenue.Id
            GO
   

        

    
    2.  I created new object in Creatio with same name (UsrVwAcctRevenuesT) as that of my SQL view with columns as "UsrId" (GUID datatype) and  "UsrRevenue" (TEXT data type with 50 chars) and kept same title.

 

    3. I marked above object as "Represents Structure of Database View" and set Id as "UsrId"
    
    4. Saved, published and compiled above new object.
 

But now when I tried to access it from Creatio Cloud through odata using below URL, 
https:///0/odata/UsrVwAcctRevenuesT
 

I am getting below error.

 

{"error":{"code":"","message":"An error has occurred.","innererror":{"message":"The 'ObjectContent`1' type failed to serialize the response body for content type 'application/json; odata.metadata=minimal'.","type":"","stacktrace":"","internalexception":{"message":"42P01: relation \"public.UsrVwAcctRevenuesT\" does not exist","type":"","stacktrace":""}}}}

 

Am I missing anything ?

Thanks.

 

Like 1

Like

3 comments

Hello!

 

To resolve the issue, please try to do the following:

  1. 1) Navigate to the configuration
  2. 2) Generate source code for all schemas
  3. 3) Compile the application
  4.  

Have a nice day!

Arsenii Ostapyk,

Hi,

I followed above steps . But still getting the same error.
 

Hi,

 

To verify is the View and all its columns have been correctly created and are accessible for the configuration, please create a lookup of this view, display all its columns on the page and check if there are any records appearing.

 

If not, then it means that the view has been incorrectly created.

Show all comments
oData
Sales_Creatio_enterprise_edition
8.0

I am trying to get contact collection data from creatio using OData 4. 

 

In my account, I have tons of contact data, but somehow API gives empty error.

 

Is it something related to permission access related issue?

 

 

@Community, please help to solve this issue

Like 0

Like

1 comments
Best reply

Hello. Make sure that the user used to authenticate the request has the right to read the data of the "Contact" Object. Check in the System Designer, Access Rights to Objects.

Hello. Make sure that the user used to authenticate the request has the right to read the data of the "Contact" Object. Check in the System Designer, Access Rights to Objects.

Show all comments
PowerBI
oData
authorization
Sales_Creatio
8.0

Hello,

 

we want to use cloud version of PowerBI, that's why we cannot use addon from marketplace (https://marketplace.creatio.com/app/microsoft-power-bi-connector-creatio)

 

As I see, PowerBI has option to get data via OData Feed.

 

But basic authorization doesn't work there (the same in Excel, for example). Do you have any experience how to achive that?

Thank you!

Like 1

Like

2 comments

Hello,

The only way to use cloud Power BI with our connector is by configuring a gateway.

We can also recommend this official guide:
https://learn.microsoft.com/en-us/data-integration/gateway/service-gateway-install
https://learn.microsoft.com/en-us/power-bi/connect-data/service-gateway-data-sources

Best regards,

Antonii.

Hello, 

Having analyzed the error you mentioned, we want to inform you that PowerBI add-on doesn't maintain the cloud version. 
This add-on works only with desktop application, according to the instruction:
https://marketplace.creatio.com/sites/en/files/app-guide/Power%20BI%20Setup%20guide_1.pdf

Best regards,
Ivan

Show all comments
oData
odata4

I am looking to filter an odata request within power automate to return only records where the modifiedon date is greater than a specified value. I have thus far tried the following without success:

 

$filter=ModifiedOn%20gt%20datetime'2023-05-23T00:00:00.0000000Z'

 

{ "error": { "code": "", "message": "The query specified in the URI is not valid. Unrecognized 'Edm.String' literal 'datetime'2023-05-23T00:00:00.0000000Z'' at '14' in 'ModifiedOn gt datetime'2023-05-23T00:00:00.0000000Z''.", "innererror": { "message": "Unrecognized 'Edm.String' literal 'datetime'2023-05-23T00:00:00.0000000Z'' at '14' in 'ModifiedOn gt datetime'2023-05-23T00:00:00.0000000Z''.", "type": "", "stacktrace": "" } } }

 

$filter=ModifiedOn%20gt%20cast('2023-05-23T00:00:00.0000000Z','Edm.DateTimeOffset')

 

{ "error": { "code": "", "message": "The query specified in the URI is not valid. The binary operator GreaterThan is not defined for the types 'System.Nullable`1[System.DateTime]' and 'System.Object'.", "innererror": { "message": "The binary operator GreaterThan is not defined for the types 'System.Nullable`1[System.DateTime]' and 'System.Object'.", "type": "", "stacktrace": "" } } }

 

$filter=ModifiedOn%20gt%20'2023-05-23T00:00:00.0000000Z'

 

{ "error": { "code": "", "message": "The query specified in the URI is not valid. A binary operator with incompatible types was detected. Found operand types 'Edm.DateTimeOffset' and 'Edm.String' for operator kind 'GreaterThan'.", "innererror": { "message": "A binary operator with incompatible types was detected. Found operand types 'Edm.DateTimeOffset' and 'Edm.String' for operator kind 'GreaterThan'.", "type": "", "stacktrace": "" } } }

 

$filter=ModifiedOn%20gt%20datetimeoffset'2023-05-23T00:00:00.0000000Z'

 

{ "error": { "code": "", "message": "The query specified in the URI is not valid. Unrecognized 'Edm.String' literal 'datetimeoffset'2023-05-23T00:00:00.0000000Z'' at '14' in 'ModifiedOn gt datetimeoffset'2023-05-23T00:00:00.0000000Z''.", "innererror": { "message": "Unrecognized 'Edm.String' literal 'datetimeoffset'2023-05-23T00:00:00.0000000Z'' at '14' in 'ModifiedOn gt datetimeoffset'2023-05-23T00:00:00.0000000Z''.", "type": "", "stacktrace": "" } } }

 

Any suggestions for how to achieve this would be much appreciated. Thanks.

Like 0

Like

2 comments

This works for me

$filter=ModifiedOn gt 2024-05-14T00:00:00Z

I don't know if there is something specific for power automate, but in just accessing the Creatio odata api this is valid.

Ryan

Hello,

 

The correct way to format the filter in your OData request is by using the Edm.DateTimeOffset type directly, but the format should be specific. Here’s how you can do it:

https://website/yourentity?$filter=ModifiedOn gt 2023-05-23T00:00:00Z

Show all comments

Dear community, 

 

I have seen a wonderful example to post XML data to ODATA Service with POST method. I am looking into ODATA service with GET method. I am really need of it as my management is eagerly looking at me. please send the example as soon as you can.

Thanking you,

Inayatullla

 

Like 0

Like

1 comments

Hello,



Perhaps this article from the Academy will be helpful to you: https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor…



Best regards,

Malika

Show all comments

Hello.

How to attach a phone call to a contact and lead using odata3 or odata4?

Also is there a list of collection names?

Like 0

Like

1 comments

Hello,

The name of object collections corresponds to the object's name in Creatio (for Odata  4), and for Odata 3 - the name of the object +Collection (CallCollection).

 

The example requests are available here:

https://documenter.getpostman.com/view/10204500/SztHX5Qb?version=latest

Show all comments

I am trying to find the api list of this crm, I find the postman collection also, but unable to generate the access token

Like 1

Like

3 comments

Have you checked in here ? : Integrations & API | Creatio Academy

 

We are using the CREATIO API to get/update data from or into the CRM.

It works well.

 

Greetings,

 

Please use this documentation:



https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor…



Regards,

Orkhan

Orkhan,

Here you have the Creatio API Doc ready to use 

https://documenter.getpostman.com/view/10204500/SztHX5Qb

 

Regards

Show all comments