Contact Delete

This commit is contained in:
Rupenieks
2020-05-04 15:14:22 +02:00
parent dce70ad5c7
commit e17df72dc6
3 changed files with 41 additions and 4 deletions

View File

@@ -30,8 +30,8 @@ export async function agileCrmApiRequest(this: IHookFunctions | IExecuteFunction
json: true
};
// Only add Body property if method not GET to avoid 400 response
if(method !== "GET"){
// Only add Body property if method not GET or DELETE to avoid 400 response
if(method !== "GET" && method !== "DELETE"){
options.body = body;
}