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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.