Query on operations of Forecasts Module

Hi ,

I executed POST query for Forecasts module in postman ,its giving response with 200 ok ,but when I tried to get these inserted record in GET Query ,returning empty array in response.

for POST Query i used  id field which is required one  and  user_name referred fields from metadata of Foreacasts.

Please let me know if anything is required to get proper response.

Thanks,

Shubhangi

Parents Reply Children
  • yeah, the Commit button is how you create a Forecasts record. After digging into this a little more, it looks like if you check out include/SugarForecasting/Committed.php if you dont send a timeperiod_id it'll default to the current timeperiod, and unless you want to send a commit_type: "manager" record, really the only piece of information you need to send in the payload is forecast_type: "Direct"

    this was my postman setup and the only thing i had in the headers was my oauth-token and content-type

    this created the record just fine in the forecasts table.