Hi Community,

We are localizing in Italian our application. We are using the OOTB Attachment TAB.

May we ask some suggestions for localizing the label hereafter reported?

 

 

Regards

Stefano

Like 1

Like

5 comments

Hello!

 

What is the version of the app you are currently using?

Hanna Skalko,

Hi Hanna

We are using Version 8.1.2 (.3914)

Regards

Stefano

STEFANO FERRARI,

Thank you for your reply!

 

This tab has already been translated in the newest version of Creatio - 8.1.3.6734 

Thank you for being an active part of the Creatio Community! 

Hanna Skalko,

Thank you very much for your update.

We will wait for Creatio - 8.1.3.6734 to be installed on our environments.

Regards

Stefano

Hi Hanna

 

We confirm that in Creatio - 8.1.3.6734 the localization is addressed.

 

Regards

 

Stefano

 

Show all comments

Hello,

 

I have a web service that generates a file. I need to attach that file to a record. I see there is an option to the Process File Component passing a File as parameter, but the Parameter is Expecting a IFileLocator. How can I use a script to create a IFileLocator from a full file path on Creatio Studio version 8.1? 

 

Thanks,

Jose

File attachments
Like 0

Like

2 comments
Best reply

Hello,

You should use a script task to work with files from the web service.

 

More details about the API file:



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

Hello,

You should use a script task to work with files from the web service.

 

More details about the API file:



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

Thanks Cherednichenko. Using the information provided I wrote the C# below to attach a generated file to a record.



public void AttachFile(string schemaName, Guid recordId, string fullFilePath) {

            /* Create a unique ID for the new file. */

            Guid fileId = Guid.NewGuid(); 

            /* Create a file locator for the new file. */

            var fileLocator= new EntityFileLocator("SysFile", fileId); 

            /* Get an IFile object for the new file. */ 

            IFile file = UserConnection.CreateFile(fileLocator); 

            /* There is no file metadata or file content in the available file storages. Specify the file name in the file metadata. */

            file.Name = (new System.IO.FileInfo(fullFilePath)).Name; 

            /* Set an attributes for the new file: */

            file.SetAttribute("RecordSchemaName", schemaName); 

            file.SetAttribute("RecordId", recordId);             

            /* Save the file metadata Do this BEFORE saving the content. */

            file.Save(); 

            using (var sourceStream = new FileStream( fullFilePath, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 4096, useAsync: true)) {

                file.Write(sourceStream, FileWriteOptions.SinglePart);            

            }

        }

Show all comments