Call creation with repeat selector is not working.

Hi Team,

I am trying to create a call with repeat type - monthly and repeat selector - each . But sugar rest api throw error .

Without repeat selector , Call Creation is working fine. Can you help me to resolve this issue .?

Want to set custom date / repeat selector in sugar crm using rest api 

Request :

https://sg-vonageqa.demo.sugarcrm.eu/rest//Calls

OAuth-Token:37dba150-1a40-4bc9-9ecc-724a20e97cf8
Accept: application/vnd.sugarcrm.core+json; version=11.3
Content-Type:application/json

{
"status":"Held",
"date_start":"2019-06-20T12:52:00.000+0000",
"duration_hours":0,
"direction":"Inbound",
"duration_minutes":"15",
"name":"Testing by Maha",
"assigned_user_id":"seed_regina_id",
"team_name":[
{
"id":"1"
}@###
],
"repeat_interval":"5",
"repeat_type":"Monthly",
"repeat_count":"2",
"repeat_dow":"25",
"repeat_days":"7",
"repeat_selector":"Each"
}

Response  :

400 Bad Request 

restapi  #Call

  • Hi Maha lakshmi,

    There is an error in the above json payload in the team_name array, please remove "@###" and you are good to go.

    {
    "status":"Held",
    "date_start":"2019-06-20T12:52:00.000+0000",
    "duration_hours":0,
    "direction":"Inbound",
    "duration_minutes":"15",
    "name":"Testing by Maha",
    "assigned_user_id":"seed_regina_id",
    "team_name":[
    {
    "id":"1"
    }
    ],
    "repeat_interval":"5",
    "repeat_type":"Monthly",
    "repeat_count":"2",
    "repeat_dow":"25",
    "repeat_days":"7",
    "repeat_selector":"Each"
    }

    See below screenshot from the above request payload:

    Let us know if this helps.

    Regards.