String truncated due to size

Hi there,
I need to pass a large amount of text into a variable to convert into a json parameter for an http request, into this data goes an array of bytes, that array is an file (document) ,This is part of the request however the string was truncated and the json request fails. How i can do to pass all de strings to make a json reliable to the request?

Hi @Humberto_Polo
to convert string to json, use Deserialize Json activity

Regards,
Nived N
Happy Automation

Thaks but the real issue is to put a large text structure into string variable to set the body argument for an http request, in this large text structure a field are an array of byte (Flie),

This is the structure

“{‘identificadorCliente’:'”+ipaddrs+“',‘lArchivoParafirma’:[{‘idArchivo’:”+reqsig.item(“ARCH_EMI_ID_ARCHIVO”).toString+“,‘nombreArchivo’:'”+reqsig.item(“ARCH_EMI_NOMBRE”).toString+“',‘codigoOperacionArchivo’:”+reqsig.item(“COD_OPE_ARCHIVO”).toString+“,‘archivo’:”+reqsig.item(“ARCHIVO”).ToString+“}],‘usuarioFirmante’:{‘nombreUsuarioFirmante’:'”+reqsig.item(“NOM_USU_FIRMANTE”).ToString+“‘,‘cargoUsuariofirmante’:’”+reqsig.item(“CARGO_USU_FIRMANTE”).ToString+“‘,‘fechaHoraFirma’:’”+reqsig.item(“FECHA_HORA_FIRMA”).ToString+“',‘estadoFirmante’:”+reqsig.item(“ESTADO_FIRMA”).ToString+“,‘ubicacionUsuarioFirmante’:'”+reqsig.item(“UBI_USER_FIRMANTE”).ToString+“'},‘configuracionFirma’:{‘idProcesoFirma’:”+reqsig.item(“ID_PROCESO_FIRMA”).toString+“,‘tipofirma’:”+reqsig.item(“TIPO_FIRMA”).toString+“,‘ubicacionRubrica’:”+reqsig.item(“UBI_RUBRICA”).toString+“,‘ubicacionRubricaRelativa’:”+reqsig.item(“UNI_RUBRICA_RELATIVA”).ToString+“,‘ubicacionRubricaAbsolutaX’:”+reqsig.item(“UBI_RUBRICA_ABSOLUTA_X”).toString+“,‘ubicacionRubricaAbsolutaY’:”+reqsig.item(“UBI_RUBRICA_ABSOLUTA_Y”).toString+“,‘agregaGlosaVerificacion’:”+reqsig.item(“AGRE_GLOSA_VERIFICACION”).toString+“,‘convertirApdf’:”+reqsig.item(“CONVERTIR_A_PDF”).toString+“,‘tipoduracion’:”+reqsig.item(“TIPO_DURACION”).toString+“,‘incluirsSelloTiempo’:”+reqsig.item(“INCLUIR_SELLO_TIEMPO”).ToString+“,‘estadoRequeridoFirma’:”+reqsig.item(“ESTADO_REQ_FIRMA”).toString+“} }”

Is in Json format the field archivo is an array of byte (File)

Hello,
Check out this very fast simple VB.NET that create JSON in 1 line:
startUiPathFromSalesforce/CreateJSON.txt at master · cristinegulescu/startUiPathFromSalesforce · GitHub
And the movie for demo:

Thanks,
Cristian