Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

API connection with filters and operator

Hi Everyone,
 
Hope that you're fine.vI'm a both new developer with Power BI and API.
 
I'd like to :
 
   Connect with the IDMC API for creating a report for monitoring the worklfow.
 The goal is to get le list of workflow wich are the status are "Suspended" or "Failed" or "Warning" and by day. This report would be run twice by day : at 9 AM and  4 PM.
 
That I would like to do :
 
Make a link with theses parameters, as something like that : URL?runStatut={Suspended,Failed,Warning}&startTime like p_Morning_today
 
p_Morning_today can be = p_Morning concat with "T09" is a parameter created with Query M editor. 
(I found a on the net this , that I used for 
let
Source = let
 
Source1 = Date.ToText(DateTime.Date(DateTime.LocalNow()),"yyyy-MM-dd")
in
Source1
 
meta [IsParameterQuery=true, Type="Text", IsParameterQueryRequired=true]
in
Source)
 
and startTime looks like that "startTime": "2024-11-14T14:59:52Z"
For this, 
 
I made  a web connection, that 's ok
For getting a url that I could use, I use postman, and I can't have a good result for this :URL?runStatut={Suspended,Failed,Warning}
I cannot find a way to make a list 
 
Thanks a lot for your help. 🙂

 

 
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi Anonymous ,

     

    Thanks for reaching out to our community.

    If you're having trouble with Postman, ensure that:

    • The URL is correctly formatted.
    • The API key (if required) is included in the headers.
    • The parameters are correctly passed in the query string.

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Thanks for reaching out to our community.

    If you're having trouble with Postman, ensure that:

    • The URL is correctly formatted.
    • The API key (if required) is included in the headers.
    • The parameters are correctly passed in the query string.

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.