Время создания
Filters

Hello.

I have a web services API that requires an Id and an hmac generated with the request parameters and an API Key to be placed in its authorization header.

Is there a way to obtain the call body to perform the HMAC?

In postman I have been able to make the call successfully with a pre-request which is the following:

 

const apiKey = pm.collectionVariables.get("apiKey");;
const webId = pm.collectionVariables.get("webId");
const crypto = require('crypto-js');
 
if(pm.request.method === 'POST') {
 
    const parsedBody = JSON.parse(pm.request.body.raw);
    const jsonParams = JSON.stringify(parsedBody);
 
    // Create HMAC
 
    const hmac = crypto.HmacSHA256(jsonParams, apiKey);
    const hmacb64 = crypto.enc.Base64.stringify(hmac);
 
    // Set computed HMAC as an environment variable (or you could add it directly to the headers)
    pm.environment.set('hmacb64', hmacb64);
 
    // Construct the Authorization header
    const authorizationHeader = "signmage " + webId + ":" + hmacb64;
    pm.environment.set('Authorization', authorizationHeader);
} else if(pm.request.method === 'GET') {
 
    const url = pm.request.url.getPathWithQuery();
 
    const hmac = crypto.HmacSHA256(url, apiKey);
    const hmacb64 = crypto.enc.Base64.stringify(hmac);
 
    // Set computed HMAC as an environment variable (or you could add it directly to the headers)
    pm.environment.set('hmacb64', hmacb64);
 
    // Construct the Authorization header
    const authorizationHeader = "signmage " + webId + ":" + hmacb64;
    pm.environment.set('Authorization', authorizationHeader);
}

 


But in Creatio I'm a little lost if it's possible to do something similar.

I would appreciate it if you could help me know if this is possible. Thank you.

Like 0

Like

0 comments
Show all comments
Question

Hi Community. 
I have this piece of code: 

segmentationBatch is List 

but postgres throws an error that it can't compare uuid with uuid[] - which is understandable, but how do I pass a list of Id's into the update? 

Has anyone came accross this issue? 

 

P.S. I need it that way because it's a batch of records that I need to update and I need to keep those Id's for the following logic so I cannot rebuild the filtering criteria here.

var update = new Update(UserConnection, EntitySchemaName)
                .Set("UsrProfitCenter", Column.Parameter(segmentation.ProfitCenter))
                .Where("Id").In(Column.Parameter(segmentationBatch)) as Update;
            return update.Execute();
Like 0

Like

1 comments

Upd: 
Figured it out myself

 

 .Where("Id").In(Column.Parameters(segmentationBatch))
Show all comments

When we set up a filter on the List page of the web interface, it works on the web interface but not on the mobile interface.

Filtering is not working in the Creatio Mobile (Freedom UI)

Could  you please let us know, how can we setup filter in mobile.

Like 0

Like

0 comments
Show all comments

Hi.

 

I have this simple BP that has a Guid parameter which represents the Id of a real file inside the system. I take this file into a "Process file" element and tries to save it inside a specific Contact's attachment detail:

 

Then, in another "Process file" element up next, I take that file created inside the Contact's attachment detail in order to use it in the "Send Email" element:

 

 

However, upon checking both the email Activity created from this BP, as well as the Process log for this BP, nothing is attached:

Also, the resulting file collection from the second "Process File" element seems to be empty as well:

 

 

What am I doing wrong? I feel like this should work, it's a pretty simple example.

 

Thanks in advance,

Laurentiu

Like 1

Like

1 comments

Your account attachments/files could be using one of two file locations/objects. With Freedom UI a generic " attached file" object was introduced that could be used with any object. However, many objects have specific file/attachments objects, such as "Account files", or "Contact files" (sometimes those are named "File and link of account"). Make sure that you're using the correct object based on what you have on the screens. To check this, open the page in the designer and click on the attachments list, you'll see the object the page is actually using there in the "File storage location" property. 

Ryan

Show all comments

Hi all,

 

In our project we need to produce with Creatio application some .pdf documents. In order to do this we found a Creatio Application (Aspose.PDF connector). This application is not free of charge.

 

We were wondering if exists an OOTB (free of charge) functionality to produce .pdf documents. We are asking since on our view 'production of .pdf document' must be an OOTB functionality. Moreover it's very hard to convince a customer that this functionality it not free of charge.

 

Best Regards

 

Stefano    

Like 2

Like

2 comments

Hello, 

By default, Creatio provides a plugin to be able to upload only in Word format.
https://academy.creatio.com/docs/8.x/no-code-customization/category/pri…;
https://academy.creatio.com/online-courses/article-courses-18

PDF conversion in printables is available after installing this marketplace app https://marketplace.creatio.com/app/asposepdf-connector-creatio. The first 150 conversions are for free, but other conversions require additional payment (prices are available here https://purchase.aspose.cloud/pricing). 

So for test purposes, you can use the free 150 conversions provided in the app. 

We have already registered the idea for our R&D team to implement this functionality in further releases. I will assign your case to this project in order to increase its priority.

Best regards,
Ivan

Besides, this aspose means that your document will go through some 3rd-party service, that is not acceptable by many customers security polices.

So, it is extremely necessary to have this functionality inside Creatio system

Show all comments