Hello 

How can I get the information of this json to put in different fields so I can use them in business process. 

 

{"signer_data":{"name":"laura@artica.digital","authority":"Vinculada a Correo Electrónico por Liga","id":1655735,"email":"laura@artica.digital","fingerprint":"66bf3e0a67ba87d5aeae33e5e98db771968aae83","box_id":"wxjXMgLPz","box_data":"laura@artica.digital","signature_date":"2024-12-19T19:31:59Z"},"signer_email":"laura@artica.digital","signer_fingerprint":"66bf3e0a67ba87d5aeae33e5e98db771968aae83","signer":1655735,"user":233645,"notification_type":"original_signed","notification_id":"3639332","first_notification_date":"2024-12-19T19:32:03Z","document_title":"INFONAVIT. PM005690004564500002NUEVA ASIGNACION SIN BORRADO (1).pdf","firmamex_id":"af8b17ab-9dc0-4130-8f6e-65e24134e596","text":"Document af8b17ab-9dc0-4130-8f6e-65e24134e596.pdf just signed"}

 

i get this json for a webhook. 

 

 

Like 0

Like

2 comments

Hello!

 

Currently, to parse values from webhook via business process you would need to use a custom script task element. Also, you can read more information on how to process webhooks here.

 

Basically in this community thread is already was provided an answer - https://community.creatio.com/questions/parsing-webhooks

Hello 

 

Thank you, I manage to pass the json to the parameters using the next example https://community.creatio.com/questions/help-parse-json-i-get-webservice-variables-can-after-introduce-creatio-object

 

but i get an error in the process 

 

Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[Terrasoft.Configuration.UsrForCustomObject.Meta]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'meta.signer', line 1, position 18.
   at Terrasoft.Common.Json.Json.Deserialize[T](String value, Func`2 func)
   at Terrasoft.Core.Process.UsrProcess_e6a76c0MethodsWrapper.PerformJsonDeserialize()
   at Terrasoft.Core.Process.UsrProcess_e6a76c0MethodsWrapper.ScriptTask1Execute(ProcessExecutingContext context)
   at Terrasoft.Core.Process.ProcessScriptTask.InternalExecute(ProcessExecutingContext context)
   at Terrasoft.Core.Process.ProcessFlowElement.CallInternalExecute(ProcessExecutingContext context)
   at Terrasoft.Core.Process.ProcessFlowElement.ExecuteItem(ProcessExecutingContext context)
   at Terrasoft.Core.Process.ProcessFlowElement.Execute(ProcessExecutingContext context)

 

 

The method that I use is this one 

 

public void PerformJsonDeserialize()
{
	var passedValue = Get<string>("PassedJSONString");
	if (!String.IsNullOrEmpty(passedValue))
	{
		UsrForCustomObject testCustObj =Json.Deserialize<UsrForCustomObject>(passedValue);
		Set<string>("Parsedname", testCustObj.name);
		Set<string>("Parsedauthority", testCustObj.authority);
		Set<string>("Parsedsigner", testCustObj.meta[0].signer);
		Set<string>("Parsedreason", testCustObj.meta[0].reason);
		Set<string>("Parsednotification_type", testCustObj.notification_type);
 
 
 
 
	}
}
return true; 

 

 

Can you help me know what is the problem? I think is related with this part UsrForCustomObject testCustObj =Json.Deserialize<UsrForCustomObject>(passedValue)  but I already try changing that to 
DeserializeDictionary(String) or Deserialize<T>(String, JsonSerializerSettings)

and i still have the error 

 

thank you 

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

Hello everyone,

Previously, I posted a question in this forum to find out if it's possible to send webhooks from Creatio to my external REST API. According to the documentation, it seems that only receiving webhooks from an external service is supported. In response, I was suggested to create a process in the control panel and configure actions to listen for changes in some model and then send that information to my web service.

So far, I've followed these two steps:

  1. I created a web service and configured its headers and parameters.

  2. I created a process that listens for changes in a model, such as Opportunity, and then sends that information to my web service (which is my REST API).

I managed to do this process manually, but currently, I'm developing an integration with Node.js, and I'm consuming Creatio's OData4 REST API. My goal is to automate these two previous steps using code.

My questions are as follows:

  1. Is it possible to create a web service from Creatio's REST API?

  2. Is it possible to create a process using native C# code or metadata from the REST API?

I appreciate any guidance you can provide!

Like 0

Like

1 comments

Hi!

 

1. The web services themselves are suggested to be made by the following guide: https://academy.creatio.com/docs/7-18/developer/back_end_development/we…

You can test a different approach such as described however there is no official confirmation that it can be achieved by REST API request.

 

2. Creating processes using native C# code or metadata from the REST API in Creatio involves more advanced customization. The Creatio platform does support server-side scripting with C# and provides access to metadata through its API. Here is some reference info to consider: https://academy.creatio.com/docs/developer/development_tools/delivery/c…

 

Hope it helps and best of luck with your project!

Show all comments

Hello everyone,

Previously, I posted a question in this forum to find out if it's possible to send webhooks from Creatio to my external REST API. According to the documentation, it seems that only receiving webhooks from an external service is supported. In response, I was suggested to create a process in the control panel and configure actions to listen for changes in some model and then send that information to my web service.

So far, I've followed these two steps:

  1. I created a web service and configured its headers and parameters.

  2. I created a process that listens for changes in a model, such as Opportunity, and then sends that information to my web service (which is my REST API).

I managed to do this process manually, but currently, I'm developing an integration with Node.js, and I'm consuming Creatio's OData4 REST API. My goal is to automate these two previous steps using code.

My questions are as follows:

  1. Is it possible to create a web service from Creatio's REST API?

  2. Is it possible to create a process using native C# code or metadata from the REST API?

I appreciate any guidance you can provide!

Like 0

Like

0 comments
Show all comments

Hello everyone,

Previously, I posted a question in this forum to find out if it's possible to send webhooks from Creatio to my external REST API. According to the documentation, it seems that only receiving webhooks from an external service is supported. In response, I was suggested to create a process in the control panel and configure actions to listen for changes in some model and then send that information to my web service.

So far, I've followed these two steps:

  1. I created a web service and configured its headers and parameters.

  2. I created a process that listens for changes in a model, such as Opportunity, and then sends that information to my web service (which is my REST API).

I managed to do this process manually, but currently, I'm developing an integration with Node.js, and I'm consuming Creatio's OData4 REST API. My goal is to automate these two previous steps using code.

My questions are as follows:

  1. Is it possible to create a web service from Creatio's REST API?

  2. Is it possible to create a process using native C# code or metadata from the REST API?

I appreciate any guidance you can provide!

Like 0

Like

1 comments
Show all comments

Hello everyone,

Previously, I posted a question in this forum to find out if it's possible to send webhooks from Creatio to my external REST API. According to the documentation, it seems that only receiving webhooks from an external service is supported. In response, I was suggested to create a process in the control panel and configure actions to listen for changes in some model and then send that information to my web service.

So far, I've followed these two steps:

  1. I created a web service and configured its headers and parameters.

  2. I created a process that listens for changes in a model, such as Opportunity, and then sends that information to my web service (which is my REST API).

I managed to do this process manually, but currently, I'm developing an integration with Node.js, and I'm consuming Creatio's OData4 REST API. My goal is to automate these two previous steps using code.

My questions are as follows:

  1. Is it possible to create a web service from Creatio's REST API?

  2. Is it possible to create a process using native C# code or metadata from the REST API?

I appreciate any guidance you can provide!

Like 0

Like

6 comments

I'm not sure I understand your question exactly. Are you saying you want to create a service endpoint in Creatio that you'll consume from outside of Creatio? 

If that is the case, then yes. You can create custom endpoints in Creatio that can be consumed from outside. Sample service shown here: https://customerfx.com/article/creating-a-web-service-and-consuming-it-…

More here: https://academy.creatio.com/documents/technic-sdk/7-16/creating-configu…

To consume it from outside, you'd first need to authenticate, see https://academy.creatio.com/documents/technic-sdk/7-16/authentication-e…

Then, you'd POST/GET etc the endpoint for the configuration service.

Ryan

Ryan Farley,

Ryan Farley,

Can I create a process and webservices using low code or rest api? 

No. That area does not create a Web service. That area only defines how to call an existing web service. That is used if you need to call an external API from a process in Creatio. You defined the URLs in parameters there so the process element knows how to call the web service. 

Ryan

Ryan Farley, 







Thank you very much for your help, however my other question is if you have ever had the opportunity to create web processes and services using the odata rest service?

Brayan,

I am not sure what you're asking. Are you referring to consuming the Creatio OData API? If that is the case, you can see Postman examples of this here: 

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

Ryan

Show all comments

Hello everyone,

Previously, I posted a question in this forum to find out if it's possible to send webhooks from Creatio to my external REST API. According to the documentation, it seems that only receiving webhooks from an external service is supported. In response, I was suggested to create a process in the control panel and configure actions to listen for changes in some model and then send that information to my web service.

So far, I've followed these two steps:

  1. I created a web service and configured its headers and parameters.

  2. I created a process that listens for changes in a model, such as Opportunity, and then sends that information to my web service (which is my REST API).

I managed to do this process manually, but currently, I'm developing an integration with Node.js, and I'm consuming Creatio's OData4 REST API. My goal is to automate these two previous steps using code.

My questions are as follows:

  1. Is it possible to create a web service from Creatio's REST API?

  2. Is it possible to create a process using native C# code or metadata from the REST API?

I appreciate any guidance you can provide!

Like 0

Like

1 comments
Show all comments

Im trying to send webhooks from Creatio to my custom Rest Api, for example when an opportunity was edited send it, It this possible ? Because I can see in the documentation that it is different.... 

In other hand I'm also using the cookie auth and I'll be able to create webhooks using rest and batch. 

Like 1

Like

4 comments

The webhooks documentation is for *receiving* webhooks. For sending a Webhook you'd need to add a web service and then you can just execute that from a process.

See this to set up the web service to execute your webhook:

https://academy.creatio.com/docs/user/customization_tools/web_services/…

and this to execute it from a process: 

https://academy.creatio.com/docs/user/bpm_tools/process_elements_refere…

Ryan

Is it something that can also be used in marketing automation campaigns ?



NB: it's a good use case that definitely should be added to the official documentation ;)

Ryan Farley,

Thanks that makes sense, when you mentioned web services you mean my local rest api right? 

Brayan,

No there is a web services area in Creatio where you can define the web service. You'll provide the URL, any parameters to include, whether it is GET or POST etc. See that info here 

https://academy.creatio.com/docs/user/customization_tools/web_services/…

Ryan

Show all comments