Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
NOVOTNI
New Member

API

Bom dia!

Como é possivel usar esta API passada por um fornecedor:

 

curl https://zeroresiduos.inlog.com.br:8090/dashboard/rest/exportarrelatorio -H "Content-Type: application/json" -X POST -d '{"Relatorio": "Produção Domiciliar", "Autenticacao": "chave", "NomeBanco": "dashboard_inlog", "Parametros": [{"CAMPO": "13,DATA_EXECUCAO", "OPERADOR": "igual", "VALOR1": "23/02/2024", "VALOR2": "23/02/2024"}, {"CAMPO": "4,NOME", "OPERADOR": "https://zeroresiduos.inlog.com.br:8090/dashboard/rest/exportarrelatorioigual", "VALOR1": "PGA", "VALOR2": "PGA"}, {"CAMPO": "6,DESCRICAO", "OPERADOR": "filtrar", "VALOR1": "DOMICILIAR,DOMICILIAR - RURAL - MECANIZADA", "VALOR2": "DOMICILIAR,DOMICILIAR - RURAL - MECANIZADA"}, {"CAMPO": "7,APAGADO", "OPERADOR": "igual", "VALOR1": "F", "VALOR2": "F"}]}' --insecure

1 REPLY 1
ManuelBolz
Responsive Resident
Responsive Resident

Hola @NOVOTNI,

 

it's difficult to test but maybe it will work with a few tweaks on your part.

let
    url = "https://zeroresiduos.inlog.com.br:8090/dashboard/rest/exportarrelatorio",
    headers = [#"Content-Type"="application/json"],
    body = Json.FromValue(
        [
            Relatorio = "Produção Domiciliar",
            Autenticacao = "chave",
            NomeBanco = "dashboard_inlog",
            Parametros = 
            {
                [
                    CAMPO = "13,DATA_EXECUCAO",
                    OPERADOR = "igual",
                    VALOR1 = "23/02/2024",
                    VALOR2 = "23/02/2024"
                ],
                [
                    CAMPO = "4,NOME",
                    OPERADOR = "igual",
                    VALOR1 = "PGA",
                    VALOR2 = "PGA"
                ],
                [
                    CAMPO = "6,DESCRICAO",
                    OPERADOR = "filtrar",
                    VALOR1 = "DOMICILIAR,DOMICILIAR - RURAL - MECANIZADA",
                    VALOR2 = "DOMICILIAR,DOMICILIAR - RURAL - MECANIZADA"
                ],
                [
                    CAMPO = "7,APAGADO",
                    OPERADOR = "igual",
                    VALOR1 = "F",
                    VALOR2 = "F"
                ]
            }
        ]
    ),
    response = Web.Contents(url, [Headers=headers, Content=body, Timeout=#duration(0,0,30,0)])
in
    response

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors