Hi Everyone - I am really enjoying expanding on the Postman with Paul course and experimenting...

Travis.H.362
Travis.H.362 Berichten: 24 Analytics Builder Transition
26 May aangepast in Social Groups

Note: This thread references the Learning Postman with Paul course article, which has been deprecated and is no longer available in the Learning Center.

Hi Everyone - I am really enjoying expanding on the Postman with Paul course and experimenting with Postman quite a bit. While I am not a developer, I do enjoy tinkering and expanding on my knowledge of administrating Brightspace. It has been fun to piece together some calls and watch the magic happen.

 

What I'm looking to do at the moment is to use a runner to bulk issue an award to learners. I am able to successfully award to 1 student at a time and am able to successfully revoke the award to that student as well. However, when I attempt to put together a call to do a bulk issue of an award via an input file, it fails.

 

<video previously linked here>

 

Any ideas or suggestions are appreciated. Hopefully I'm just missing something small. Thanks!

Reacties

  • Richard.M.314
    Richard.M.314 Berichten: 16
    November 2022 aangepast

    Hi Travis,

     

    Could you please post examples of the console logs? I'm curious if the body is formatted slightly differently with the runner. I wanted to check that the id's are not quoted or something like that isn't tripping it up.

     

    Regards,

    Richard

  • Travis.H.362
    Travis.H.362 Berichten: 24 Analytics Builder Transition
    November 2022 aangepast

    Thanks for your response @Richard Martin​ - fantastic suggestion. As I was pulling the logs, I took a look and identified the issue. The IDs were good to go and were not quoted, but the string values for the criteria and evidence were different in the runner log. By adding quotation marks to the csv input file for both of those string values, it fixed it. Thanks so much for helping to guide me in the right direction.

  • Richard.M.314
    Richard.M.314 Berichten: 16
    November 2022 aangepast

    Excellent! I often put the quotes in the body of the request so I don't have to mess with the data.

     

    Something like

    {

    firstproperty : "{{variableName}}"

    }

  • Travis.H.362
    Travis.H.362 Berichten: 24 Analytics Builder Transition
    November 2022 aangepast

    Good call, I'll definitely do that. Thank you!