Skip to content

Webservice Function provides data no output to HTTP Request #248

@prevail90

Description

@prevail90

I am using a webservice function to provide more data on a cohort when created to the http request step but I have tried to add the data from the webservice function with no data showing up to the webhook, all I see is the filtercode for the data which I have set up as {data} in the body.

here is the json file:
{"name":"Corhort Created","description":"{"text":"","format":"1"}","event":"\core\event\cohort_created","debug":"1","steps":{"58":{"id":"58","name":"Get Cohort Info","description":"Get Cohort Info","type":"actions","stepclass":"\tool_trigger\steps\actions\webservice_action_step","data":"{"functionname":"core_cohort_get_cohorts","username":"","params":"{\r\n \"cohortids\": [{objectid}]\r\n}","stepdesc":"Webservice Function","typedesc":"Action"}","steporder":"0"},"59":{"id":"59","name":"Send to N8N","description":"Send to N8N","type":"actions","stepclass":"\tool_trigger\steps\actions\http_post_action_step","data":"{"url":"https:\/\/n8nurl\/webhook-test\/cohort-created","httpmethod":"POST","httpheaders":"Content-Type: application\/json\r\nAccept: application\/json","httpparams":"cohortid={objectid}&cohortdata{data}","jsonencode":"1","expectedresponse":"200","stepdesc":"HTTP request","typedesc":"Action"}","steporder":"1"}},"moodleversion":"2025041402","pluginversion":"2024111900"}

I would like to use your filtering ability but I never can get that to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions