agilecrm / php-api

PHP Client to Access Agile Functionality
25 stars 33 forks source link

Create/update opportunity with tags? #16

Closed kennethkeyzw closed 5 years ago

kennethkeyzw commented 7 years ago

How can I also include tags when creating a deal?

rammohan-agile commented 5 years ago

hi @kennethkeyzw yes we can create Tags while creating a Deal please follow below code

$opportunity_json = array( "name"=>"pppp deal", "description"=>"this is a test deal", "expected_value"=>1000, "milestone"=>"New", "custom_data"=>array( array( "name"=>"dataone", "value"=>"xyz" ), array( "name"=>"datatwo", "value"=>"abc" ) ), "tagsWithTime"=>array( array( "tag"=>"tagone" ), array( "tag"=>"tagtwo" ) ), "probability"=>50, "close_date"=>0, "contact_ids"=>array("5641841626054656", "5756422495141888") );

it will create a DEAL with tags. Hope This will Help You, Please contact Agile CRM if you need any further help.

Thanks, Agile CRM Support Team.