Hello, colleagues. After generating a report, it is necessary to attach it as a file to the record, in the Files and links detail. The application from "customerfx" is not suitable. Here, it is necessary to automatically select the report form by pressing one button, etc. 

I ask for your help. Perhaps there is somewhere to look at the code. Or you can point to an article in the Academy, or something else.
As a last resort, I will analyze the principle of operation of the application from Ryan (customerfx").
Thank you all.

Like 0

Like

2 comments
Best reply

Not sure if I completely understand, however, if you're wanting to generate a printable and attach to a record, you can do this with a process using the Process File element. This allows you to generate a printable and you can easily attach to a record's files. Then, just wire up the button to run the process. 

Ryan

Not sure if I completely understand, however, if you're wanting to generate a printable and attach to a record, you can do this with a process using the Process File element. This allows you to generate a printable and you can easily attach to a record's files. Then, just wire up the button to run the process. 

Ryan

Ryan Farley,

Thanks, Ryan. That's what I did. I wrote a business process for generating different reports depending on the value of the reference field and adding them to the attached files. In the module, I added a button to call this business process with the transfer of the necessary parameters to it.

Show all comments

Hello!

 

Is there any possibility to change file size upload quota in the Application Hub in .net core version of creatio? In the .net framework there are a bindings.config configuration files, that allows to change binding quota, which works in IIS. 

 

But of course there is no such thing in kestrel, adding/changing any params in appsettings.json does not seem to help. Is there any option to install pretty big application (>100Mb) in .net core Creatio?

 

Like 0

Like

1 comments

Good day,


In the .NET Core version, we do not have separate settings for different services; instead, we have a single setting for the entire application. The default value is 30,000,000. You can modify this setting by adding a new row to the <appSettings> section in the Terrasoft.WebHost.dll.config file:

<add key="MaxRequestBodySizeBytes" value="100000000" />

This will change the maximum request body size to 100,000,000 bytes.

Thank you for reaching out!

Show all comments

I have a web form created in wordpress using elementor plugin. I would like to upload a file to the via this wordpress form but I can't find documentation for this. Any help would be much appreciated.

Like 0

Like

2 comments

Hi!

We do not currently support file transfers, but we will register a request for a description of the documentation if possible.
 

If you have any further questions, please send them in response. We will be happy to help.
 

Thank you for contacting Creatio Support!
 

It's not very straight forward, but it is possible. Basically, you'd need to encode the file as a Base64 string, then transfer it as a string value to the webhook. Once received decode the Base64 string back to a file byte array to save as an attachment somewhere. 

If this is coming from a web form, you can use Javascript's FileReader to convert the file to a base64 string. See https://stackoverflow.com/questions/36280818/how-to-convert-file-to-base64-in-javascript

Then send the value as a string to the webhook. You could add a process to trigger on record added of your entity. Then decode the string to a byte array. See https://learn.microsoft.com/en-us/dotnet/api/system.convert.frombase64string

Then save the byte array as an attachment on the record. See https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/back-end-development/api-for-file-management/examples/file-management-examples

Ryan

Show all comments

Hi Community,

I've this situation where I need to add a new tab "Preview" and the main objective is have a iframe with a preview of the documents in the attachments, however we try first implement the logic if was a website, because we think that the article that we found on academy "https://academy.creatio.com/documents/technic-sdk/7-13/integration-third-party-sites-iframe"partially satisfies what we want to implement;

  1. First, based on the Web field, we were able to do the preview of the website, as you can see on the image below.
  2. Then, we try to call and access to the storage of the pdf that we have on the attachments (image below), but the only link that we have of the pdf is the link/method to download the file, for example: https://..../0/rest/FileService/GetFile/Id.

In this way we want to know if there is any way to acess a link or storage of the file, with objective to implement something like preview of the document with the iframe on the edit page.

Anyone?

 

Best Regards,

Daniel Longo

Like 0

Like

2 comments

Hello Daniel, 



While it is technically possible to open pdf files using iframe tag, it'd require considerable amount of custom development to implement such preview. 

The link you're referring to is the direct link to the attachment file. 



Unfortunately, we don't have examples of such implementation. 

I'll register your idea and it may be implemented in future releases. 

Best regards,

Yurii.

Hello Yurii,

Is there any progress on this implementation?

 

What are the options that FileService gives us beyond the download file link?

Is there any way of call this link and get Data from response?

 

Best Regards,

Igor Matos

Show all comments

Hello! At the moment I'm building a webservice that is supposed to externally upload a file to Creatio using a request to FileApiService. I've analyzed the request that Creatio makes when a file is uploaded via the normal Creatio interface. I've also copied this request into my own webservice and it works there as well.

However, when I copy the whole request it uses the authorization cookie that was created when I logged into Creatio. Ideally, the the webservice should log it self into Creatio and uses it's own authorization cookie. I've followed the documentation and used AuthService.svc to do this, but without success. When I use the cookie created by AuthService.svc, I always get a 401 "Unauthorized" error message. Strangely however, I am able to use this cookie to successfully send OData requests, only the fileupload is not possible.

Any help with this problem would be greatly appreciated.

Like 0

Like

2 comments

Hello Kai,

 

Can you please show how do you authenticate via AuthService.svc and also how do you use the received cookie when sending a file to the system?

 

Thank you!

 

Best regards,

Oscar

Hello Oscar,

 

thank you for your reply, but I've already found the solution to the problem.

 

When using AuthService.svc, the resulting cookie includes the properties "HttpOnly", "secure;" "path=/", and "expires=..." – whereas these properties are apparently not expected when using FileApiService. So, when accessing FileApiService you need to modify the cookie and remove these properties. Then one can use the remaining cookie and the authorization is successful.

 

Kind regards

Kai

Show all comments

Hi team,

 

When multiple attachements are selected, we want it to get downloaded into a single folder in a given file path. Could you please let us know how to accomplish this? 

 

Thanks

Like 1

Like

2 comments

Hello Shivani,

 

Hope you're doing well.

 

As for now, there is no such functionality. I have informed our R&D department about this case so they could consider enhancing the following functionality in the upcoming releases.

 

Thank you for being interested in the Creatio application and for your ideas of further improvements!

 

Best regards,

Roman

Jasmin Hofstetter,

 

Unfortunately, we do not have an update on the matter as of now.



Best Regards,

Ivanna.

Show all comments