[fix #1701] Use DS form to enroll admin
This commit is contained in:
parent
0b19f1a8c5
commit
aaebcd3494
9 changed files with 137 additions and 1 deletions
|
@ -33,4 +33,15 @@ class Pipedrive::DealAdapter
|
|||
|
||||
Pipedrive::API.put_deal(deal_id, params)
|
||||
end
|
||||
|
||||
def self.add_deal(organisation_id, person_id, title)
|
||||
params = {
|
||||
org_id: organisation_id,
|
||||
person_id: person_id,
|
||||
title: title,
|
||||
user_id: Pipedrive::PersonAdapter::PIPEDRIVE_ROBOT_ID
|
||||
}
|
||||
|
||||
Pipedrive::API.post_deal(params)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue