Post

2 followers Follow
0
Avatar

How to accosiated a customer to project using API

Hi I am getting truble to link customer to project, I am using rest API

$project_data = array();
$project_data["ProjectType"] = "/ProjectType/Proposal";
$project_data["Name"] = "Test - Proposal";
$project_data["ProjectManager"] = "/User/79022d50-e425-4171-ba0e-4a30ab703be7";
$project_data["C_ResponsibleGM"] ="/User/5a9e9da1-bbc2-4ed3-a743-dda0c46e7a29";
$project_data["Customer"] = "/Customer/6g64yzig44q14k0xwzfzzmm9m520";

 

Error:

Array
(
    [status] => error
    [data] => Entity 'Project' does not contain the field 'Customer'
)
Nayan Answered

Official comment

Avatar

Hi Nayan,

Sorry for the late response.

Customer and Project relation is many-to-many.

To link a customer and a project first you need to create the customer and the project and then create a link named 'CustomerLink' between them.

 

I hope this helps,

Elad

 

Elad Franklin
Comment actions Permalink

Please sign in to leave a comment.

1 comment