Hello

 

It is posible to save a file in creatio from a base64 string? I have a web service that allows me to request a document by an id to an external service and it responds with the document in a base64 string, so I would like to know if it is possible to convert that string into the file and save it in some record on the platform.

 

Thank you 

Like 0

Like

2 comments

Something like this should work:

var base64FileString = Get<string>("Base64File");
var accountId = Get<Guid>("AccountId");
 
var attachFileType = new Guid("529bc2f8-0ee0-df11-971b-001d60e938c6");
var fileName = "SomeFile.docx" // set proper file type in file name
 
var entity = UserConnection.EntitySchemaManager.GetInstanceByName("AccountFile");
var fileEntity = entity.CreateEntity(UserConnection);
fileEntity.SetDefColumnValues();
fileEntity.SetColumnValue("AccountId", accountId);
fileEntity.SetColumnValue("TypeId", attachFileType);
fileEntity.SetColumnValue("Name",fileName);
fileEntity.SetBytesValue("Data", Convert.FromBase64String(base64FileString));
fileEntity.Save();

Ryan

Ryan Farley,

Thank you very much 

Show all comments

Hello. 

 

When I do an approval using the BPM tool it doesn't show in the panel of notifications so i can't select any option or continue with the process. Can someone help me please? 

 

Thanks you. 

Like 0

Like

5 comments

Hello.

Can you tell us in which object are you trying to get the approvals?

Hello Laura, Please contact our support directly, as then they will be able to gain external access to your website and provide needed support

Hello Goparna Nasina,

I try to get the approvals with objects that I created and also with Accounts and Contacts  object 

Hello Karol

Thank you, I will contact support 

Hello Laura Jurado,

Can you check if the  "Enable approval in section" button in the particular sections is checked or not.

To receive approvals for a particular section you have to enable the approval button.





Thanks & regards

Goparna Nasina

Show all comments