SoftExpertAPI 1.0.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package SoftExpertAPI --version 1.0.6
                    
NuGet\Install-Package SoftExpertAPI -Version 1.0.6
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SoftExpertAPI" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SoftExpertAPI" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="SoftExpertAPI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SoftExpertAPI --version 1.0.6
                    
#r "nuget: SoftExpertAPI, 1.0.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=SoftExpertAPI&version=1.0.6
                    
Install as a Cake Addin
#tool nuget:?package=SoftExpertAPI&version=1.0.6
                    
Install as a Cake Tool

SoftExpertAPI

SoftExpertAPI é uma biblioteca que possui um conjunto de classes para abstrair a comunicação SOAP com a API do SoftExpert SESuite.<br> Esta biblioteca não está completa e será desenvolvida conforme necessidades e pedidos. <br> Direitos reservados a https://www.softexpert.com/<br> <br> Documentação original: https://documentation.softexpert.com/en/integration/index.html <br> <br> Se você quer falar comigo, por qualquer proposito, me mande um email. hudsonventura@outlook.com

<br> <br>

Há um exemplo funcional no diretório Examples

Importação do namespace ...

using SoftExpert;
using SoftExpert.Workflow;

<br> <br>

Criar uma instancia da API de workflow para uso

string authorization = "Basic base64encode(DOMINIO\USUARIO:SENHA)"; //deve ser codificado em base64
string url = "https://se.dominio.com.br";
SoftExpertWorkflowApi wfAPI = new SoftExpertWorkflowApi(url, authorization);

<br> <br>

Usando a API - Criando uma instancia de workflow

string ProcessID = "CCF";                       //identificador do processo
string WorkflowTitle = "Teste de integração"; ; //titulo da instancia a ser criado
string UserID = "00000000000";                  //matricula do usuario

newWorkflowResponse responseNewWF;
try
{
    responseNewWF = wfAPI.newWorkflow(ProcessID, WorkflowTitle, UserID);
}
catch (Exception erro)
{
    Console.WriteLine($"Não foi possivel criar o workflow. Erro: {erro.Message}");
    return;
}
string WorkflowID = responseNewWF.RecordID;
int codigoNewWorkFlow = responseNewWF.Code;
SoftExpert.SoftExpertResponse.STATUS sucessoNewWorkFlow = responseNewWF.Status;
string detalhesNewWorkflow = responseNewWF.Detail;

<br> <br>

Usando a API - Editando dados do formulário

Dictionary<string, string> formulario = new Dictionary<string, string>();
formulario.Add("possuiendereco", "1"); //id do campo do formulário e valor (em string)
formulario.Add("ramal", "N/A");

Dictionary<string, Dictionary<string, string>> relacionamentos = new Dictionary<string, Dictionary<string, string>>();
relacionamentos.Add("tipocliente", //idrelacionamento
    new Dictionary<string, string>() {
            //{ "campodoformdorelacionamento", "valor" },
            { "tipo", "PESSOA JURIDICA (CNPJ)" },
    }
);

string EntityID = "SOLCLIENTEFORNE";

editEntityRecordResponse entityResponse;
try
{
    entityResponse = wfAPI.editEntityRecord(WorkflowID, EntityID, formulario, relacionamentos);
}
catch (Exception erro)
{
    Console.WriteLine($"Não foi possivel editar o formulário. Erro: {erro.Message}");
    return;
}
int sucessoEntity = entityResponse.Code;
string detalhesEntity = entityResponse.Detail;

<br> <br>

Usando a API - Execução de atividade

string ActivityID = "ATIV-SOLCCF";      //ID da atividade do fluxograma
int ActionSequence = 3;                 //Sequence da ação da atividade. Veja na lista de ações da atividade

executeActivityResponse executeResponse;
try
{
    executeResponse = wfAPI.executeActivity(WorkflowID, ActivityID, ActionSequence, UserID);
}
catch (Exception erro)
{
    Console.WriteLine($"Não foi possivel executar a atividade. Erro: {erro.Message}");
    return;
}
var houveSucesso = executeResponse.Code;
var detalhes = executeResponse.Detail;

<br> <br>

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.27 191 5/16/2025
1.3.26 261 5/13/2025
1.3.25 233 5/13/2025
1.3.24 192 4/10/2025
1.3.23 142 3/14/2025
1.3.22 185 10/30/2024
1.3.21 126 10/29/2024
1.3.20 126 10/29/2024
1.3.19 131 10/10/2024
1.3.18 146 10/1/2024
1.3.17 136 9/24/2024
1.3.16 130 9/24/2024
1.3.15 138 9/19/2024
1.3.14 151 9/3/2024
1.3.12 136 8/28/2024
1.3.11 140 8/28/2024
1.3.10 128 8/28/2024
1.3.9 190 8/14/2024
1.3.7 170 8/14/2024
1.3.6 158 8/14/2024
1.3.5 152 8/14/2024
1.3.4 150 8/13/2024
1.3.3 150 8/13/2024
1.3.2 152 8/13/2024
1.3.1 152 8/9/2024
1.2.14 154 7/9/2024
1.2.13 151 7/5/2024
1.2.12 158 4/24/2024
1.2.11 147 4/24/2024
1.2.10 159 3/20/2024
1.2.9 153 3/12/2024
1.2.8 165 3/4/2024
1.2.7 162 3/4/2024
1.2.6 154 3/4/2024
1.2.5 214 2/20/2024
1.2.4 154 2/20/2024
1.2.3 159 2/20/2024
1.2.2 151 2/20/2024
1.2.1 148 2/20/2024
1.2.0 154 2/20/2024
1.1.15 220 10/9/2023
1.1.14 170 10/9/2023
1.1.13 164 10/9/2023
1.1.12 174 10/9/2023
1.1.11 174 10/3/2023
1.1.10 168 10/3/2023
1.1.9 179 9/26/2023
1.1.8 167 9/19/2023
1.1.7 222 8/17/2023
1.1.6 183 8/17/2023
1.0.6 353 2/8/2023
1.0.5 318 2/8/2023
1.0.4 321 2/7/2023
1.0.3 499 5/18/2022
1.0.2 516 3/18/2022
1.0.1 482 3/18/2022
1.0.0 491 3/10/2022