web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Copilot Studio - Building Copilot Studio Chatbo...
Unanswered

Error 400 Bad Request when fetching Planner task details from Copilot Studio

(2) ShareShare
ReportReport
Posted on by 4

Hola comunidad 👋 ,

 

Estoy creando un agente en Copilot Studio que necesita buscar una tarea dentro de un plan específico de Microsoft Planner y extraer información del campo Notas de esa tarea (como la fecha de inicio, el supervisor, el técnico, etc.).

 

El plan se denomina "Req. Correctivo" y el usuario proporciona el número de caso (por ejemplo, R36716), que se puede encontrar en el título o la descripción de la tarea. El agente debe buscar ese número de caso, obtener el y, a continuación, extraer los detalles mediante la acción.taskIdGetTaskDetails

 

Estoy usando el siguiente valor para el ID de tarea:

YAML:

value: "outputs('BuscarTarea')?['body/value']?[0]?['id']"    
However, when running the GetTaskDetails action, I get the following error:
 

HTTP Status: BadRequest

Internal Server Error - Error in query syntax.

ServiceRequestId: 1a5f8cd2-673f-4ae7-a631-40e9d1d155ab

 

I’ve checked:

 

  •  

    The Planner connector is configured correctly


  •  

    The plan is accessible and the plan ID is valid


  •  

    The search returns tasks (I confirmed the output of the previous step)

 

Any idea why this error is occurring?

 

Am I passing the taskId incorrectly?

Do I need to transform or encode the value before using it?

 

Any help or working examples would be greatly appreciated 🙌

 

 

 
 
 
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    47,123 Super User 2025 Season 2 on at
    Error 400 Bad Request when fetching Planner task details from Copilot Studio
     
    I would need to see the flow itself, how its configured in build mode. It would also be good tos ee the flow run in Run mode to see what you actually end up populating with.
     
    I have to assume you are not using the proper task Id, which is a guid and I cannot see what you are using without seeing the build and run versions of the flow.
  • HB-07061728-0 Profile Picture
    4 on at
    Error 400 Bad Request when fetching Planner task details from Copilot Studio

    Hi Michael, thank you very much for your response. @

     

    I've tried several times to review the Copilot run history and follow the flow step by step, including checking the GetTaskDetails action, but I keep getting the same 400 “Bad Request” error.

     

    What I’m trying to do is have the agent search for a task in Planner using a case number (for example, ), which can appear either in the title or description, and then retrieve specific fields from the field of that task.R12345Notes

     

    I’ve set up the flow to locate the task and extract the lines that start with the symbol , but it seems like something is wrong when it tries to retrieve the task details.

     

    Do you have any example of how this part should be correctly configured or any additional recommendations?

     

    Thanks in advance for your help.

  • Michael E. Gernaey Profile Picture
    47,123 Super User 2025 Season 2 on at
    Error 400 Bad Request when fetching Planner task details from Copilot Studio
    Hi
     
    Take a look at the Run history for the copilot. Go through each step. Got to the action itself (the flow), and look at what is being retrieved and input into GetTaskDetails.
     
    Or share it here

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2

Featured topics